Skip to content

Commit 0ece725

Browse files
author
Simone Picciani
committed
async version of google analytics
1 parent 8eaf3f9 commit 0ece725

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

index.html

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88

99
<head>
1010
<title>PyMi - La community Python di Milano e dintorni</title>
11+
<!-- Google Analytics -->
12+
<script>
13+
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
14+
ga('create', 'UA-XXXXX-Y', 'auto');
15+
ga('send', 'pageview');
16+
</script>
17+
<script async src='https://www.google-analytics.com/analytics.js'></script>
18+
<!-- End Google Analytics -->
1119
<meta charset="utf-8" />
1220
<meta name="viewport" content="width=device-width, initial-scale=1" />
1321
<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
@@ -199,17 +207,6 @@ <h2>Supported by</h2>
199207
<script src="assets/js/ie/respond.min.js"></script><![endif]-->
200208
<script src="assets/js/main.js"></script>
201209
<script src="assets/js/meetup.js"></script>
202-
<!--Google analytics-->
203-
<script>
204-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
205-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
206-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
207-
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
208-
209-
ga('create', 'UA-98517843-1', 'auto');
210-
ga('send', 'pageview');
211-
212-
</script>
213210
</body>
214211

215212
</html>

0 commit comments

Comments
 (0)