|
|
|
|
|
|
|
|
|
|
|
|
Re: Google Analytics [message #163165 is a reply to message #163164] |
Mon, 04 October 2010 08:36   |
Ernesto
 Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
Yes, my fault, I messed up a quote
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push([\'_setAccount\', \'UA-315562-4\']);
_gaq.push([\'_trackPageview\']);
(function() {
var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') +\'.google-analytics.com/ga.js\';
var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
should work
[Updated on: Mon, 04 October 2010 08:36] Report message to a moderator
|
|
|
|
|
Re: Google Analytics [message #163170 is a reply to message #163169] |
Mon, 04 October 2010 17:12   |
Ernesto
 Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
Just use the damn quote likes naudefj has on this form hehe. I use very old analytics code, so couldn't copy mine.
Edit: I have strong hate for apostrophes, they always cause me trouble, I am such a noob =(
<script type="text/javascript">
// Google analytics.
var _gaq = _gaq || [];
_gaq.push(["_setAccount", "UA-315562-4"]);
_gaq.push(["_trackPageview"]);
(function() {
var ga = document.createElement("script"); ga.type = "text/javascript"; ga.async = true;
ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";
var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
[Updated on: Mon, 04 October 2010 17:26] Report message to a moderator
|
|
|
|
|
|
|
|
|
|