Skip to content

Commit 839461e

Browse files
authored
Merge pull request #19 from DataDog/tim.sara/WEB-8762
Add Google Tag Manager to all HTML pages
2 parents 435e058 + b2343bb commit 839461e

4 files changed

Lines changed: 44 additions & 0 deletions

File tree

docs/404.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,19 @@
3131
window.location.replace(redirect);
3232
})();
3333
</script>
34+
<!-- Google Tag Manager -->
35+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
36+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
37+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
38+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
39+
})(window,document,'script','dataLayer','GTM-WDC8G6');</script>
40+
<!-- End Google Tag Manager -->
3441
</head>
3542
<body>
43+
<!-- Google Tag Manager (noscript) -->
44+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WDC8G6"
45+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
46+
<!-- End Google Tag Manager (noscript) -->
3647
<p>Redirecting...</p>
3748
</body>
3849
</html>

docs/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,19 @@
379379
}
380380
}
381381
</style>
382+
<!-- Google Tag Manager -->
383+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
384+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
385+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
386+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
387+
})(window,document,'script','dataLayer','GTM-WDC8G6');</script>
388+
<!-- End Google Tag Manager -->
382389
</head>
383390
<body>
391+
<!-- Google Tag Manager (noscript) -->
392+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WDC8G6"
393+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
394+
<!-- End Google Tag Manager (noscript) -->
384395
<header>
385396
<div class="header-content">
386397
<div class="header-left">

docs/paths/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,19 @@
5151
})();
5252
</script>
5353
<link rel="stylesheet" href="/css/style.css?v=36">
54+
<!-- Google Tag Manager -->
55+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
56+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
57+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
58+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
59+
})(window,document,'script','dataLayer','GTM-WDC8G6');</script>
60+
<!-- End Google Tag Manager -->
5461
</head>
5562
<body>
63+
<!-- Google Tag Manager (noscript) -->
64+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WDC8G6"
65+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
66+
<!-- End Google Tag Manager (noscript) -->
5667
<header>
5768
<div class="header-content">
5869
<div class="header-left">

docs/paths/stats/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,19 @@
391391
}
392392
}
393393
</style>
394+
<!-- Google Tag Manager -->
395+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
396+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
397+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
398+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
399+
})(window,document,'script','dataLayer','GTM-WDC8G6');</script>
400+
<!-- End Google Tag Manager -->
394401
</head>
395402
<body>
403+
<!-- Google Tag Manager (noscript) -->
404+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WDC8G6"
405+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
406+
<!-- End Google Tag Manager (noscript) -->
396407
<header>
397408
<div class="header-content">
398409
<div class="header-left">

0 commit comments

Comments
 (0)