Skip to content

uala/analytics.js

 
 

Repository files navigation

Build your own Analytics.js

This is a fork of Segment's analytics.js and #PR 154 by rcline.

This repository houses a pre-built version of analytics.js containing every analytics integration supported by Segment.

Quick Start

  1. Clone the repo down git clone https://github.com/okgrow/analytics.js.git
  2. cd analytics.js
  3. npm install && npm run build
  4. The build will output these two files: analytics.js and analytics.min.js

Too reduce the final bundle size, you should remove any integrations that you are not using. To do that:

  1. Open up the lib/integrations.js file and remove all the integrations that you are not using.
  2. npm run build
  3. Your analytics.js and analytics.min.js will now only contain the integrations you are using.

You can now include the analytics.min.js file with your project to add analytics to your web app.

Documentation

The core logic of analytics.js is broken out into individual repositories:

  • To report an issue with analytics.js itself, head over to analytics.js-core, where the core analytics.js logic is maintained.
  • To report an issue with an integration. head over to the analytics.js-integrations organization, where we keep each integration in its own repository.

License

Released under the MIT license.

About

The hassle-free way to integrate analytics into any web application.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.9%
  • Makefile 0.1%