Module for Chew Analytics
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
netop://ウエハ 36c9d73a41 Previous update broke subdomain visit tracking 5 months ago
express Changed versioning, replaced request with got, and refactored 5 months ago
fastify Changed versioning, replaced request with got, and refactored 5 months ago
lib Added macOS Catalina 5 months ago
.editorconfig Updated deps, added config files, and improved regexes 1 year ago
.eslintrc Linting add added an additional check for unknown browser agents 10 months ago
.gitignore Linting add added an additional check for unknown browser agents 10 months ago
.npmrc Updated deps, added config files, and improved regexes 1 year ago
README.md Changed versioning, replaced request with got, and refactored 5 months ago
index.js Previous update broke subdomain visit tracking 5 months ago
package.json Previous update broke subdomain visit tracking 5 months ago

README.md

chewit

INC download count npm version

Analytics you can count on

Installation

$ npm i chewit -S

Note that this module requires an account with Chew, currently in alpha.

Features

  • namespaced modules: just use what you need!
  • server-side analytics: no need to muddy up your beautiful front-end with tracking snippets!
  • super simple: less than 3 lines of code on your part, wonderful!

Examples

Express

const chew = require("chewit/express");

const app = express()
  // ...after setting views, body parsing, &c
  .use(chew("YOUR-SITE-ID"));

// Make sure Chew is the very last middleware in your app.
// You'll get a lot of nonsense in your analytics otherwise.
// Working on a fix for this.

Fastify

fastify.register(require("chewit/fastify"), {
  id: "YOUR-SITE-ID"
});

Note

This module follows ChronVer, visit this site for more info.