|
8 | 8 | <script>window.jQuery || document.write('<script src="{{ site.url }}/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
|
9 | 9 | <script src="{{ site.url }}/assets/js/scripts.min.js"></script>
|
10 | 10 | {% if site.owner.google.analytics %}
|
11 |
| -<!-- Asynchronous Google Analytics snippet --> |
12 | 11 | <script>
|
13 |
| - var _gaq = _gaq || []; |
14 |
| - var pluginUrl = |
15 |
| - '//www.google-analytics.com/plugins/ga/inpage_linkid.js'; |
16 |
| - _gaq.push(['_require', 'inpage_linkid', pluginUrl]); |
17 |
| - _gaq.push(['_setAccount', '{{ site.owner.google.analytics }}']); |
18 |
| - _gaq.push(['_trackPageview']); |
19 |
| - |
20 |
| - (function() { |
21 |
| - var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
22 |
| - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
23 |
| - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
24 |
| - })(); |
25 |
| -</script> |
| 12 | + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 13 | + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 14 | + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| 15 | + })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
26 | 16 |
|
| 17 | + ga('create', '{{ site.owner.google.analytics }}', 'auto'); |
| 18 | + ga('send', 'pageview'); |
27 | 19 |
|
| 20 | +</script> |
28 | 21 | {% endif %}
|
29 | 22 | {% if page.comments %}
|
30 | 23 | {% include _disqus_comments.html %}
|
|
0 commit comments