From c9cb5a5b79f78c6698c18e410f18a1c971134a14 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 26 Feb 2016 14:48:36 -0500 Subject: [PATCH] FIX: GA Universal tracking had a bug --- .../javascripts/discourse/initializers/page-tracking.js.es6 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/initializers/page-tracking.js.es6 b/app/assets/javascripts/discourse/initializers/page-tracking.js.es6 index f458900a087..34fed0c9771 100644 --- a/app/assets/javascripts/discourse/initializers/page-tracking.js.es6 +++ b/app/assets/javascripts/discourse/initializers/page-tracking.js.es6 @@ -25,7 +25,6 @@ export default { }); }); - router.transientCache = function(key, data, count) { if (data === undefined) { return cache[key]; @@ -48,7 +47,7 @@ export default { // Also use Universal Analytics if it is present if (typeof window.ga !== 'undefined') { - onPageChange.on('change', (url, title) => { + onPageChange((url, title) => { window.ga('send', 'pageview', {page: url, title: title}); }); }