@@ -36,13 +36,16 @@ |
||
| 36 | 36 | console.log('GoogleAnalytics: ' + [].slice.call(arguments)); |
| 37 | 37 | } |
| 38 | 38 | <?php |
| 39 | - else : ?> |
|
| 39 | + else { |
|
| 40 | + : ?> |
|
| 40 | 41 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 41 | 42 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 42 | 43 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| 43 | 44 | })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
| 44 | 45 | <?php |
| 45 | - endif; ?> |
|
| 46 | + endif; |
|
| 47 | + } |
|
| 48 | + ?> |
|
| 46 | 49 | ga('create','<?php echo $this->gaId; ?>','auto');ga('send','pageview'); |
| 47 | 50 | <?php if ($this->anonymizeIp == 1) : ?> |
| 48 | 51 | ga('set', 'anonymizeIp', true); |