inst/js/google-analytics.js
raw| 1 | var _gaq = _gaq || []; |
| 2 | _gaq.push(['_setAccount', 'GOOGLE_ANALYTICS_ID']); |
| 3 | _gaq.push(['_trackPageview']); |
| 4 | |
| 5 | (function() { |
| 6 | var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
| 7 | ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
| 8 | var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
| 9 | })(); |