Announcement

Collapse
No announcement yet.

Google Analytics Ecommerce Tracing Problem in V8.

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

    Google Analytics Ecommerce Tracing Problem in V8.

    Hi - since going live with a site upgraded from v7 to V8, google analytics is no longer tracking ecommerce sales. The code I have in both is the same.

    The code in the head is:

    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-xxxxx-1";
    urchinTracker('receipt.html');
    </script>
    and before the body closing tag:

    <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 + '
    ' + line2;
    //-->
    </script>
    I assume that this is because Actinic no longer uses NETQUOTEVARS. If so, is there are list of parameters that I can replace the NETQUOTEVARS with? I assume I can just drop in things like <actinic:variable name="Total"/> to replace NETQUOTEVAR:NUMERICORDERTOTALCGI.

    I have not yet checked but this may also be affecting my Affiliate Windows code:

    <img src="http://www.awin1.com/sale.php?sale=NETQUOTEVAR:NUMERICORDERTOTALCGI&extra=NETQUOTEVAR:THEORDERNUMBER&type=s&mid=xxx">
    Regards
    David

    #2
    I ran into a similar problem only recently which was resolved by the support guys here.
    This is what I had to do.
    ############
    <actinic:variable name="NumericOrderTotal" />
    ############
    This is your quoted actinic variable.

    Use that in place of your code to produce something like
    ##############
    <!--
    var realprice =<actinic:variable name="NumericOrderTotal" />
    var line1 = 'UTM:T|<actinic:variable name="THEORDERNUMBER" />|affiliation|' + realprice + '|tax|
    ##################

    You know the rest but that should sort it.

    regards Tony
    Your one stop shop for spares.
    Washing Machine Spare Parts

    Comment


      #3
      Almost there - I think:

      I have inserted this code into my receipt page within Actinic:

      var realprice = <actinic:variable name="NumericOrderTotal"/>;
      var line1 = 'UTM:T|<actinic:variable name="THEORDERNUMBER"/>|affiliation|' + realprice + '|tax|shipping|city|state|<actinic:variable name="DeliveryCountry"/>';
      var line2 = 'UTM:I|<actinic:variable name="THEORDERNUMBER"/>|<actinic:variable name="ProdRef"/>|<actinic:variable name="ProductNameOnline"/>|category|price|quantity';
      document.getElementById('utmtrans').value = line1 + '
      ' + line2;
      but the html receipt page on the site shows the following after I have made a purchase:

      var realprice = 52.90;
      var line1 = 'UTM:T|TTTEST10000010|affiliation|' + realprice + '|tax|shipping|city|state|NETQUOTEVARELIVERCOUNTRY';
      var line2 = 'UTM:I|TTTEST10000010|NETQUOTEVAR:PRODREF|NETQUOTEVAR:PRODUCTNAME|category|price|quantity';
      document.getElementById('utmtrans').value = line1 + '
      ' + line2;
      ...which is all a bit weird as it converts the price and order number but seems to replace the other variables with Netquotevars.
      Regards
      David

      Comment


        #4
        Hi David,

        I'm just getting this checked out, I'm running through some tests. It strange as "<actinic:variable name="DeliveryCountry"/>';" works fine on it own, when you get to the receipt page.

        Kind Regards
        Nadeem Rasool
        SellerDeck Development

        Comment


          #5
          Hi - version 8.03
          Regards
          David

          Comment


            #6
            Hi David

            Thanks, putting this to development at the moment.

            Kind Regards
            Nadeem Rasool
            SellerDeck Development

            Comment


              #7
              Hi David

              Please could you let me know what the URL of the site is, which is experiencing this issue. A Developer want to check the receipt page. If you wish, please email communityadmin @ actinic.co.uk, if you don't wish to show the url here.

              Kind Regards
              Nadeem Rasool
              SellerDeck Development

              Comment


                #8
                Any update on this Nadeem? I too have the code installed but it isn't producing any results on analytics.

                It's been inserted into the receipt page layout via the design tab. Adwords conversion tracking is also installed and this is collecting page view data and purchase conversions on the receipt correctly.

                Cheers

                Comment


                  #9
                  Hi Jon

                  Not yet, as developer are wishing to see the receipt page? However if you get the same problem, then what is your URL so I can pass it onto the developers, so they can see the issue

                  Kind Regards
                  Nadeem Rasool
                  SellerDeck Development

                  Comment


                    #10
                    Hi Nadeem

                    ok i am currenctly using the following:

                    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
                    </script>
                    <script type="text/javascript">
                    _uacct = "XXXXXXXXXXX";
                    urchinTracker();
                    </script>

                    <script language="JavaScript" type="text/javascript">
                    <!--
                    var realprice = <actinic:variable name="NumericOrderTotal"/>;
                    var line1 = 'UTM:T|<actinic:variable name="THEORDERNUMBER"/>|affiliation|' + realprice + '|tax|shipping|city|state|<actinic:variable name="DeliveryCountry"/>';
                    var line2 = 'UTM:I|<actinic:variable name="THEORDERNUMBER"/>|<actinic:variable name="ProdRef"/>|<actinic:variable name="ProductNameOnline"/>|category|price|quantity';
                    document.getElementById('utmtrans').value = line1 + '
                    ' + line2;
                    //-->
                    </script>
                    <form style="display:none;" name="utmform">
                    <textarea id="utmtrans">UTM:T|[order-id]|[affiliation]|
                    [total]|[tax]| [shipping]|[city]|[state]|[country] UTM:I|[order-id]|[sku/code]|[productname]|[category]|[price]|
                    [quantity] </textarea>
                    </form>
                    Page is the actinic generated receipt page at www.wholesaleheating.co.uk

                    Not entirely sure how I would link to this. Do I need a custom HTML receipt page which uses an include for the actinic receipt script?

                    Comment


                      #11
                      Hi Jon

                      Thanks for that, Passed it onto the developers, also just one thing to add as well, The developers did mention as with David thread

                      The product details are definitely not supported as standard for the
                      receipt page, they require script changes. Didn't the customer have to
                      make script changes for v7? These would need to be reapplied to v8.
                      Kind Regards
                      Nadeem Rasool
                      SellerDeck Development

                      Comment


                        #12
                        Hi Nadeem - the problem site is www.enjoy.co.uk
                        Regards
                        David

                        Comment


                          #13
                          Hi there

                          Okay got some information back, V8 scripts on the server side haven't really changed from v7, so what this means is that what was working for v7 receipt page should be the same as v8.

                          Eg
                          <actinic:variable name="DeliveryCountry"/>'
                          should be:
                          NETQUOTEVARELIVERYCOUNTRY
                          Plus if there was any customisation within the v7 scripts for this, the same has to be applied to v8 as well.

                          Please try this,
                          Kind Regards
                          Nadeem Rasool
                          SellerDeck Development

                          Comment


                            #14
                            I'd assumed that the original V7 code didn't work and that was the reason for this thread? Lol.

                            I'll give the original code a try from the "Dave's Guide...." thread.

                            Thanks Nadeem,

                            Jon

                            Comment


                              #15
                              Hi Jon - the original V7 code did not work for me.

                              I think you may need to take the v7 code and substitute this bit
                              var realprice = <actinic:variable name="NumericOrderTotal"/>;
                              var line1 = 'UTM:T|<actinic:variable name="THEORDERNUMBER"/>
                              which if you look at my post above displayed the correct variables, then leave the other netquotevars as they are.
                              Regards
                              David

                              Comment

                              Working...
                              X