This repository houses all of the integrations that get built into Analytics.js.
Integrating with Segment
Interested in integrating your service with us? Check out our Partners page for more details and to submit an application!
This repository relies on a couple dependencies that help make our lives easier while developing. They are:
analytics.js-integration, which is a factory for creating
Integrationconstructors, that helps us share lots of the common logic in one place.
To get started with development, you need to be running node 0.11.x, an easy way to get it is
$ npm install -g n $ n 0.11
Make sure you have
~/.netrc setup like:
machine api.github.com login <username> password <token>
Then clone the repository and then inside of it run:
That will downloaded all of the dependencies needed, and build the test-ready files. Then, edit as you please, adding new integrations or editing the logic of an existing integration. When you are ready to test run:
$ make test
$ make test integration=kissmetrics
And if you'd like you debug in the browser, run:
$ make test-browser $ make test-browser integration=customerio
Once your tests pass, you are ready to submit a pull request!
Notes on Linting
// jscs:disable var c = d; // all errors on this line will be ignored // jscs:enable