Skip to content

Commit c58178e

Browse files
idormencoion.dormenco
andauthored
add correct gtm (#165)
Co-authored-by: ion.dormenco <ion.dormenco@wearetribus.com>
1 parent acacfc9 commit c58178e

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

client/index.html

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,23 @@
1010
<link rel="shortcut icon" href="/favicon.ico" />
1111
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
1212
<link rel="manifest" href="/site.webmanifest" />
13+
<!-- Google Tag Manager -->
14+
<script>(function (w, d, s, l, i) {
15+
w[l] = w[l] || []; w[l].push({
16+
'gtm.start':
17+
new Date().getTime(), event: 'gtm.js'
18+
}); var f = d.getElementsByTagName(s)[0],
19+
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
20+
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
21+
})(window, document, 'script', 'dataLayer', 'GTM-KD6SS83N');</script>
22+
<!-- End Google Tag Manager -->
1323
</head>
1424

1525
<body>
26+
<!-- Google Tag Manager (noscript) -->
27+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KD6SS83N" height="0" width="0"
28+
style="display:none;visibility:hidden"></iframe></noscript>
29+
<!-- End Google Tag Manager (noscript) -->
1630
<div id="root"></div>
1731
<div id="fb-root"></div>
1832
<script type="module" src="/src/index.tsx"></script>
@@ -25,14 +39,6 @@
2539
chatbox.setAttribute("page_id", "158962987472579");
2640
chatbox.setAttribute("attribution", "biz_inbox");
2741
</script>
28-
<script type="text/javascript">
29-
(function (window, document, dataLayerName, id) {
30-
window[dataLayerName] = window[dataLayerName] || [], window[dataLayerName].push({ start: (new Date).getTime(), event: "stg.start" }); var scripts = document.getElementsByTagName('script')[0], tags = document.createElement('script');
31-
var qP = []; dataLayerName !== "dataLayer" && qP.push("data_layer_name=" + dataLayerName); var qPString = qP.length > 0 ? ("?" + qP.join("&")) : "";
32-
tags.async = !0, tags.src = "https://trillenials.containers.piwik.pro/" + id + ".js" + qPString, scripts.parentNode.insertBefore(tags, scripts);
33-
!function (a, n, i) { a[n] = a[n] || {}; for (var c = 0; c < i.length; c++)!function (i) { a[n][i] = a[n][i] || {}, a[n][i].api = a[n][i].api || function () { var a = [].slice.call(arguments, 0); "string" == typeof a[0] && window[dataLayerName].push({ event: n + "." + i + ":" + a[0], parameters: [].slice.call(arguments, 1) }) } }(i[c]) }(window, "ppms", ["tm", "cm"]);
34-
})(window, document, 'dataLayer', '89fa003a-2a3a-42bb-a74b-1761008dc779');
35-
</script>
3642

3743
</body>
3844

0 commit comments

Comments
 (0)