mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 13:07:59 +01:00
Merged development into master
This commit is contained in:
commit
f6044fb029
1 changed files with 2 additions and 3 deletions
5
public/scripts/base/angularytics.js
vendored
5
public/scripts/base/angularytics.js
vendored
|
@ -100,11 +100,10 @@
|
||||||
]).factory('AngularyticsGoogleUniversalHandler', function () {
|
]).factory('AngularyticsGoogleUniversalHandler', function () {
|
||||||
var service = {};
|
var service = {};
|
||||||
service.trackPageView = function (url) {
|
service.trackPageView = function (url) {
|
||||||
ga('set', 'page', url);
|
window._gaq.push(['_trackPageview', url]);
|
||||||
ga('send', 'pageview', url);
|
|
||||||
};
|
};
|
||||||
service.trackEvent = function (category, action, opt_label, opt_value, opt_noninteraction) {
|
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;
|
return service;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue