Skip to content

bogdanmartinescu/angulartics-adroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angulartics-adroll

Adroll plugin for Angulartics.

Install

NPM

First make sure you've read installation and setup instructions for Angulartics.

Then you can install this package either with npm or with bower.

npm

npm install angulartics-adroll

Then add angulartics.adroll as a dependency for your app:

require('angulartics')

angular.module('myApp', [
  'angulartics',
  require('angulartics-adroll')
]);

Please note that core Angulartics doesn't export the name yet, but it will once we move it into the new organization.

bower

bower install angulartics-adroll

Add the <script> to your index.html:

<script src="/bower_components/angulartics-adroll/dist/angulartics-adroll.min.js"></script>

Then add angulartics.adroll as a dependency for your app:

angular.module('myApp', [
  'angulartics',
  'angulartics.adroll'
]);

Create Adroll segments

alt tag

Track Adroll segments (programmatically)

After creating Adroll segment, you will get its segmentId (e.g. 'd531a9dd').

Now you can track the event programmatically.

module.controller('SampleCtrl', function ($analytics) {
  $analytics.eventTrack(null, { segments: 'd531a9dd' });
});

Documentation

Documentation is available on the Angulartics site.

Development

npm run build

License

MIT

About

Adroll plugin for Angulartics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published