Giter VIP home page Giter VIP logo

angulartics's Introduction

angulartics

NPM version NPM downloads Bower version Dependencies status devDependency Status MIT license Gitter Chat CDNJS

Vendor-agnostic analytics for AngularJS applications. angulartics.github.io

Please Read!

This is Angulartics, not Angularytics. There's been some complains about the unfortunate similarity in the names of both projects (this is actually a funny story), so we hear you guys and are making this clarification here. Just make sure Angulartics is the library you actually want to use, and if you work in a team, make sure this is the library they are using!

Install

npm

npm install angulartics

Bower

To install angulartics core module:

bower install angulartics

NuGet

**Note: we are dropping support for NuGet.

Full path tracking (for pages without a router)

Introduced in 0.15.19 - support websites that do not use Angular routes or states on every page and still want to track full paths. The modifications lead to the following behavior:

  • Viewing page http://host.com/routes#/route will be tracked as /routes#/route. The original version would only track the page as /route
  • Viewing page http://host.com/noroutes will be tracked as /noroutes. This is useful for pages that do not contain Angular code besides initializing the base module.
  • Viewing page http://host.com/routes2 that loads a default route and changes the path to http://host.com/routes2#/ will be tracked as /routes2#/. This will only fire one pageview, whereas earlier versions would have fired two.

To enable this behavior, add the following to your configuration:

	...
	var yourApp = angular.module('YourApp', ['angulartics', 'angulartics.google.analytics'])
	    .config(function ($analyticsProvider) {
	        $analyticsProvider.firstPageview(true); /* Records pages that don't use $state or $route */
	        $analyticsProvider.withAutoBase(true);  /* Records full path */
	});

You can also use $analyticsProvider.withBase(true) instead of $analyticsProvider.withAutoBase(true) if you are using a <base> HTML tag.

Minimal setup

for Google Analytics

See angulartics-google-analytics documentation.

for Google Tag Manager (new interface)

angular.module('myApp', ['angulartics', 'angulartics.google.tagmanager'])

Add the full tracking code from Google Tag Manager to the beginning of your body tag.

Setup listeners in Google Tag Manager

6 Variables

Naming and case must match.

  1. angulartics page path Type: Data Layer Variable Data Layer Variable Name: content-name
  2. angulartics event category Type: Data Layer Variable Data Layer Variable Name: target
  3. angulartics event action Type: Data Layer Variable Data Layer Variable Name: action
  4. angulartics event label Type: Data Layer Variable Data Layer Variable Name: target-properties
  5. angulartics event value Macro Type: Data Layer Variable Data Layer Variable Name: value
  6. angulartics event interaction type Type: Data Layer Variable Data Layer Variable Name: interaction-type

2 Triggers

Name and case must match

  1. Angulartics events Event: Custom Event Fire on: interaction
  2. Angulartics pageviews Event: Custom Event Fire on: content-view

2 Tags

  1. Angulartics Events Product: Google Analytics Type: Universal Analytics Tracking ID: YourGoogleAnalyticsID Track Type: Event Category: {{angulartics event category}} Action: {{angulartics event action}} Label: {{angulartics event label}} Value: {{angulartics event value}} Non-Interaction Hit: {{angulartics event interaction type}} Fire On: Angulartics events
  2. Angulartics Pageviews Product: Google Analytics Type: Universal Analytics Tracking ID: YourGoogleAnalyticsID Track Type: Page View More settings > Field to Set > name: page, value: {{angulartics page path}} Fire On: Angulartics pageviews

for Google Tag Manager (old interface)

angular.module('myApp', ['angulartics', 'angulartics.google.tagmanager'])

Add the full tracking code from Google Tag Manager to the beginning of your body tag.

Setup listeners in Google Tag Manager

6 Macros

Naming and case must match.

  1. angulartics page path Type: Data Layer Variable Data Layer Variable Name: content-name
  2. angulartics event category Type: Data Layer Variable Data Layer Variable Name: target
  3. angulartics event action Type: Data Layer Variable Data Layer Variable Name: action
  4. angulartics event label Type: Data Layer Variable Data Layer Variable Name: target-properties
  5. angulartics event value Macro Type: Data Layer Variable Data Layer Variable Name: value
  6. angulartics event interaction type Type: Data Layer Variable Data Layer Variable Name: interaction-type

2 Rules

Name and case must match

  1. Angulartics events Condition: {{event}} equals interaction
  2. Angulartics pageviews Condition: {{event}} equals content-view

