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 15 of 15

Thread: Google Analytics not matching ASPDNSF Reports

  1. #1
    dhs is offline Member
    Join Date
    Feb 2009
    Posts
    35

    Default Google Analytics not matching ASPDNSF Reports

    I am not sure where to go with this problem. It is not that google analytics is not working, it seems to be working some of the time but I would expect there to be parity between the order count in analytics for a day compared to the order count in a ASPDNSF order report. There is a large discrepancy with Analytics missing 1/3 or more orders per day.

    Can anyone point me in the right direction. We are running a version 8.0.0.0 store.

    thanks

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    What payment methods are you using? Payment methods that take customers off of the site can cause this, as a lot of customers never come back to the site so they never hit 'orderconfirmation.aspx' where the GA info is sent.

  3. #3
    dhs is offline Member
    Join Date
    Feb 2009
    Posts
    35

    Default

    We use CC and COD payment methods only. The user never leaves the site during checkout.

  4. #4
    StorageSolutions is offline Member
    Join Date
    Jun 2007
    Location
    Vero Beach, Florida
    Posts
    66

    Default

    We determined that any items description that had a single or double quotes " in it would cause that order to not be picked up by google. Our only work around was to remove any instance from our descriptions.
    ML 8.0.1.2

  5. #5
    dhs is offline Member
    Join Date
    Feb 2009
    Posts
    35

    Default

    Thank you for the info. We would definitely be 'guilty' of having quotes in our descriptions and maybe other special characters (saw "\" backslash is an invalid character here: http://www.google.com/support/forum/...629bbfde&hl=en)

    At this point I think I am going to look at emptying the description field in code for the order confirmation page.

  6. #6
    JHughen is offline Junior Member
    Join Date
    Jul 2009
    Posts
    3

    Default

    can anyone else confirm this? the use of " in a description causes google analytics to not work right?

  7. #7
    Sennaya is offline Member
    Join Date
    Dec 2008
    Location
    http://www.ecscase.com
    Posts
    91

    Default Erratic Google analytics reporting

    We are also missing some, but not all transactions in our google eccommerce tracking.
    The google support mentions special characters in the SKU can cause problems, but we don't have that.

    We do use inch and feet marks, 5"x7" in the product description.
    We use a special character for trademarks (TM) in the description, but not in the SKU.
    We use the (TM) in the product name.

    Any suggestions?
    We use ML8, verisign and payflo pro for gateway.

  8. #8
    StorageSolutions is offline Member
    Join Date
    Jun 2007
    Location
    Vero Beach, Florida
    Posts
    66

    Default

    Quote Originally Posted by JHughen View Post
    can anyone else confirm this? the use of " in a description causes google analytics to not work right?
    Take a look at this thread where we discussed this issue earlier this year.

    http://forums.aspdotnetstorefront.co...ad.php?t=21558
    ML 8.0.1.2

  9. #9
    Sennaya is offline Member
    Join Date
    Dec 2008
    Location
    http://www.ecscase.com
    Posts
    91

    Default

    Baba reported on other thread:
    On the order confirmation page, go to the RenderContents function.

    There you would see the code "
    Code:
    writer.Write(AppLogic.GetGoogleEComTrackingV2(ThisCustomer, true));
    "

    This function returns the google ecommerce javascript. You can either customize this function in your applogic.cs file or call your own version on the same page, to replace the double quotes.
    There still seems to be no definitive answer outside of write your own app to report ecommerce to google analytics.
    I beleive this applies only to ML8 version. I wonder if version 9 has fixed this problem?

  10. #10
    Sennaya is offline Member
    Join Date
    Dec 2008
    Location
    http://www.ecscase.com
    Posts
    91

    Default Google tracking lost

    It may be related to a problem with Google Analytics.
    Since may 18, 2010 some websites have lost access to tracking data. Google says no data is lost, but they are working on the problem.
    http://twitter.com/googleanalytics/status/14313049550

    Anyone see any other reasons ecommerce tracking is not working?

  11. #11
    Sennaya is offline Member
    Join Date
    Dec 2008
    Location
    http://www.ecscase.com
    Posts
    91

    Default New google ecommerce protocols

    Back in May I saw that Google had a new tracking code in the analytics setup, so I put it on my ML8.0 cart.

    Code:
    <script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-XXXXXXX-1']);
        _gaq.push(['_trackPageview']);
     
        (function() {
          var ga = document.createElement('script'); ga.type =
    'text/javascript';  
     ga.async = true;
          ga.src = ('https:' ==
     document.location.protocol ? 'https://ssl' : 'http://www')
     + '.google-analytics.com/ga.js';
          var s = document.getElementsByTagName('script')[0];
     s.parentNode.insertBefore(ga, s);
        })();
     </script>
    And from that moment I have had no ecommerce tracking.

    After a support request fromGoogle Analytics I conclude that this new tracking code may not be compatible with the traditional eccomerce tracking methods.

    http://code.google.com/apis/analytic...e.html#General

    There is a new gaq.push Asynchronous Syntax ecommerce protocol that appears different from the traditional syntax that I beleive ML8.0 uses.

    Asynchronous
    Code:
    <html> 
    <head> 
    <title>Receipt for your clothing purchase from Acme Clothing</title> 
    <script type="text/javascript"> 
     
      var _gaq = _gaq || []; 
      _gaq.push(['_setAccount', 'UA-XXXXX-X']); 
      _gaq.push(['_trackPageview']); 
      _gaq.push(['_addTrans', 
        '1234',           // order ID - required 
        'Acme Clothing',  // affiliation or store name 
        '11.99',          // total - required 
        '1.29',           // tax 
        '5',              // shipping 
        'San Jose',       // city 
        'California',     // state or province 
        'USA'             // country 
      ]); 
     
       // add item might be called for every item in the shopping cart 
       // where your ecommerce engine loops through each item in the cart and 
       // prints out _addItem for each 
      _gaq.push(['_addItem', 
        '1234',           // order ID - required 
        'DD44',           // SKU/code - required 
        'T-Shirt',        // product name 
        'Green Medium',   // category or variation 
        '11.99',          // unit price - required 
        '1'               // quantity - required 
      ]); 
      _gaq.push(['_trackTrans']); //submits transaction to the Analytics servers 
     
      (function() { 
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; 
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; 
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); 
      })(); 
     
    </script> 
    </head> 
    <body>
    Traditional
    Code:
    <html> 
    <head> 
    <title>Receipt for your clothing purchase from Acme Clothing</title> 
    </head> 
     
    <body> 
     
      Thank you for your order.  You will receive an email containing all your order details. 
     
     
    <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"> 
    try{ 
      var pageTracker = _gat._getTracker("UA-xxxxx-x"); 
      pageTracker._trackPageview(); 
      pageTracker._addTrans( 
          "1234",            // order ID - required 
          "Womens Apparel",  // affiliation or store name 
          "11.99",           // total - required 
          "1.29",            // tax 
          "15.00",           // shipping 
          "San Jose",        // city 
          "California",      // state or province 
          "USA"              // country 
        ); 
     
     
       // add item might be called for every item in the shopping cart 
       // where your ecommerce engine loops through each item in the cart and 
       // prints out _addItem for each  
       pageTracker._addItem( 
          "1234",           // order ID - necessary to associate item with transaction 
          "DD44",           // SKU/code - required 
          "T-Shirt",        // product name 
          "Olive Medium",   // category or variation 
          "11.99",          // unit price - required 
          "1"               // quantity - required 
       ); 
     
       pageTracker._trackTrans(); //submits transaction to the Analytics servers 
    } catch(err) {} 
    </script> 
    </body> 
    </html>

    Has anyone had success using the new google gaq.push tracking code ( since mid-May 2010) on their pages and having ecommerce track as well?

    For the moment I am switching back to the older GA.js tracking that used to work. I am not an expert at this, just trying to figure out the pieces.

    Thanks!
    Last edited by Sennaya; 06-16-2010 at 07:22 AM. Reason: typos

  12. #12
    dhs is offline Member
    Join Date
    Feb 2009
    Posts
    35

    Default

    I modified the source code to remove the single and double quote characters from the name field in the ecommerce javacript added to the confirmation page. This has increased the order count somewhat. There is still a good 5% to 20% discrepancy that occurs everyday between our reports and what Analytics reports. 5% and under would be acceptable, 20% is really not very reliable for us.

    Are others just accepting this or are the ecommerce numbers they are seeing matching better than ours?

    What other analytics (with sales information integration) tools have others used with success? Maybe there is something more reliable we could use and have to pay for.

    thanks

  13. #13
    Cano is offline Member
    Join Date
    Sep 2005
    Location
    Wellington, FL
    Posts
    64

    Default

    We just started using ecommerce tracking like 2 weeks ago and we are missing many transactions , It seems like the " is a issue for sure.


  14. #14
    dhs is offline Member
    Join Date
    Feb 2009
    Posts
    35

    Default

    We found a javascript error on our confirmation page. This seems to have been causing much of continuing problems/missing orders.

    So if you are having problems - double check you have clean javascript coding for the Analytics tracker/ecommerce.

    With no errors and the removal of the single/double quotes we greatly reduced the number of orders missing in analytics.

  15. #15
    Cano is offline Member
    Join Date
    Sep 2005
    Location
    Wellington, FL
    Posts
    64

    Default

    So where in the code do i need to make the change to remove the " and ' ?

    TIA
    Cano