PDA

View Full Version : Google Analytics appear not to be working


wood1e
07-03-2008, 07:04 AM
Hi, I installed Google analytics a few days ago, and we have had a total of one visitor. And yet with Aebanalyser software we have been using, we get on average 1000 visitors a day.

I have addded the coding Google requires, which is this:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write("<script src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'></script>" );
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-OuRNumber");
pageTracker._initData();
pageTracker._trackPageview();
</script>

Is there something else I should have installed?

shaneekirk
07-03-2008, 09:40 AM
Did you add the code to ALL of the pages that you are wanting to track?

wood1e
07-03-2008, 09:54 AM
No I didn't, should I?

As a side issue, I added my website to Analytics, and I tried to add an individual page (a dynamic page) and it stated I was trying to add an invalid input? Not sure ehy this is...

AussieWebmaster
07-03-2008, 11:50 AM
and you have your number in the UA spot not the actual code you put up in the post right

wood1e
07-03-2008, 12:27 PM
oh yes... :)

textlink969
07-07-2008, 03:44 PM
just add same code in all pages and put before </body> tag