Skip to content

Commit 6a6de59

Browse files
Install Google Tag Manager
1 parent 5915143 commit 6a6de59

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

demo/index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,31 @@
88
<meta name="description" content="">
99
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
1010

11+
<!-- Google Tag Manager -->
12+
<script>
13+
(function (w, d, s, l, i) {
14+
w[l] = w[l] || []; w[l].push({
15+
'gtm.start':
16+
new Date().getTime(), event: 'gtm.js'
17+
}); var f = d.getElementsByTagName(s)[0],
18+
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
19+
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
20+
})(window, document, 'script', 'dataLayer', 'GTM-W4BK9P');
21+
</script>
22+
<!-- End Google Tag Manager -->
23+
1124
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css"
1225
integrity="sha256-eSi1q2PG6J7g7ib17yAaWMcrr5GrtohYChqibrV7PBE=" crossorigin="anonymous" />
1326
</head>
1427

1528
<body>
29+
<!-- Google Tag Manager (noscript) -->
30+
<noscript>
31+
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W4BK9P" height="0" width="0" style="display:none;visibility:hidden">
32+
</iframe>
33+
</noscript>
34+
<!-- End Google Tag Manager (noscript) -->
35+
1636
<p>Hello world! This is HTML5 Boilerplate.</p>
1737
</body>
1838

0 commit comments

Comments
 (0)