Skip to content

Commit 50278bc

Browse files
committed
Added MG.net Google Analytics tag to docs site.
1 parent 5657514 commit 50278bc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

templates/monogame/partials/theme.tmpl.partial

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<!-- Google tag (gtag.js) -->
2+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-38431038-1"></script>
3+
<script>
4+
window.dataLayer = window.dataLayer || [];
5+
function gtag(){dataLayer.push(arguments);}
6+
gtag('js', new Date());
7+
8+
gtag('config', 'UA-38431038-1');
9+
</script>
10+
111
<script>
212
const theme = localStorage.getItem('theme') || 'auto'
313
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)

0 commit comments

Comments
 (0)