Upgrade Google Analytics to universal
Showing
1 changed file
with
6 additions
and
13 deletions
| ... | @@ -45,20 +45,13 @@ class Actions | ... | @@ -45,20 +45,13 @@ class Actions |
| 45 | } | 45 | } |
| 46 | ?> | 46 | ?> |
| 47 | <script> | 47 | <script> |
| 48 | var _gaq = _gaq || []; | 48 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 49 | _gaq.push(['_setAccount', '<?php echo Vars::$options['api_key']; ?>']); | 49 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 50 | _gaq.push(['_trackPageview']); | 50 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| 51 | })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||
| 51 | 52 | ||
| 52 | // _gaq.push(['_trackEvent', 'download', 'Membership', 'sub category?']); | 53 | ga('create', 'UA-16903554-2', 'cicbv.ca'); |
| 53 | 54 | ga('send', 'pageview'); | |
| 54 | (function () { | ||
| 55 | var ga = document.createElement('script'); | ||
| 56 | ga.type = 'text/javascript'; | ||
| 57 | ga.async = true; | ||
| 58 | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
| 59 | var s = document.getElementsByTagName('script')[0]; | ||
| 60 | s.parentNode.insertBefore(ga, s); | ||
| 61 | })(); | ||
| 62 | </script> | 55 | </script> |
| 63 | <?php | 56 | <?php |
| 64 | } | 57 | } | ... | ... |
-
Please register or sign in to post a comment