c.analytics

1.2.2 • Public • Published

My take on buildung a privacy centered analytics software for node js applications.

How to setup

  1. Install Package npm i c.analytics

  2. Add Code 2.1. Server-side

     //intialize express if not alread
     
     const express = require('express')
     const app = express()
     
    
     // inti analytics
     
     const cdotanalytics = require('c.analytics').create(app)
    
     // to get data now
     console.log(cdotanalytics.getAnalytics());
    

    2.2. Client-Side

     <script type="text/javascript" src="/c.analytics/cdotanalytics.min.js" data-serveranalyticsbaseurl='/c.analytics'></script>
    

Go ahead and pop this in your porject :)

Readme

Keywords

none

Package Sidebar

Install

npm i c.analytics

Weekly Downloads

14

Version

1.2.2

License

ISC

Unpacked Size

18 kB

Total Files

7

Last publish

Collaborators

  • jana.c