Skip to content

Commit ea57cd0

Browse files
committed
feat(analytics): Add analytics
1 parent daa1b9b commit ea57cd0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,14 @@ <h6>H6 Element</h6>
8383
</main>
8484
<footer></footer>
8585
<script type="module" src="./index.ts"></script>
86+
<!-- Google tag (gtag.js) -->
87+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YLLRFZLXZB"></script>
88+
<script>
89+
window.dataLayer = window.dataLayer || [];
90+
function gtag(){dataLayer.push(arguments);}
91+
gtag('js', new Date());
92+
93+
gtag('config', 'G-YLLRFZLXZB');
94+
</script>
8695
</body>
8796
</html>

0 commit comments

Comments
 (0)