Skip to content

Commit

Permalink
replace tag manager with gtag
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyangXYZ committed Sep 25, 2024
1 parent d495803 commit 261fd2b
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,19 @@
background-color: #000;
}
</style>
<!-- Google Tag Manager -->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CHVPKLH6FE"></script>
<script>
;(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 = "https://www.googletagmanager.com/gtm.js?id=" + i + dl
f.parentNode.insertBefore(j, f)
})(window, document, "script", "dataLayer", "GTM-W3GLJ587")
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
gtag("js", new Date())

gtag("config", "G-CHVPKLH6FE")
</script>
<!-- End Google Tag Manager -->
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript
><iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-W3GLJ587"
height="0"
width="0"
style="display: none; visibility: hidden"
></iframe
></noscript>
<!-- End Google Tag Manager (noscript) -->
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
Expand Down

0 comments on commit 261fd2b

Please sign in to comment.