Announcement

Collapse
No announcement yet.

Google Analytics - new code - v7

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Google Analytics - new code - v7

    Hi,

    I'm trying to enable the ecommerce function of google analytics for my v7 websites, and was wondering if there is a documented solution on how to do the 'add item' part of the script in the receipt? ie.
    Code:
    <script type="text/javascript">
      var pageTracker = _gat._getTracker("UA-XXXXX-1");
      pageTracker._initData();
      pageTracker._trackPageview();
    
      pageTracker._addTrans(
        "1234",                                     // Order ID
        "Mountain View",                            // Affiliation
        "11.99",                                    // Total
        "1.29",                                     // Tax
        "5",                                        // Shipping
        "San Jose",                                 // City
        "California",                               // State
        "USA"                                       // Country
      );
    
      pageTracker._addItem(
        "1234",                                     // Order ID
        "DD44",                                     // SKU
        "T-Shirt",                                  // Product Name 
        "Green Medium",                             // Category
        "11.99",                                    // Price
        "1"                                         // Quantity
      );
    
      pageTracker._trackTrans();
    </script>
    I've searched the forum and this subject seems to be well covered - except the solutions only seem to cover the old code on V7 or the new code on V8/V9. But I didn't find anything on v7 and the new code. Does it not work or did I just not find the right thread?
    www.LabelKing.co.uk - New!
    www.dymowholesale.co.uk - Newest!
    sigpic

    #2
    I can't recall ever seeing a V7 guide, you'd probably need to use the logic on the V8 thread and apply that to V7 as there isn't too much different in the areas, just more difficult getting to the correct area.

    Comment


      #3
      there is an old V7 guide somewhere...didn't Dave or someone do it?
      I think it's quite lengthy

      editted to add link HERE

      Not sure how much it helps but, presuming it's only the code itself that has changed, I would have thought the principles of the thread would be the same
      Tracey

      Comment


        #4
        Yes, I saw that 10 page thread

        I'll take a look at them both over the weekend (starting with the v8) and see if I can botch something together.
        www.LabelKing.co.uk - New!
        www.dymowholesale.co.uk - Newest!
        sigpic

        Comment


          #5
          HI,
          Did you manage to get the new google code working on your V7 site?
          Regards
          Breda

          Comment


            #6
            No, it's still on my list of things to do but I've had to postpone it a couple of time as more important stuff has come up. It looks like it's going to take a lot of reading and then some trial and error to get it working and I'm just too short on time right now... I will report back if/when I get some time to try it out.
            www.LabelKing.co.uk - New!
            www.dymowholesale.co.uk - Newest!
            sigpic

            Comment

            Working...
            X