Announcement

Collapse
No announcement yet.

How do I pass product details to Google Analytics?

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

    How do I pass product details to Google Analytics?

    Hi

    I followed Dave's guide to integrating Actinic with Google Analytics, which was posted on here I while back. It works great apart from the fact that no product details are appearing in Analytics. I can't work out why this is - the line of code is present in Act_ReceiptPrimary to pass the product information to Analytics.

    Has anyone got any ideas?

    Many thanks

    Jon

    #2
    You are probably discouraging people from helping by giving them little to go on.

    which was posted on here I while back
    best provide a link.

    the line of code is present in Act_ReceiptPrimary
    best paste in said code.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Ok, fair point. Here's the guide to integrating Actinic with Analytics...

      Daves guide to Google Analytics with Actinic

      And here's the section of code added to Act_ReceiptPrimary, with the line I was talking about highlighted...

      <form style="display:none" name="utmform">
      <textarea id="utmtrans"></textarea>
      </form>
      <script language="JavaScript" type="text/javascript">
      <!--
      var realprice = NETQUOTEVAR:ACTINICORDERTOTAL / 100;
      var line1 = 'UTM:T|NETQUOTEVAR:THEORDERNUMBER|affiliation|' + realprice + '|tax|shipping|city|state|NETQUOTEVAR:INVOICECOUNTRY';
      var line2 = 'UTM:I|NETQUOTEVAR:THEORDERNUMBER|NETQUOTEVAR:PRODUCTREFERENCE|NETQUOTEVAR:PRODUCTNAME|category|price|quantity';
      document.getElementById('utmtrans').value = line1 + '\n' + line2;
      //-->
      </script>

      Comment


        #4
        You've not posted a site URL so no-one will be able to see what appears on the page with the above code.

        Have a look yourself with Firefox and use its Tools / Error Console to display any JavaScript errors that may be ocurring.

        Also do a View Source of said page and see what's been generated.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment

        Working...
        X