AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
4.6K members online now
4.6K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Ecommerce tracking not accurate

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello all,

 

I hope you can help me with an issue which I am trying to resolve for a while.

About 1.5 mounts ago we implemented the eCommerce tracking in web site which sells -Fruits and vegetables.

And from that time I am truing to understand why some of the reservation disappeared from the reports .

 

I noticed some issues:

1. Reservation with a lot of items about 20-30 not getting in the system. Is there any reason for that to happen?

 

2. Reservation made at night not getting in the system. For example from yesterday reservation made at 00:20 and 0:50 not in the system but reservation from today morning is there...Why can it be?

 

3.There are items with names require ("-", ", ', etc) we replaced it but still I am not sure that everything is getting in like it should. There are some rules for the letters can be used or how to replace it?

 

 I hope you can help me with this. Thank you.

1 Expert replyverified_user

Re: Ecommerce tracking not accurate

Top Contributor
# 2
Top Contributor
Hi,

In all cases if your product name contains ' or " characters it will break the tracking code.

1. Specifically... If transaction contains lots of items it might require some more time for tracking code to register the transaction. In this case you might want to add delay of few seconds in order to make sure that transaction get sent.

2. Transactions made near midnight might get recorded to next day if there is problems with GA timezone settings vs. server timezone settings...

3. There are many regexps that replace special characters. To be sure you should just allow space, dash and basic alphabets from a-z and numbers 0-9 (I think all the alphabets, the exotic ones are supported but to rule out all errors you should start with this... also it should be fairly simple code-wise)

Let me know if all/any of these are applicable
--
To make bad day worse, spend it wishing for the impossible

Antti Nylund, Google Analytics Top Contributor
Did my answer solve your issue? If yes, please mark it as the ‘Best Answer.’ Otherwise keep on asking.

Re: Ecommerce tracking not accurate

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Hi Antti , thank you very much for your answer.
Actually I am not sure what to do with this issue as I read and checked and I can't find any solution for this.
I made couple of tests and the issue is that when I am testing it all the transactions are getting in just right but when the real customers do it it is a diffrent story as at least 50% of the reservations are not in the eCommerce ... it is so strange!

1. I checked about reservation with a lot of items just made a reservation and once as I saw the thank you page I got out and once I waited for the thank you page to load- those 2 reservations was this was in eCommerce no problem at all so I assume this is not the reason.

2. we replaced all all characters which can be an issue and I see reservation with those in couple of reservation so again it can't be the issue.

3. Something else strange I see is that In Overview I see 12 transaction for yesterday and in transactions I see only 10.

Can be any other issue causing this kind of problem?

Thank you in advance!

Re: Ecommerce tracking not accurate

Top Contributor
# 4
Top Contributor
Ok let's see:

What about transaction IDs.. are they generating OK? they are unique and are they consistent in addTransaction and addItem?

Could you paste one successful order GA eCommerce code and one that did not get recorded? Or the order information?
I would like to see how the order information prints to the GA code to see possible errors...
--
To make bad day worse, spend it wishing for the impossible

Antti Nylund, Google Analytics Top Contributor
Did my answer solve your issue? If yes, please mark it as the ‘Best Answer.’ Otherwise keep on asking.

Re: Ecommerce tracking not accurate

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Here is the code- can you see anything strange?

 

 

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
<head><meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" /><meta name="viewport" content="width=1230" />
    <meta property="og:image" content="https://www.XXXXXXXX.co.il/img/alehonline-logo.jpg" />
    <title>
	XXXXXX
</title>

    <!-- Bootstrap -->
    
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" /><link href="https://fontastic.s3.amazonaws.com/ocgdgNQfWiqdZvw5cbPSLm/icons.css" rel="stylesheet" /><link href="/css/site.min.css" rel="stylesheet"/>
<link href="/css/site.he-IL.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" media="all" />
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <link href="/css/datepicker.css" rel="stylesheet"/>
<link href="/css/datepicker3.css" rel="stylesheet"/>

<script>
    (function (i, s, o, g, r, a, m) {
        i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
            (i[r].q = i[r].q || []).push(arguments)
        }, i[r].l = 1 * new Date(); a = s.createElement(o),
        m = s.getElementsByTagName(o)[0]; a.async = 1; a.src=g; m.parentNode.insertBefore(a, m)
    })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

    ga('create', 'UA-XXXXXX-1', 'auto');
  
 
</script>
    
    <script>ga('require', 'ec');ga('set', '&cu', 'ILS');
ga('ec:addProduct', {
'id': '624',
'name': 'פרחי אמנון ותמר',
'category': 'המיוחדים של ',
'brand': '',
'variant': '740',
'price': '143.2',
'quantity': '8'
});
ga('ec:setAction', 'purchase', {
'id': '1855',
'affiliation': 'XXXXX',
'revenue': '143.2',
'tax': '0',
'shipping': '0',
'coupon': 'yes'
});
var dimensionValue = 'תל אביב';
ga('set', 'dimension1', dimensionValue);
ga('send', 'pageview');     // Send transaction data with initial pageview.
</script>