From 523f4eee9f4d101db4b45a2b1da411563bdc1af4 Mon Sep 17 00:00:00 2001 From: nelsonlaquet Date: Sun, 1 Sep 2013 06:45:56 -0500 Subject: [PATCH] ga things --- public/scripts/base/angularytics.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/scripts/base/angularytics.js b/public/scripts/base/angularytics.js index 5f6aafb5..938aac74 100644 --- a/public/scripts/base/angularytics.js +++ b/public/scripts/base/angularytics.js @@ -100,11 +100,10 @@ ]).factory('AngularyticsGoogleUniversalHandler', function () { var service = {}; service.trackPageView = function (url) { - ga('set', 'page', url); - ga('send', 'pageview', url); + window._gaq.push(['_trackPageview', url]); }; service.trackEvent = function (category, action, opt_label, opt_value, opt_noninteraction) { - ga('send', 'event', category, action, opt_label, opt_value, { 'nonInteraction': opt_noninteraction }); + window.ga('send', 'event', category, action, opt_label, opt_value, { 'nonInteraction': opt_noninteraction }); }; return service; });