|
1 | 1 | {% if site.google_analytics %} |
2 | 2 | <!-- Google Analytics --> |
3 | 3 | <script> |
4 | | - (function (i, s, o, g, r, a, m) { |
5 | | - i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { |
6 | | - (i[r].q = i[r].q || []).push(arguments) |
7 | | - }, i[r].l = 1 * new Date(); a = s.createElement(o), |
8 | | - m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) |
9 | | - })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); |
10 | | - ga('create', '{{ site.google_analytics }}', 'auto'); |
11 | | - ga('send', 'pageview'); |
| 4 | + (function (i, s, o, g, r, a, m) { |
| 5 | + i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { |
| 6 | + (i[r].q = i[r].q || []).push(arguments) |
| 7 | + }, i[r].l = 1 * new Date(); a = s.createElement(o), |
| 8 | + m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) |
| 9 | + })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); |
| 10 | + ga('create', '{{ site.google_analytics }}', 'auto'); |
| 11 | + ga('send', 'pageview'); |
12 | 12 | </script> |
13 | 13 | <!-- End Google Analytics --> |
14 | 14 | {% endif %} |
0 commit comments