| author | cavaliet |
| Tue, 17 Jun 2014 10:25:33 +0200 | |
| changeset 271 | 8f77cf71ab02 |
| parent 170 | web/hdalab/templates/google_analytics/analytics_template.html@cb3e869ab252 |
| child 627 | 3fd558fa38b1 |
| permissions | -rw-r--r-- |
| 170 | 1 |
<script type="text/javascript"> |
2 |
var _gaq = _gaq || []; |
|
3 |
_gaq.push(['_setAccount', '{{ analytics_code }}']); |
|
4 |
_gaq.push(['_trackPageview']); |
|
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 |
})(); |
|
10 |
</script> |