Google Analytics Incorreclty Located


https://forum.kartris.com/Topic167.aspx
Print Topic | Close Window

By Ogma - Sat 6 Nov 2010
Hi Guys
The latest version of Google Analytics needs to be installed above the closing HEAD tag and not down below by the closing BODY tag.

The new code allows for the _gaq.push(['_trackPageview']); to be add rather than the enforced
pageTracker._trackPageview(); by the Kartris system.

Because of all the different options Google now offers such as

  • A single domain (default)
  • One domain with multiple subdomains
  • Multiple top-level domains
I belive you need to be more flexible. See other variables avaialbe to allow you to enhance your GA
http://code.google.com/apis/analytics/docs/tracking/gaTrackingCustomVariables.html

Surely it would be far easier to simple add free text area in both locations so users can add what ever versions on the GA code they want and also add tracking code from other systems also?

Just my two pennies...

Carl
By Paul - Sun 7 Nov 2010
We did balance the trade off between a free text area and the simplicity of just entering a GA ID number.

However, it is still possible to change the source of the GA code Kartris uses, which is created in this user control:

UserControls/Front/EcommerceTracking.ascx

You can edit this file to update the GA tracking code or even to replace it with an alternative system to GA.
By Ogma - Sun 7 Nov 2010
Thanks Paul