Skip to content

Commit

Permalink
feat: add gtag
Browse files Browse the repository at this point in the history
  • Loading branch information
felixindrawan committed Sep 27, 2024
1 parent f850324 commit a742f8f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -316,5 +316,31 @@
<script src="./js/const.js"></script>
<script type="module" src="./js/init.js"></script>
<script type="module" src="./js/index.js"></script>
<!-- Google Tag Manager -->
<noscript>
<iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-538F83"
height="0"
width="0"
style="display: none; visibility: hidden"
></iframe>
</noscript>
<script>
if (!navigator.webdriver) {
setTimeout(() => {
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != "dataLayer" ? "&l=" + l : "";
j.async = true;
j.src = "//www.googletagmanager.com/gtm.js?id=" + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, "script", "dataLayer", "GTM-538F83");
}, 0);
}
</script>
<!-- End Google Tag Manager -->
</body>
</html>

0 comments on commit a742f8f

Please sign in to comment.