Strange malfunction: Analytics tracking code visible
Permalink
Hey all, my website: thepetkeeper.in (don't add www., needs fixing) is displaying the google analytics tracking code I've added to it at the bottom, why is this occuring?
Have you wrapped it in script tags?
Actually, I see from the source you have no opening script tag,
Putt this before
Putt this
<script type="text/javascript">
var _gaq = _gaq || [];
Umm it seems so, here what I see:
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-37031438-1']); _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); })();
Is this incorrect?
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-37031438-1']); _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); })();
Is this incorrect?
Thanks weyboat! I just got the code from google again :D And it worked fine so your were right, I must've deleted something by mistake