Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Google Ecommerce Tracking

  1. #1
    kevanbulmer is offline Junior Member
    Join Date
    Jun 2009
    Posts
    20

    Default Google Ecommerce Tracking

    Hi

    I cant seem to get Ecommerce tracking working, this is the code being output on my order confirmation page:

    Code:
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-**REMOVED**-4");
    pageTracker._initData();
    pageTracker._trackPageview();
    pageTracker._addTrans("101205","","6.95",".98","4.95","County Durham","AA","United Kingdom");
    pageTracker._addItem("101205","A-133-112","Lemon and Lime Bubble Bath Jelly","Bathroom","1.67","1");
    pageTracker._trackTrans();
    </script>
    BELOW this just before my closing BODY i have this:

    Code:
    <!-- Google Ecommerce tracking -->
     
    <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>
    does it matter where this code is on the page? Im guessing not! but its worth asking.

    what else am I missing?

    My ecommerce stats are still reporting zero for everything. Normal analytics are fine.

    thanks
    Kevan

  2. #2
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    I have that last block of code in the header...


    TTFN

    BFG