Martech: Martech is Marketing Logo
  • Topics
    Digital Transformation
    Marketing Operations
    Data
    Customer & Digital Experience
    Performance Marketing
    Marketing Management
    Special Reports
    All Topics
  • Conference
  • Webinars
  • Intelligence Reports
  • White Papers
  • What is MarTech

Processing...Please wait.

MarTech » Data » The Problem With Google Analytics E-Commerce Tracking

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.

Patrick Stox on October 1, 2015 at 10:05 am | Reading time: 5 minutes

analytics-technology-ss-1920

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

If the JavaScript code snippet for Google Analytics is missing, then the page can’t be tracked. While this is more common on sites that have individually-coded pages or run across multiple platforms, many sites that run on a single CMS (content management system) may still have this problem if they use different templates for different sections of a site — any of which may be missing the code.

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.

JavaScript Errors

Many different items can cause JavaScript errors that prevent Google Analytics from firing properly. There can be conflicts with other scripts that block the Analytics code, variables with the same names, or special characters in your own product names, such as apostrophes, that can break the JavaScript.

Google Tag Manager can be set to listen for any JavaScript errors, which can help you track down issues in different browsers and operating systems. To assist you with troubleshooting, I would also recommend the Google Analytics Debug browser extension, which prints information that can help diagnose the problem right into Chrome’s console.

JavaScript Disabled

Some browsers and common ad blocking programs disable JavaScript, which means Google Analytics won’t see the data.

Without JavaScript, you will need a backup tracking method, and one of the best I’ve seen is from Simo Ahava; he uses Google Tag Manager to detect if JavaScript is disabled. If it is, he loads a tracking pixel that sends the data through the Measurement Protocol, which you can find here.

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.

Duplicate Data

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 MarTech. Staff authors are listed here.


New on MarTech

    B2B buyers are much more concerned about a company’s values than the general public
    3 content challenges and how marketers can overcome them
    Getting started with the Agile Marketing Navigator: Story Points
    Google delayed third-party cookie deprecation: Why and what’s next?
    6 martech contract gotchas to be aware of

About The Author

Patrick Stox
Patrick Stox is the Marketing Project Supervisor at TheeDesign Studio. He is assistant organizer for the Raleigh SEO Meetup group.

Related Topics

DataPerformance Marketing

Get the daily newsletter digital marketers rely on.

Processing...Please wait.

See terms.

ATTEND OUR EVENTS The MarTech Conference logo.

September 28-29, 2022: Fall

Start Training Now: Master Classes

Start Discovering Now: Spring



The SMX Conference logo.

Start Training Now:: SMX Advanced

November 14-15, 2022: SMX Next

March 8-9, 2022: Master Classes

Webinars

Tracking Growth From Organic Search

Beyond the Buzzword: Transform Digitally to Drive Organic & SEO Growth

Leap or Linger: Determining Which Ad Platforms to Test for Your B2B Brand

See More Webinars
Intelligence Reports

Enterprise Marketing Performance Management Platforms: A Marketer’s Guide

Enterprise Customer Journey Orchestration Platforms: A Marketer’s Guide

Enterprise Account-Based Marketing Platforms: A Marketer’s Guide

See More Intelligence Reports
Featured White Paper

The CMO’s Formula To 3x Your Digital Marketing Campaign Results

See More Whitepapers
Search Our Site

Receive daily marketing news & analysis.

Processing...Please wait.

Topics

  • Transformation
  • Operations
  • Data
  • Experience
  • Performance
  • Management
  • All Topics
  • Home

Our Events

  • MarTech
  • Search Marketing Expo - SMX

About

  • What is MarTech
  • Contact
  • Privacy
  • Terms Of Use
  • Marketing Opportunities
  • Staff

Follow Us

  • Facebook
  • Twitter
  • LinkedIn
  • Newsletters
  • RSS

© 2022 Third Door Media, Inc. All rights reserved.