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:
commit
c8e8577738
2 changed files with 5 additions and 7 deletions
5
.changeset/early-plants-hear.md
Normal file
5
.changeset/early-plants-hear.md
Normal 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.
|
||||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue