Removed remnants loading Google Analytics. GA is now loaded via GTM.
This commit is contained in:
parent
e864a7b4cc
commit
dc3c61c625
1 changed files with 0 additions and 7 deletions
|
|
@ -1,6 +1,3 @@
|
||||||
// Reuters Google Tag ID
|
|
||||||
const GOOGLE_TAG_ID = 'G-WBSR7WLTGD';
|
|
||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
try {
|
try {
|
||||||
window.dataLayer = window.dataLayer || [];
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
|
@ -11,10 +8,6 @@ export default () => {
|
||||||
window.dataLayer.push(arguments);
|
window.dataLayer.push(arguments);
|
||||||
};
|
};
|
||||||
window.gtag('js', new Date());
|
window.gtag('js', new Date());
|
||||||
// config event registers a pageview by default
|
|
||||||
window.gtag('config', GOOGLE_TAG_ID, {
|
|
||||||
send_page_view: false,
|
|
||||||
});
|
|
||||||
registerPageview();
|
registerPageview();
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue