Skip to content

Commit

Permalink
🐛 fix GA tag issue
Browse files Browse the repository at this point in the history
  • Loading branch information
doroudi committed Nov 21, 2024
1 parent 0b64a5b commit 1c28d53
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,31 +125,14 @@
}
}
</style>
<!-- Google Tag Manager -->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9Q4R8ZVVQH"></script>
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || []
w[l].push({
'gtm.start':
new Date().getTime(),
'event': 'gtm.js',
})
const f = d.getElementsByTagName(s)[0]
const j = d.createElement(s)
const 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-WBTQRDWN')
</script>
<!-- End Google Tag Manager -->
<script>
(function () {
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
const setting = localStorage.getItem('vueuse-color-scheme') || 'light'
if (setting === 'dark' || (prefersDark && setting !== 'light'))
document.documentElement.classList.toggle('dark', true)
})()
window.dataLayer = window.dataLayer || []
function gtag() { dataLayer.push(arguments) }
gtag('js', new Date())

gtag('config', 'G-9Q4R8ZVVQH')
</script>
</head>

Expand Down

0 comments on commit 1c28d53

Please sign in to comment.