Null Pointer Micromanagement
Join us to discuss the challenges, solutions and best practices for in-house JavaScript code sharing. Tuesday, 12/17 at 10am PT/1pm ET.Sign up here »

minimal-analytics

0.1.15 • Public • Published

Minimal Google Analytics

Minimal analytics is a Google Analytics replacement created by David Künnen. This is an npm package of that code snippet.

I created this package for use in my personal projects. Feel free to do the same, PR's with improvements are welcome.

Description, see project page: https://minimalanalytics.com/

Usage

Add the npm module using either yarn or npm:

yarn add minimal-analytics

And somewhere in your JavaScript entry point:

 
import { initialize } from 'minimal-analytics'
 
// other imports and code
 
initialize(window, 'UA-XXXXXXXXX-X', {
  anonymizeIp: true,
  colorDepth: true,
  characterSet: true,
  screenSize: true,
  language: true
})

That's it, you're all set. 🎉

Keywords

none

Install

npm i minimal-analytics

DownloadsWeekly Downloads

47

Version

0.1.15

License

MIT

Unpacked Size

25.9 kB

Total Files

11

Last publish

Collaborators

  • avatar