|
|
@ -28,11 +28,15 @@ var _gaq = _gaq || []; |
|
|
|
var ga = document.createElement('script'), s = document.getElementsByTagName('script')[0]; |
|
|
|
var ga = document.createElement('script'), s = document.getElementsByTagName('script')[0]; |
|
|
|
ga.type = 'text/javascript'; |
|
|
|
ga.type = 'text/javascript'; |
|
|
|
ga.async = true; |
|
|
|
ga.async = true; |
|
|
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
|
|
|
|
|
|
|
s.parentNode.insertBefore(ga, s); |
|
|
|
if ('https:' != document.location.protocol) { // analytics in https embeds problematic for IE 9/10/some Android
|
|
|
|
|
|
|
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
|
|
|
_gaq.push(['_setAccount', embed_analytics]); |
|
|
|
s.parentNode.insertBefore(ga, s); |
|
|
|
_gaq.push(['_trackPageview']); |
|
|
|
|
|
|
|
|
|
|
|
_gaq.push(['_setAccount', embed_analytics]); |
|
|
|
|
|
|
|
_gaq.push(['_trackPageview']); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|