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}); }); }