Google Analytics - utmz cookie shows utmcsr=(direct)

kanjigirlkanjigirl Member
in Bugs & Feature Requests edited March 2010
I've done the steps in the Google Analytics integration process in the wiki. I went though it again this morning but I'm still having a problem...

For the utmz cookie I get utmcsr=(direct) on both my product and checkout pages. Here they are:

http://www.strikemodels.com/products/cannon-test/

http://strikemodels.foxycart.com/cart?name=blah&price=10&cart=checkout

Can you help me out?
Comments
  • brettbrett FoxyCart Team
    Hmmm...
    Try moving this bit from the bottom of your checkout template to the <head> section like this:
    <script type="text/javascript" charset="utf-8">
    	jQuery(document).ready(function(){
    		// Ensure the GA info is in the URL //
    		if (window.location.hash.search(/utma/) == -1 && fc_json.custom_fields['ga'].length > 0) {
    			window.location.hash = fc_json.custom_fields['ga'];
    		}
    	});
    </script>
    

    See if that helps. It seems like for some reason the GA pageTracker isn't acknowledging the anchor string in the URL... Not sure why. Haven't seen that before, though I don't see anything off after a quick glance.
Sign In or Register to comment.