Avoid dealing with vendor-specific code. If your provider of choice is not among the existing plugins, just write your own. Google Analytics, Kissmetrics, Mixpanel, Flurry, Piwik, Segment.io and more are supported out of the box. Just add Angulartics to your app dependencies and you'll get automatic pageview tracking for your application routes. Download Angulartics and the Angulartics plugin for your vendor. Note: All plugins list Angulartics as a dependency, so they will be downloaded together. Load the relevant files in your applications html (or include them in your build script). In your application dependencies, inject Angulartics and the Angulartics plugin for your vendor. The simplest way to do event tracking is by adding the attributes analytics-on and analytics-event to the element. analytics-on always needs to be present, because it is the attribute that enables event tracking for the element. All other attributes will be inferred if omitted.
Features
- It's very easy to write your own plugin
- Opt-out settings
- Disable virtual pageview tracking
- Disabling tracking
- Programmatic tracking
- User tracking