Google Analytics

Everything related to the code /
Tout ce qui touche au code
Post Reply
User avatar
AF
Administrateur - Site Admin
Posts: 139
Joined: Thu Dec 28, 2006 8:19 pm
Location: NW UK
Contact:

Google Analytics

Post by AF » Fri Dec 21, 2007 11:45 am

http://www.google.com/analytics/GATCmigrationguide.pdf

Of note may be the a feature of ga.js:

Code: Select all

<a href="mydoc.pdf"
onclick="pageTracker._trackPageview('/mydoc.pdf');">Download a PDF</a>
Here's the tracking code you need to add to the bottom of every footer before the </html> tag:

Code: Select all

<script type="text/javascript">
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"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-123614-3");
pageTracker._initData();
pageTracker._trackPageview();
</script>
if you want access just tell me your google/gmail account and Ill add you.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Fri Dec 21, 2007 12:13 pm

looks interesting, I'll add it as soon as I am back home tonight !!

my gmail account is:
zuzuf86@gmail.com
=>;-D Penguin Powered

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Sat Dec 22, 2007 11:12 am

I've added the script to the site pages, but I didn't change the forum pages ... I am wondering if getting statistics on forums would be useful ...
=>;-D Penguin Powered

User avatar
AF
Administrateur - Site Admin
Posts: 139
Joined: Thu Dec 28, 2006 8:19 pm
Location: NW UK
Contact:

Post by AF » Sun Dec 23, 2007 3:11 pm

it seems the initial ta3d stats are combining both darkstars and ta3d.darkstars traffic, I thnk I've corrected it but look out for darkstars blog posts in ta3d traffic.

User avatar
AF
Administrateur - Site Admin
Posts: 139
Joined: Thu Dec 28, 2006 8:19 pm
Location: NW UK
Contact:

Post by AF » Mon Dec 24, 2007 2:55 pm

Code: Select all

<script type="text/javascript">
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"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-123614-4");
pageTracker._initData();
pageTracker._trackPageview();
</script>
It seems ta3d stats where mixing with my own stats as well as vice versa.

So I've deleted the ta3d profile and recreated it using ta3d.darkstars.co.uk. The new tracking code is above.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Thu Dec 27, 2007 1:50 pm

Ok, it's updated now :D
=>;-D Penguin Powered

Post Reply

Who is online

Users browsing this forum: No registered users and 52 guests