@reuters-graphics/graphics-components 3.0.19 → 3.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// Reuters Google Tag ID
|
|
2
|
-
const GOOGLE_TAG_ID = 'G-WBSR7WLTGD';
|
|
3
1
|
export default () => {
|
|
4
2
|
try {
|
|
5
3
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -10,10 +8,6 @@ export default () => {
|
|
|
10
8
|
window.dataLayer.push(arguments);
|
|
11
9
|
};
|
|
12
10
|
window.gtag('js', new Date());
|
|
13
|
-
// config event registers a pageview by default
|
|
14
|
-
window.gtag('config', GOOGLE_TAG_ID, {
|
|
15
|
-
send_page_view: false,
|
|
16
|
-
});
|
|
17
11
|
registerPageview();
|
|
18
12
|
}
|
|
19
13
|
}
|