Skip to content

Commit 9f7a9e2

Browse files
committed
Basic GA tracking for demo page
1 parent f60142e commit 9f7a9e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

demo/src/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,14 @@
66
</head>
77
<body>
88
<div id="content"></div>
9+
<script>
10+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
11+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
12+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
13+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
14+
15+
ga('create', 'UA-47861305-2', 'auto');
16+
ga('send', 'pageview');
17+
</script>
918
</body>
1019
</html>

0 commit comments

Comments
 (0)