Skip to content

kutafuna/chewit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Module for Chew Analytics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published