Skip to content

Commit aa4ee39

Browse files
committed
Add Google Analytics tag to site template
1 parent 9f13351 commit aa4ee39

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

github-pages/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@
3232
<meta name="application-name" content="dotnet-skills">
3333
<meta name="color-scheme" content="light">
3434

35+
<!-- Google tag (gtag.js) -->
36+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7SDZKDYXG1"></script>
37+
<script>
38+
window.dataLayer = window.dataLayer || [];
39+
function gtag(){dataLayer.push(arguments);}
40+
gtag('js', new Date());
41+
42+
gtag('config', 'G-7SDZKDYXG1');
43+
</script>
44+
3545
<script type="application/ld+json">
3646
PAGE_JSON_LD_PLACEHOLDER
3747
</script>

0 commit comments

Comments
 (0)