PDA

View Full Version : Google Analytics JS not showing up


eyeDutch
Mar-31-2008, 01:37 AM
Hi, I'm trying to bring Google Analytics to life on my new pro account which lives at http://uncap.eu/ using the Customization screen where I can enter Javascripts.

However, nothing shows up. I've tried with and without ********> tags in both the header and footer, the following code:

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

var pageTracker = _gat._getTracker("UA-4002296-1");
pageTracker._initData();
pageTracker._trackPageview();

However when I click "update" and it returns "Customization updated" and I hit reload on my main or gallery pages, I don't see it show up in the page source, and Google Analytics says "Tracking Not Installed" as well.

Am I supposed to be able to put whatever JS I like in there, or is there some kind of filtering going on that prevents these from showing up?

Paul

Erick L
Mar-31-2008, 06:50 AM
Mine is at the bottom of the footer (NOT javascript footer) with the tags and it works.

eyeDutch
Mar-31-2008, 01:43 PM
Cool, that works, thanks!

I just assumed it had to be in the javascript section, since it was called that way :)