Loading public/javascript/app/components/CookieLoader.js +7 −10 Original line number Diff line number Diff line Loading @@ -105,10 +105,10 @@ define([ var script = document.createElement('script'), gtagId = redmicConfig.googleAnalyticsId; script.async = false; script.async = true; script.src = 'https://www.googletagmanager.com/gtag/js?id=' + gtagId; script.onload = function() { document.head.appendChild(script); window.dataLayer = []; Loading @@ -119,9 +119,6 @@ define([ gtag('js', new Date()); gtag('config', gtagId); }; document.head.appendChild(script); } }); }); public/javascript/redmic/modules/base/Analytics.js +3 −1 Original line number Diff line number Diff line Loading @@ -206,7 +206,9 @@ define([ // pj. page, title, version... if (this._gtagIsAvailable()) { gtag('event', 'page_view', pageInfo); gtag('event', 'page_view', { page_path: '/' + pageInfo }); } }, Loading Loading
public/javascript/app/components/CookieLoader.js +7 −10 Original line number Diff line number Diff line Loading @@ -105,10 +105,10 @@ define([ var script = document.createElement('script'), gtagId = redmicConfig.googleAnalyticsId; script.async = false; script.async = true; script.src = 'https://www.googletagmanager.com/gtag/js?id=' + gtagId; script.onload = function() { document.head.appendChild(script); window.dataLayer = []; Loading @@ -119,9 +119,6 @@ define([ gtag('js', new Date()); gtag('config', gtagId); }; document.head.appendChild(script); } }); });
public/javascript/redmic/modules/base/Analytics.js +3 −1 Original line number Diff line number Diff line Loading @@ -206,7 +206,9 @@ define([ // pj. page, title, version... if (this._gtagIsAvailable()) { gtag('event', 'page_view', pageInfo); gtag('event', 'page_view', { page_path: '/' + pageInfo }); } }, Loading