2 Tags

  1. Angulartics Events Product: Google Analytics Type: Universal Analytics Tracking ID: YourGoogleAnalyticsID Track Type: Event Category: {{angulartics event category}} Action: {{angulartics event action}} Label: {{angulartics event label}} Value: {{angulartics event value}} Non-Interaction Hit: {{angulartics event interaction type}} Firing Rules: Angulartics events
  2. Angulartics Pageviews Product: Google Analytics Type: Universal Analytics Tracking ID: YourGoogleAnalyticsID Track Type: Page View More settings > Basic Configuration > Document Path: {{angulartics page path}} Firing Rules: Angulartics pageviews

for Piwik

See angulartics-piwik for more details.

for other providers

Browse the website for detailed instructions.

Supported providers

If there's no Angulartics plugin for your analytics vendor of choice, please feel free to write yours and PR' it! Here's how to do it.

Creating your own vendor plugin

Make sure you follow the Plugin contribution guidelines. You can also use any of the existing plugins as a starter template.

It's very easy to write your own plugin. First, create your module and inject $analyticsProvider:

angular.module('angulartics.myplugin', ['angulartics'])
  .config(['$analyticsProvider', function ($analyticsProvider) {

Please follow the style angulartics.{vendorname}.

Next, you register either the page track function, event track function, or both. You do it by calling the registerPageTrack and registerEventTrack methods. Let's take a look at page tracking first:

$analyticsProvider.registerPageTrack(function (path) {
	// your implementation here
}

By calling registerPageTrack, you tell Angulartics to invoke your function on $routeChangeSuccess or $stateChangeSuccess. Angulartics will send the new path as an argument.

$analyticsProvider.registerEventTrack(function (action, properties) {
	// your implementation here

This is very similar to page tracking. Angulartics will invoke your function every time the event (analytics-on attribute) is fired, passing the action (analytics-event attribute) and an object composed of any analytics-* attributes you put in the element.

If the analytics provider is created async, you can wrap you code with:

angulartics.waitForVendorApi("var", 1000, function(window.var) {
  ...
});

which will polls every 1000ms for window.var, and fire function(window.var) once window.var is not undefined. Calls made by $analytics will be buffered until function(window.var) fires.

You can also poll for window.var.subvar with:

angulartics.waitForVendorApi("var", 1000, "subvar", function(window.var) {
  ...
});

Check out the bundled plugins as reference. If you still have any questions, feel free to email me or post an issue at GitHub!

Playing around

Opt-out settings

When working on a global product there are many countries who by default require the opt-out functionality of all analytics and tracking. These opt out settings are meant to aid with that. The developer mode simply cripples the library where as this actually disables the tracking so it can be turned on and off.

// $analytics.setOptOut(boolean Optout);
// To opt out
$analytics.setOptOut(true);

// To opt in
$analytics.setOptOut(false);

// To get opt out state
$analytics.getOptOut(); // Returns true or false

Disabling virtual pageview tracking

If you want to keep pageview tracking for its traditional meaning (whole page visits only), set virtualPageviews to false:

module.config(function ($analyticsProvider) {
	$analyticsProvider.virtualPageviews(false);

Disabling pageview tracking for specific routes

If you want to disable pageview tracking for specific routes, you can define a list of excluded routes (using strings or regular expressions):

module.config(function ($analyticsProvider) {
		$analyticsProvider.excludeRoutes(['/abc','/def']);

Urls and routes that contain any of the strings or match any of the regular expressions will not trigger the pageview tracking.

Disabling tracking of specific query string keys

If you want to disable tracking for specific query string keys, you can define a list of both whitelisted and blacklisted keys (using strings or regular expressions):

module.config(function ($analyticsProvider) {
        $analyticsProvider.queryKeysWhitelist([/^utm_.*/]);
        $analyticsProvider.queryKeysBlacklist(['email',/^user/]);

Any query string key/value pairs will be filtered out of the URL sent to the tracking authority.

Blacklisting overrides Whitelisting.

Disabling tracking on $routeChangeSuccess

If you want to disable pageview tracking for the $routeChangeSuccess event, set trackRoutes to false:

module.config(function ($analyticsProvider) {
  $analyticsProvider.trackRoutes(false);

Disabling tracking on $stateChangeSuccess

If you want to disable pageview tracking for the $stateChangeSuccess event, set trackStates to false:

module.config(function ($analyticsProvider) {
  $analyticsProvider.trackStates(false);

Programmatic tracking

Use the $analytics service to emit pageview and event tracking:

module.controller('SampleCtrl', function($analytics) {
	// emit pageview beacon with path /my/url
    $analytics.pageTrack('/my/url');

	// emit event track (without properties)
    $analytics.eventTrack('eventName');

	// emit event track (with category and label properties for GA)
    $analytics.eventTrack('eventName', {
      category: 'category', label: 'label'
    });

Declarative tracking

Use analytics-on and analytics-event attributes for enabling event tracking on a specific HTML element:

<a href="file.pdf"
	analytics-on="click"
    analytics-if="myScope.shouldTrack"
	analytics-event="Download">Download</a>

analytics-on lets you specify the DOM event that triggers the event tracking; analytics-event is the event name to be sent.

analytics-if is a conditional check. If the attribute value evaluates to a falsey, the event will NOT be fired. Useful for user tracking opt-out, etc.

Additional properties (for example, category as required by GA) may be specified by adding analytics-* attributes:

<a href="file.pdf"
	analytics-on="click"
	analytics-event="Download"
	analytics-category="Content Actions">Download</a>

or setting analytics-properties:

<a href="file.pdf"
	analytics-on="click"
	analytics-event="Download"
	analytics-properties="{ category: 'Content Actions' }">Download</a>

Scroll tracking

You can use:

<div analytics-on="scrollby">

which will track an event when the element is scrolled to the top of the viewport. This relies on jQuery Waypoints which must be loaded:

<script src="waypoints/waypoints.min.js"></script>
<script src="angulartics/dist/angulartics-scroll.min.js"></script>

The following module must be enabled as well:

angular.module('myApp', [..., 'angulartics.scroll'])

You can pass extra options to Waypoints with scrollby-OPTION. For example, to track an event when the element is in the middle on the viewport:

<div analytics-on="scrollby" scrollby-offset="50%">

Waypoints is fired with the following options:

  • continuous: false, when jumping (for example with a URL anchor) passed several tracked elements, only the last one will fire an event
  • triggerOnce: true, the tracking event is only fired once for a given page

User tracking

You can assign user-related properties which will be sent along each page or event tracking thanks to:

$analytics.setAlias(alias)
$analytics.setUsername(username)
$analytics.setUserProperties(properties)
$analytics.setSuperProperties(properties)

Like $analytics.pageTrack() and $analytics.eventTrack(), the effect depends on the analytics provider (i.e. $analytics.register*()). Not all of them implement those methods.

The Google Analytics module lets you call $analytics.setUsername(username) or set up $analyticsProvider.settings.ga.userId = 'username'.

Exception tracking

You can enable automatic exception tracking which decorates angular's $exceptionHandler and reports the exception to the analytics provider:

$analyticsProvider.trackExceptions(true)

Currently only the Google Analytics provider supports tracking exceptions, and it does so by reporting it as an event.

Developer mode

You can disable tracking with:

$analyticsProvider.developerMode(true);

You can also debug Angulartics by adding the following module:

angular.module('myApp', [..., 'angulartics.debug'])

which will call console.log('Page|Event tracking: ', ...) accordingly.

What else?

See more docs and samples at http://angulartics.github.io.

Funny Story

Back in 2003 @mgonto and I were excited with Angular, doing a bunch of stuff. We had met each other at the Nardoz group and even crossed paths working for the same company. It turns out, both of us came up with the idea of building a module for analytics at the same time, without knowing about it. We even created our respective repos with just seconds of difference. Check that out yourselves by using the GitHub api and inspecting the creation date for this repo (at that time, this repo was under my username @luisfarzati, this is the original so it has the original creation date) and then Angularytics' creation date. Even our initial commits were about the same time.

To be honest, initially I thought he was just blatantly copycating the idea but then when I checked out the repo data, truth was his repo timestamp was even earlier than mine. So, technically, I copycated his idea. Of course I did not, that's the funny and weirdest thing of the story. Or perhaps, even weirder, is that we both chose almost the same exact name, only that @mgonto went with an additional Y.

We discussed about renaming one of our projects, we almost decided to play a Rock, Paper, Scissors, Lizard, Spock game to decide who keeps the original name, but both of us really liked our names. So we kept it that way.

Isn't the open source world crazy?

License

MIT

angulartics's People

Contributors

ajayk avatar bryan-liff avatar corinna000 avatar cthorner avatar cwill747 avatar ehmicky avatar glademiller avatar joaocc avatar joehalliwell avatar joel-nyansa avatar kienz avatar kraihn avatar l42y avatar larrybotha avatar leore avatar luisfarzati avatar lunks avatar malog84 avatar mgol avatar mkolodny avatar morvans avatar odedniv avatar proloser avatar ripper2hl avatar samanbarghi avatar sampov2 avatar timelf123 avatar tomasescobar avatar tydanielson avatar wli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angulartics's Issues

Testing on my google analytics didn't yield any results

I took the sample folder, i changed it to my UA tag and run it (double click on index.html file), but seen nothing on my google analytics dashboard (after clicking the buttons and links). Am i missing anything?

Thanks

Virtual page views are tracked on route redirection (possibly a regression)

It seems like the current check for avoiding trackin of redirects is invalid.

if (current && (current.$$route||current).redirectTo) return;

(https://github.com/luisfarzati/angulartics/blob/master/src/angulartics.js#L85)

The current argument of the locationChangeSuccess event is simply a string, it does not have any redirect property.

This commit changed the event from routeChangeStart event, which was a route parameters object, so I think there's a regression here.

However, I'm not sure how detecting redirects reliably can be made "routing agnostic", using location events.

The effect of the problem, for me, is multiple reporting of pages, skewing statistics and bounce rates.

Does this work with RequireJS

I'm loading this via AngularJS, so I put the google analytics code up above the requireJS bootstrap.

I've set the UA code and domain, but no views of my panel as of yet?

analytics value must be a number for event tracking (cordova/phonegap)

I'm using angulartics-ga-cordova.js with Cordova's GAPlugin. It works pretty well ๐Ÿ‘
According to this bug phonegap-build/GAPlugin#20 (which stays opened for 6 months now), value property must be an integer, otherwise event tracking doesn't work properly on android.

Using $analytics service, I can pass an integer for value property but when I use analytics-value directive, its value is always a string and so it throws an error on android.

Maybe this seems to be a bug on GAPlugin, not on angulartics itself. But from Event Tracking docs, value must be a number, otherwise it won't be tracked anyway. So I think when analytics gets analytics-value from the directive, it should parse the value to an integer before send to trackEvent function.

I've made changes in angulartics.js at line ~121 in order to make it work properly on android, something like: (it is kind of hard-coded).

var properties = {};
angular.forEach($attrs.$attr, function(attr, name) {
  if (isProperty(attr)) {
    var val;
    if (name === 'analyticsValue' && (typeof $attrs[name] !== 'number')) {
      var parsed = parseInt($attrs[name], 10);
      val = isNaN(parsed) ? 0 : parsed;
    } else {
      val = $attrs[name];
    }
    properties[name.slice(9).toLowerCase()] = val;
  }
});

Angular 1.2.4

Hi, it seems bower can't install with the newest version of Angular:

bower angulartics#* not-cached git://github.com/luisfarzati/angulartics.git#*
bower angulartics#* resolve git://github.com/luisfarzati/angulartics.git#*
bower angulartics#* download https://github.com/luisfarzati/angulartics/archive/0.8.5.tar.gz
bower angulartics#* extract archive.tar.gz
bower angulartics#* resolved git://github.com/luisfarzati/angulartics.git#0.8.5
bower angular-mocks#~1.0.7 not-cached git://github.com/angular/bower-angular-mocks.git#~1.0.7
bower angular-mocks#~1.0.7 resolve git://github.com/angular/bower-angular-mocks.git#~1.0.7
bower jquery-waypoints#~v2.0.3 not-cached git://github.com/imakewebthings/jquery-waypoints.git#~v2.0.3
bower jquery-waypoints#~v2.0.3 resolve git://github.com/imakewebthings/jquery-waypoints.git#~v2.0.3
bower angular#>= 1.0.7 not-cached git://github.com/angular/bower-angular.git#>= 1.0.7
bower angular#>= 1.0.7 resolve git://github.com/angular/bower-angular.git#>= 1.0.7
bower angular#>= 1.0.7 download https://github.com/angular/bower-angular/archive/v1.2.4.tar.gz
bower angular-mocks#~1.0.7 download https://github.com/angular/bower-angular-mocks/archive/v1.0.8.tar.gz
bower jquery-waypoints#~v2.0.3 download https://github.com/imakewebthings/jquery-waypoints/archive/v2.0.3.tar.gz
bower angular-mocks#~1.0.7 extract archive.tar.gz
bower angular-mocks#~1.0.7 resolved git://github.com/angular/bower-angular-mocks.git#1.0.8
bower angular#1.0.8 not-cached git://github.com/angular/bower-angular.git#1.0.8
bower angular#1.0.8 resolve git://github.com/angular/bower-angular.git#1.0.8
bower angular#1.0.8 download https://github.com/angular/bower-angular/archive/v1.0.8.tar.gz
bower jquery-waypoints#~v2.0.3 extract archive.tar.gz
bower jquery-waypoints#~v2.0.3 resolved git://github.com/imakewebthings/jquery-waypoints.git#2.0.3
bower angular#>= 1.0.7 extract archive.tar.gz
bower angular#>= 1.0.7 resolved git://github.com/angular/bower-angular.git#1.2.4
bower angular#* cached git://github.com/angular/bower-angular.git#1.2.4
bower angular#* validate 1.2.4 against git://github.com/angular/bower-angular.git#*
bower angular#>=1 cached git://github.com/angular/bower-angular.git#1.2.4
bower angular#>=1 validate 1.2.4 against git://github.com/angular/bower-angular.git#>=1
bower angular#>=1.0.0 <1.3.0 cached git://github.com/angular/bower-angular.git#1.2.4
bower angular#>=1.0.0 <1.3.0 validate 1.2.4 against git://github.com/angular/bower-angular.git#>=1.0.0 <1.3.0
bower angular#1.0.8 extract archive.tar.gz
bower angular#1.0.8 resolved git://github.com/angular/bower-angular.git#1.0.8
bower ECONFLICT Unable to find suitable version for angular

Any ideas?

no data on other pages

I'm not seeing pages tracked. Only the homepage. I have routes setup to handle other page, and a standard anchor link search for example...but I get no data for /search page.

Mixpanel support

Looks like a great project! I'm using Mixpanel and would be happy to write a module for it. Will probably get to that this weekend unless I hear it's already in the works.

Feature Request: Set default GA Category

Not sure how you would do it, but it would be awesome to be able to set a default Category for any tracking tags within a controller or within a module. It would help cut down on repetition of the analytics-category="" attribute. It would also help to allow you to add the analytics directive to templates for other directives and to simply set the category at the controller-level. This would minimize repeated code by keeping the tracking tag with the component, while simply switching out the category to signify the different location of the component.

sent('event') doesn't work for some reason

I am using the lib, and for some reason, even though that while debugging I've seen that the following line of code is executed:

  $analyticsProvider.registerEventTrack(function (action, properties) {
    if (window._gaq) _gaq.push(['_trackEvent', properties.category, action, properties.label, properties.value]);
    if (window.ga) ga('send', 'event', properties.category, action, properties.label, properties.value);//this line is executed
  });

I cannot see any events is my google analytics panel, but when Calling the send function directly, everything works fine.

Any ideas?

angulartics does not take data bindings into account

Hello,

I would like to track outgoing links from my application. I have links in the form of

<a data-ng-href="company.website_url" analytics-on analytics-category="Website" target="_blank">{{company.website_url}}</a>

where company is an object that is defined in the scope of the controller that controls this view.

Angulartics does fire the analytics events (I'm using GA), but does logs {{company.webiste_url}} rather than the data binded to it.

Any suggestions on how to fix this, I wouldn't mind providing a fix, but I'm still new to Angular...

Thanks!
Nick.

Notice in bower install

When I do a bower install it gives me the following notice:

mismatch The version specified in the bower.json of package angulartics mismatches the tag (0.4.9 vs 0.4.8)
mismatch You should report this problem to the package author

Inline injection of $location dependency

I was wondering if it's possible to inject the $location dependency on app run only if auto tracking is enabled? This is because there are parts of my site that I don't want to use routing and $location will trigger the router.
Below you can find the piece a came up with, although it didn't gave me any erros, I'm not certain it's the correct way of handling it.

.run(['$rootScope', '$injector', '$analytics', '$log', function($rootScope, $injector, $analytics, $log) {
    if ($analytics.settings.tracking.auto) {
      $injector.invoke(['$location', function($location){
        $rootScope.$on('$routeChangeStart', function() {
          $analytics.pageTrack($location.url());
        });
      }])
    }
  }])

Doesn't work with AdBlock in Chrome

Hi

I'm currently using Angulartics in my web application, and one of my users is having problems.

He's getting a JavaScript exception saying "Uncaught Error: No module: angulartics.google.analytics".

He's managed to narrow it down to being related to AdBblock, and more specifically because of EasyPrivacy (privacy protection):

Resource: http://justabacklog.com/Scripts/analytics/angulartics-google-analytics.min.js
Type: script
Matched filter: -google-analytics.
Third-party: No

If he whitelists the script then everything works.

Regards

John

Version 1 release

I'm curious when version 1.x is ready to release and what might be holding it back. It's because in the issue (#29) that I addressed my problem you mentioned it would be available in 1.x. At the moment it's quite a hassle to maintain the fix each time a new version is released, as I want to run the latest version of course.

Adding ECommerce Support to Google Plugin

As we need some Ecommerce in our company i would like to suggest an approach to do this.

I added some functionality to the google analytics plugin which enables some Event namespacing without the need to alter the angulartics.js

https://github.com/pfried/angulartics

I followed the way Google uses for ECommerce in analytics.js https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce

For example i can add an item by calling angulartics.eventTrack('ecommerce:addItem', {...}) using a delimitor in the event name.

I implemented the complete functionality regarding ECommerce in analytics.js. I wrote some tests to prove the compatibility and ensure it calls Google Analytics correctly.

It is only a draft for the moment and i will integrate it with our shop in the next week. Also i want to mention that there is no support for the "old" Google Analytics (_gaq) as i do not need it, but it would be easy to add.

Any thoughts on this? I first thought about adding this on a higher level but soon realized adding a third event queue is not the way to go.

Condensed format for tracking -- if you want it

Hi Luis, just wanted to contribute a snippet of code I've used to make angulartics tracking a little easier to write. Rather than adding 2-3 "analytics-X" attributes to my code, I've combined them into a single directive that wraps yours.

<a class="btn btn-primary" ng-click="add()" track="Add a new message; category:{{msg.title}}">Choose a template</a>

Because it works by manipulating the attributes directly, the values can be interpolated strings, etc.

Here's the code, it's in coffeescript but hopefully would make a useful addition to your library. My directive has to do a little extra work to re-compile, but from inside your library I can imagine you'd be able to skip that step.

# Helper directive to make angulartics easier to use
app.directive 'track', ($compile)->
  restrict: 'A'
  replace: false
  priority: 99  # less than 100, which is the attribute parser's priority
  terminal: true
  compile: (el, attrs, transclude)->
    # parse out the arguments and remove this attr to prevent it from being re-compiled
    args = attrs[@name].split /;\s*/
    el.removeAttr @name   # (this.name = directive's name)

    # track a "click" event if everything else is unspecified
    args = ['click'] if args.length == 0

    # first argument is special - in form on:event (click is assumed)
    first = args.shift()
    first = first.split /:\s*/
    first.unshift 'click' if first.length == 1
    el.attr 'analytics-on', first[0]
    el.attr 'analytics-event', first[1]

    # optionally set additional analytics parameters
    for prop in args
      [key, value] = prop.split /:\s*/
      el.attr "analytics-#{key}", value

    # because this is terminal, it must return a linking function that
    # re-compiles with new attributes included.
    return (scope, el, attrs, controller)-> $compile(el)(scope)

I could probably make it more resistant to bad formatting (semis in event name, etc) with a little tuning of the regexes. etc.

Not working in firefox 25,MacOs

Failed when load module for google analytics in firefox 25,MacOs
angularJS 1.2

Error: [$injector:modulerr] Failed to instantiate module bdaycards due to:
[$injector:modulerr] Failed to instantiate module angulartics.google.analytics due to:
[$injector:nomod] Module 'angulartics.google.analytics' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.2.0/$injector/nomod?p0=angulartics.google.analytics
minErr/<@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:78
setupModuleLoader/</module/<@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:1500
ensure@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:1434
module@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:1496
createInjector/loadModules/<@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:3520
forEach@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:300
loadModules@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:3514
createInjector/loadModules/<@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:3521
forEach@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:300
loadModules@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:3514
createInjector@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:3454
bootstrap/doBootstrap@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:1282
bootstrap@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:1297
angularInit@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:1246
@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:20026
f.Callbacks/n@https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js:2
f.Callbacks/o.fireWith@https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js:2
.ready@https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js:2
B@https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js:2

http://errors.angularjs.org/1.2.0/$injector/modulerr?p0=angulartics.google.analytics&p1=%5B%24injector%3Anomod%5D%20Module%20'angulartics.google.analytics'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.2.0%2F%24injector%2Fnomod%3Fp0%3Dangulartics.google.analytics%0AminErr%2F%3C%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A78%0AsetupModuleLoader%2F%3C%2Fmodule%2F%3C%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A1500%0Aensure%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A1434%0Amodule%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A1496%0AcreateInjector%2FloadModules%2F%3C%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A3520%0AforEach%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A300%0AloadModules%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A3514%0AcreateInjector%2FloadModules%2F%3C%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A3521%0AforEach%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A300%0AloadModules%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A3514%0AcreateInjector%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A3454%0Abootstrap%2FdoBootstrap%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A1282%0Abootstrap%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A1297%0AangularInit%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A1246%0A%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A20026%0Af.Callbacks%2Fn%40https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.7.1%2Fjquery.min.js%3A2%0Af.Callbacks%2Fo.fireWith%40https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.7.1%2Fjquery.min.js%3A2%0A.ready%40https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.7.1%2Fjquery.min.js%3A2%0AB%40https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.7.1%2Fjquery.min.js%3A2%0A
minErr/<@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:78
createInjector/loadModules/<@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:3549
forEach@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:300
loadModules@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:3514
createInjector/loadModules/<@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:3521
forEach@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:300
loadModules@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:3514
createInjector@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:3454
bootstrap/doBootstrap@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:1282
bootstrap@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:1297
angularInit@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:1246
@https://velton.appsorama.com:9007/facebook_apps/rybirthdays/web/1385382350/assets/angular/vendor/angular.js:20026
f.Callbacks/n@https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js:2
f.Callbacks/o.fireWith@https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js:2
.ready@https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js:2
B@https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js:2

http://errors.angularjs.org/1.2.0/$injector/modulerr?p0=bdaycards&p1=%5B%24injector%3Amodulerr%5D%20Failed%20to%20instantiate%20module%20angulartics.google.analytics%20due%20to%3A%0A%5B%24injector%3Anomod%5D%20Module%20'angulartics.google.analytics'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.2.0%2F%24injector%2Fnomod%3Fp0%3Dangulartics.google.analytics%0AminErr%2F%3C%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A78%0AsetupModuleLoader%2F%3C%2Fmodule%2F%3C%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A1500%0Aensure%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A1434%0Amodule%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A1496%0AcreateInjector%2FloadModules%2F%3C%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A3520%0AforEach%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A300%0AloadModules%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A3514%0AcreateInjector%2FloadModules%2F%3C%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A3521%0AforEach%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A300%0AloadModules%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A3514%0AcreateInjector%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A3454%0Abootstrap%2FdoBootstrap%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A1282%0Abootstrap%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A1297%0AangularInit%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A1246%0A%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A20026%0Af.Callbacks%2Fn%40https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.7.1%2Fjquery.min.js%3A2%0Af.Callbacks%2Fo.fireWith%40https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.7.1%2Fjquery.min.js%3A2%0A.ready%40https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.7.1%2Fjquery.min.js%3A2%0AB%40https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.7.1%2Fjquery.min.js%3A2%0A%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.2.0%2F%24injector%2Fmodulerr%3Fp0%3Dangulartics.google.analytics%26p1%3D%255B%2524injector%253Anomod%255D%2520Module%2520'angulartics.google.analytics'%2520is%2520not%2520available!%2520You%2520either%2520misspelled%2520the%2520module%2520name%2520or%2520forgot%2520to%2520load%2520it.%2520If%2520registering%2520a%2520module%2520ensure%2520that%2520you%2520specify%2520the%2520dependencies%2520as%2520the%2520second%2520argument.%250Ahttp%253A%252F%252Ferrors.angularjs.org%252F1.2.0%252F%2524injector%252Fnomod%253Fp0%253Dangulartics.google.analytics%250AminErr%252F%253C%2540https%253A%252F%252Fvelton.appsorama.com%253A9007%252Ffacebook_apps%252Frybirthdays%252Fweb%252F1385382350%252Fassets%252Fangular%252Fvendor%252Fangular.js%253A78%250AsetupModuleLoader%252F%253C%252Fmodule%252F%253C%2540https%253A%252F%252Fvelton.appsorama.com%253A9007%252Ffacebook_apps%252Frybirthdays%252Fweb%252F1385382350%252Fassets%252Fangular%252Fvendor%252Fangular.js%253A1500%250Aensure%2540https%253A%252F%252Fvelton.appsorama.com%253A9007%252Ffacebook_apps%252Frybirthdays%252Fweb%252F1385382350%252Fassets%252Fangular%252Fvendor%252Fangular.js%253A1434%250Amodule%2540https%253A%252F%252Fvelton.appsorama.com%253A9007%252Ffacebook_apps%252Frybirthdays%252Fweb%252F1385382350%252Fassets%252Fangular%252Fvendor%252Fangular.js%253A1496%250AcreateInjector%252FloadModules%252F%253C%2540https%253A%252F%252Fvelton.appsorama.com%253A9007%252Ffacebook_apps%252Frybirthdays%252Fweb%252F1385382350%252Fassets%252Fangular%252Fvendor%252Fangular.js%253A3520%250AforEach%2540https%253A%252F%252Fvelton.appsorama.com%253A9007%252Ffacebook_apps%252Frybirthdays%252Fweb%252F1385382350%252Fassets%252Fangular%252Fvendor%252Fangular.js%253A300%250AloadModules%2540https%253A%252F%252Fvelton.appsorama.com%253A9007%252Ffacebook_apps%252Frybirthdays%252Fweb%252F1385382350%252Fassets%252Fangular%252Fvendor%252Fangular.js%253A3514%250AcreateInjector%252FloadModules%252F%253C%2540https%253A%252F%252Fvelton.appsorama.com%253A9007%252Ffacebook_apps%252Frybirthdays%252Fweb%252F1385382350%252Fassets%252Fangular%252Fvendor%252Fangular.js%253A3521%250AforEach%2540https%253A%252F%252Fvelton.appsorama.com%253A9007%252Ffacebook_apps%252Frybirthdays%252Fweb%252F1385382350%252Fassets%252Fangular%252Fvendor%252Fangular.js%253A300%250AloadModules%2540https%253A%252F%252Fvelton.appsorama.com%253A9007%252Ffacebook_apps%252Frybirthdays%252Fweb%252F1385382350%252Fassets%252Fangular%252Fvendor%252Fangular.js%253A3514%250AcreateInjector%2540https%253A%252F%252Fvelton.appsorama.com%253A9007%252Ffacebook_apps%252Frybirthdays%252Fweb%252F1385382350%252Fassets%252Fangular%252Fvendor%252Fangular.js%253A3454%250Abootstrap%252FdoBootstrap%2540https%253A%252F%252Fvelton.appsorama.com%253A9007%252Ffacebook_apps%252Frybirthdays%252Fweb%252F1385382350%252Fassets%252Fangular%252Fvendor%252Fangular.js%253A1282%250Abootstrap%2540https%253A%252F%252Fvelton.appsorama.com%253A9007%252Ffacebook_apps%252Frybirthdays%252Fweb%252F1385382350%252Fassets%252Fangular%252Fvendor%252Fangular.js%253A1297%250AangularInit%2540https%253A%252F%252Fvelton.appsorama.com%253A9007%252Ffacebook_apps%252Frybirthdays%252Fweb%252F1385382350%252Fassets%252Fangular%252Fvendor%252Fangular.js%253A1246%250A%2540https%253A%252F%252Fvelton.appsorama.com%253A9007%252Ffacebook_apps%252Frybirthdays%252Fweb%252F1385382350%252Fassets%252Fangular%252Fvendor%252Fangular.js%253A20026%250Af.Callbacks%252Fn%2540https%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fjquery%252F1.7.1%252Fjquery.min.js%253A2%250Af.Callbacks%252Fo.fireWith%2540https%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fjquery%252F1.7.1%252Fjquery.min.js%253A2%250A.ready%2540https%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fjquery%252F1.7.1%252Fjquery.min.js%253A2%250AB%2540https%253A%252F%252Fajax.googleapis.com%252Fajax%252Flibs%252Fjquery%252F1.7.1%252Fjquery.min.js%253A2%250A%0AminErr%2F%3C%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A78%0AcreateInjector%2FloadModules%2F%3C%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A3549%0AforEach%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A300%0AloadModules%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A3514%0AcreateInjector%2FloadModules%2F%3C%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A3521%0AforEach%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A300%0AloadModules%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A3514%0AcreateInjector%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A3454%0Abootstrap%2FdoBootstrap%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A1282%0Abootstrap%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A1297%0AangularInit%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A1246%0A%40https%3A%2F%2Fvelton.appsorama.com%3A9007%2Ffacebook_apps%2Frybirthdays%2Fweb%2F1385382350%2Fassets%2Fangular%2Fvendor%2Fangular.js%3A20026%0Af.Callbacks%2Fn%40https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.7.1%2Fjquery.min.js%3A2%0Af.Callbacks%2Fo.fireWith%40https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.7.1%2Fjquery.min.js%3A2%0A.ready%40https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.7.1%2Fjquery.min.js%3A2%0AB%40https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.7.1%2Fjquery.min.js%3A2%0A
https://s-static.ak.facebook.com/connect/xd_arbiter.php?version=28
Line 13

but in Chrome all working ok

Omniture support

Loving this, exactly what I need.. once I understand Angular I'll try, but is Omniture support on the horizon?

Create bower package

would be great if all you needed to do is run a bower install angulartics and be ready to use! :>

Interpolation on attributes doesn't work dynamically

Hi,

I'm trying to use analytics like so:

However the expressions are evaluated only once, when the analyticsOn directive's link function is called. Changing myValue or myEventName afterwards doesn't change the values that are sent to analytics.

How about moving the code which fills the properties object to when the event binding is called, or observe attribute changes?

Fix mixed route/non-route cases

If the app has some urls under routing and some others off, page tracking behavior is inconsistent. It won't be fired for non-routed urls (correct) unless it comes from a routed url.

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.