Announcement

Collapse
No announcement yet.

New Google Analytics Ecommerce Code

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

    New Google Analytics Ecommerce Code

    Hi

    I have done a search on the forum and can't seem to find a post about implementing the new Google Analytics tags especially the Ecommerce code.

    I have added the new code on my pages

    <!-- START GOOGLE ANALYTICS CODE -->


    <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-2480124-1");
    pageTracker._trackPageview();
    pageTracker._setDomainName(".www.funky-cards.co.uk");
    pageTracker._setAllowLinker(true);
    pageTracker._setAllowHash(false);
    pageTracker._trackPageview();
    </script>

    <!-- END GOOGLE ANALYTICS CODE -->

    and now trying to work out how to go about adding the ecommerce tag on the receipt page. I have started with the below

    <script language="JavaScript">

    pageTracker._addTrans(

    "<actinic:variable name="OrderNumberOnlineXML" />", // order ID - required
    "Funky Cards", // affiliation or store name
    "<actinic:variable name="Total" />", // total - required
    "", // tax
    "", // shipping
    "", // city
    "", // state or province
    "" // country
    );

    pageTracker._addItem(
    "<actinic:variable name="OrderNumberOnlineXML" />", // order ID - necessary to associate item with transaction
    "75JKL", // SKU/code - required
    "", // product name
    "", // category or variation
    "30", // unit price - required
    "1" // quantity - required
    );

    pageTracker._trackTrans();

    </script>

    which is what google recommends but not sure how I implement the add item area into Actinic any help would be great.

    Cheers

    Darren

    #2
    this is probably the thread you were looking for

    Eileens Guide to Google Analytics V8

    Comment


      #3
      Hi

      Had a look at this post but this seems to be for the old urchin tag and not the new GA tag so not sure this works.

      Unless I have missed something, any pointers would be great.

      Darren

      Comment

      Working...
      X