0.0.7 • Published 1 month ago
gumanalytics v0.0.7
Gum Analytics
Gum Analytics is a Google Analytics alternative. It help you to learn about your visitors while protecting their privacy.
1. Installation
NPM
$ npm install gumanalytics
// Import as ES6
import gumanalytics from "gumanalytics";
// Import as commonjs
const gumanalytics from "gumanalytics";
// Insert this line as soon as posible to initate gumanalytics library
gumanalytics.config({ projectId: "your project id" })
Browser
<!-- Replace $projectID with your GumAnalytics Project ID -->
<script async data-id="$projectID" src="https://cdn.gumanalytics.com/gum.min.js"></script>
<!--
After loaded the script, you can use `window.gumanalytics`
-->
2. How to use
After initate the gumanalytics library, it will automatically send request to our listener servers.
Track events
gumanalytics.addEvent("eventName")