Merge pull request #364 from reuters-graphics/feat/ga-removal

Removed remnants loading Google Analytics.  GA is now loaded via GTM.
This commit is contained in:
Jon McClure 2025-10-22 14:09:04 +01:00 committed by GitHub
commit c8e8577738
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 7 deletions

View file

@ -0,0 +1,5 @@
---
'@reuters-graphics/graphics-components': patch
---
Removes stray Google Analytics loading call so GA is only loaded via Google Tag Manager.

View file

@ -1,6 +1,3 @@
// Reuters Google Tag ID
const GOOGLE_TAG_ID = 'G-WBSR7WLTGD';
export default () => {
try {
window.dataLayer = window.dataLayer || [];
@ -11,10 +8,6 @@ export default () => {
window.dataLayer.push(arguments);
};
window.gtag('js', new Date());
// config event registers a pageview by default
window.gtag('config', GOOGLE_TAG_ID, {
send_page_view: false,
});
registerPageview();
}
} catch (e) {