Skip to content

arnaudbreton/angular-segmentio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tracking Events and Pageviews with Segment.io (http://segment.io)

How-to use it?

Follow these steps:

  1. Add the service to your angular js app module:
var app = angular.module('myapp', ['segmentio']) {
    ...
});
  1. Now just have analytics to be injected in your controller.
function myCtrl($rootScope, $scope, $http, segmentio) {
    ...
};
  1. Call any method documented here: https://segment.io/libraries/analytics.js

How-to add it to your project?

Via Twitter Bower (http://bower.io/) Run bower install angular-segmentio in a terminal

How-to build / develop it?

  1. Install dependencies via npm: npm install(in the project folder)

  2. Run grunt: grunt or grunt uglify

  3. The build result is in the build directory

About

An AngularJS (http://angularjs.org) module for analytics service Segment.io (http://segment.io)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •