track more events

This commit is contained in:
Athou
2013-04-24 12:26:27 +02:00
parent 9dab6fa0fa
commit edb345da9c
3 changed files with 20 additions and 8 deletions

View File

@@ -2,10 +2,10 @@ var module = angular.module('commafeed.services', [ 'ngResource' ]);
module.service('AnalyticsService', [ '$state', function($state) {
this.track = function(path) {
path = path || $state.$current.url.prefix;
if (!ga) {
return;
}
path = path || $state.$current.url.prefix;
ga('send', 'pageview', {
page : path
});