diff --git a/app/assets/javascripts/discourse/initializers/page-tracking.js.es6 b/app/assets/javascripts/discourse/initializers/page-tracking.js.es6 index 7e744a7de96..6a529a109b0 100644 --- a/app/assets/javascripts/discourse/initializers/page-tracking.js.es6 +++ b/app/assets/javascripts/discourse/initializers/page-tracking.js.es6 @@ -33,18 +33,5 @@ export default { window.ga('send', 'pageview', {page: url, title: title}); }); } - - // And Google Tag Manager too - if (typeof window.dataLayer !== 'undefined') { - onPageChange((url, title) => { - window.dataLayer.push({ - 'event': 'virtualPageView', - 'page': { - 'title': title, - 'url': url - } - }); - }); - } } };