The Problem With Google Analytics E-Commerce Tracking
Have you ever noticed that your Google Analytics data sometimes doesn't line up with your other data sources? Why is that and what can you do about it? Contributor Patrick Stox explains.
Many companies don’t understand why visitor data and e-commerce sales are underreported in Google Analytics, and this tends to cause confusion. In this article, I’ll explain why what you see in Google Analytics doesn’t jibe with what you view in server logs and sales data.
Google Analytics doesn’t have access to the actual sales data, only the data that is reported to it. While the Google Analytics data should not be used for financial reporting, it is a good indicator of sales and useful for data analysis.
Here are some reasons why the data is not accurate.
Missing Tracking Code On Pages
Luckily, a program such as Screaming Frog can quickly identify any pages missing your analytics code by using a custom filter and searching for pages not containing your tracking ID.
Location, Location, Location!
According to Google Analytics, its script should be placed after the opening <body> tag. Many things can go wrong with the script, depending on its location.
One of the worst cases would occur when a user leaves a page before the code can fire, preventing tracking. The other end of this spectrum is that you could be sending the tracking code before the e-commerce data has loaded onto the page, causing the e-commerce data to be blank or report an error.
Latency And Communication
There can also be errors in the transmission and reception of the Google Analytics data.
The client could be slow or have a poor signal and lose packets, causing the user to fail to transmit properly. Google servers are not infallible either, and they can have issues with receiving the data.
The User Opted Out Of Analytics
Some of your users may be opted out of Google Analytics altogether. I use Google’s plugin for this so as not to inflate client data and because it’s easier than filtering my IP address for every profile. Some of your users might be doing the same.
Google Is Sampling Data
For high traffic sites, unless you upgrade to an enterprise-level tracking solution, you will be stuck with sampled data. This causes even more data to be missing from Google Analytics and can make statistically significant insights more difficult.
For more information on limitations and data sampling for Google Analytics, check out https://developers.google.com/analytics/devguides/collection/analyticsjs/limits-quotas?hl=en.
Date & Time Settings
Check both your website settings and Google Analytics to make sure they have date/time settings that are the same. Be aware of time zone discrepancies, as well.
These settings can affect daily sales reporting and may attribute sales to the wrong day, week, or even month, depending on when they occur.
Users’ behavior on transaction pages is always interesting. Many will refresh or even bookmark the page to come back to at a later time. I’ve even seen sites that send a confirmation email that leads to the transaction page and others that linked to the transaction page for their order history.
You will see multiple events with the same transaction ID if this occurs, but this problem can be mitigated by setting a cookie for the user or adding a field in the database that you can have Google Analytics check to see if the transaction has already been sent.
What else have you seen that caused data errors or discrepancies and what implementation issues have you run into?
Opinions expressed in this article are those of the guest author and not necessarily Marketing Land. Staff authors are listed here.