Skip to content

Commit f78f279

Browse files
committed
Google Analytics setup to track GMD Demo
1 parent e0d6813 commit f78f279

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/webapp/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@
1414

1515
<title>GWT Material Design</title>
1616

17+
<!-- Google Analytics Setup -->
18+
<script>
19+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
20+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
21+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
22+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
23+
24+
ga('create', 'UA-86734814-1', 'auto');
25+
ga('send', 'pageview');
26+
27+
</script>
28+
1729
<script type="text/javascript" language="javascript" src="gwtmaterialdemo/gwtmaterialdemo.nocache.js"></script>
1830
</head>
1931

0 commit comments

Comments
 (0)