Code Monkey home page Code Monkey logo

analytics.js-integrations's Introduction

analytics.js-integrations Circle CI

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.

Developing

All new integrations are added by pull requests, just read the contribution docs to get started and submit your own! If you ever need any help, feel free to email [email protected].

This repository relies on a couple dependencies that help make our lives easier while developing. They are:

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>

Here's how you can create a token.

Then clone the repository and then inside of it run:

$ make

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

That will automatically lint all of the Javascript, and run the entire test suite for each integration. For convenience, you can also limit the tests to just the integration you're working with like so:

$ 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

When you're adding an integration's javascript snippet to your integration, we don't want to have to worry about the formatting that they've used. To let JSCS ignore the snippet during linting, use these comments on either side (example code courtesy of the JSCS readme).

// jscs:disable
var c = d; // all errors on this line will be ignored
// jscs:enable 

analytics.js-integrations's People

Contributors

amillet89 avatar araddon avatar beeker1121 avatar calvinfo avatar charlesportwoodii avatar cibingeorge avatar coryvirok avatar curtisliu avatar derrickreimer avatar enriko avatar f2prateek avatar fizerkhan avatar gmcguire avatar harrietgrace avatar ianstormtaylor avatar jspdown avatar krasnoukhov avatar lambtron avatar lancejpollard avatar mattrobenolt avatar ndhoule avatar nickhammond avatar pchukwura avatar realyze avatar reinpk avatar simontabor avatar sperand-io avatar thomassittig avatar wejendorp avatar yields avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.