Skip to content

Commit 100eb71

Browse files
committed
Adding google analytics
1 parent a057589 commit 100eb71

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/src/index.ejs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,14 @@
2727
<div id="app"></div>
2828
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.15.0/prism.min.js"></script>
2929
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.15.0/components/prism-json.min.js"></script>
30+
<!-- Global site tag (gtag.js) - Google Analytics -->
31+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-53857863-6"></script>
32+
<script>
33+
window.dataLayer = window.dataLayer || [];
34+
function gtag(){dataLayer.push(arguments);}
35+
gtag('js', new Date());
36+
37+
gtag('config', 'UA-53857863-6');
38+
</script>
3039
</body>
3140
</html>

0 commit comments

Comments
 (0)