Contents:

  • Connecting WooCommerce to Google Analytics (UA, GA4)
  • A Complete Solution for Integrating WooCommerce and Google Analytics
  • How Able CDP Integrates WooCommerce and Google Analytics
  • 3 Steps to Connect WooCommerce with Google Analytics by Using Able

Connect WooCommerce and Google Analytics

Connecting WooCommerce to Google Analytics (UA, GA4)

WooCommerce is a popular e-commerce plugin for WordPress. Google Analytics is one of the most widely used web analytics services. Both offer a rich set of marketing data, but connecting WooCommerce to Google Analytics in a way that provides precise attributed data on e-commerce conversions can be tricky.

WooCommerce plugins' built-in connectivity often doesn't solve all needs related to attributing WooCommerce sales conversions to visitor sources in Google Analytics. Common challenges include:

  1. Missing e-commerce conversions or lack of attribution. When a plugin-based solution is used, it relies on displaying Google Analytics tracking code to the website visitor after the purchase. It doesn't always happen and Google Analytics might be missing WooCommerce conversions or displaying them as coming from an unknown "direct/none" source. These issues are caused by privacy features of browsers that remove tracking cookies and can be exacerbated by the payments provider integration implementation, as well as the checkout process configuration.
  2. Unreliable tracking of conversions in long funnels in lack of full LTV visibility. For example, when a customer enters a funnel with a lead capture form, or simply makes a repeated purchase a few months after the first purchase, initial tracking cookies would usually not be available, resulting in lack of data where this customer came from.

Many marketers see WooCommerce conversions missing from Google Analytics reports to be a natural technology limitation. It doesn't have to be this way.

E-commerce sales can be tracked throughout the entire funnel: from the first interaction to the revenue. Attributing sales to leads and leads to marketing sources allows for accurate tracking of end-to-end marketing campaigns and understanding of ROI. The server-side WooCommerce and Google Analytics integration in combination with first-party attribution makes it possible to get a complete overview of the customer journey.

A Complete Solution for Integrating WooCommerce and Google Analytics

Able Customer Data Platform is the ultimate WooCommerce and Google Analytics integration.

It combines browser tracking with WooCommerce and Google Analytics API integrations, linking website activity with purchases on the back-end to build a complete journey of each customer across WooCommerce and Google Analytics.

This allows you to attribute 99% of sales to the correct marketing source, ad click and landing page and obtain data to inform strategy.

All of this without coding and complex manual set-up of the connection between WooCommerce and Google Analytics. Able already knows how to connect marketing data between WooCommerce and Google Analytics.

Able supports both Google Analytics Universal Analytics (UA) and Google Analytics 4 (GA4). Able works with both regular and headless WooCommerce stores.

How Able CDP Integrates WooCommerce and Google Analytics

Able tracks WooCommerce order forms as well as purchases by receiving web hooks from WooCommerce and attributing purchases to the original visitor tracked by Able, allowing to send purchase conversions to Google Analytics and ad platforms such as Google Ads.

Able Customer Data Platform combines browser and back-end tracking to:

  1. store Google Analytics Client Id for each started order;
  2. add UTM parameters, referrer URL and landing page details to new leads;
  3. attribute successful WooCommerce order after to the Google Analytics user id after a payment is completed and send e-commerce transaction to Google Analytics.

3 Steps to Connect WooCommerce with Google Analytics by Using Able

Step 1. Sign up for a free Able trial account

Complete the sign up form to create a trial account.

Step 2. Connect Able to WooCommerce

To track customer details and associate WooCommerce customers with the visitor details, install tracking code generated using the "Code" section in the Able CDP dashboard. This code will track WooCommerce form submissions.

To set up sending of completed purchases from WooCommerce to Able:

  1. Open WooCommerce Settings, Advanced - REST API.
  2. Create a new API key with Read permissions.
  3. Copy Consumer key and secret into a new Able credential. To create a new credential, open API Credentials in the Able user interface and choose “Connect - Other”, set service to “woocommerce”. Paste Consumer key and secret from WooCommerce and press Save.
  4. Add inbound integration, selecting the created Credential and Purchase event.
  5. Open Advanced - Webhooks in WooCommerce settings. Add a new webhook with following parameters:
    Status: Active
    Topic: Action
    Action Event: woocommerce_order_status_changed
    Delivery URL: https://pfsh9epbe1.execute-api.eu-west-2.amazonaws.com/Prod/woocommerce-webhook/%%FUNNEL_MARK%%, where %%FUNNEL_MARK%% - unique identifier of your funnel.

Able CDP will now receive webhooks from WooCommerce and retrieve purchase details from its API, automatically attributing Purchases to Visitors by customer emails and phones and sending Purchase conversions with detailed Invoice Lines where supported.

WooCommerce purchases are attributed by matching purchase to the web lead by billing email or phone. Transition of order status into ‘processing’ is treated as a successful order event.

Step 3. Add Google Analytics Property Id to Able to send payments as Google Analytics e-commerce conversions

1. The first step is to locate the Google Analytics tracking id for the property you’d like to use for reporting.

Open Google Analytics, Admin – Property Settings page. Tracking Id should be the first item on the list. Record it.

2. Able Setup

Open ‘API Credentials’ tab in the Able CDP Dashboard. Select ‘Google Analytics’ service and enter Tracking Id in the Access Token field. Leave Refresh Token blank and enter arbitrary name you’d like to use as a reference (for example, corresponding Google Analytics property name). Press ‘Save’.

Open ‘Outbound’ tab. Select the Google Analytics Credential you’ve just saved and ‘Purchase’ event type. Press ‘Save’.

At this point required integration setup is complete and Able will start sending all Purchases that it attributed to Google Analytics visitors to Google Analytics Measurement API. Conversions will appear in all standard reports; additionally, Purchases will appear in the Conversions tab of E-commerce reports.

Learn More

E-Commerce Conversion Funnel Tracking
Able CDP helps to track modern multiple step e-commerce funnels where customers interact with multiple services prior to eventually making a purchase, resolving issues with incorrect Google Analytics attribution and conversions missing from Google Ads and Facebook Ads reports.

Send Purchases to Google Ads

Sending conversions to Google Ads is an extremely common integration scenario. Its used to add conversion value to Google Ads’ reports, allowing to report on ROI, as well as to use performance-based targeting and optimization capabilities.

Send Purchases to Facebook Conversions API

Attributing conversions to Facebook Ads is a common task, however doing it with sufficient precision is hard. Sales might happen in CRM, or, when they happen online, customer might not come back to the website, so tracking with Facebook Pixel JS produces substandard results. Able solves this problem with its Facebook Conversions API integration.

Google Analytics
+
WooCommerce
Try our WooCommerce and Google Analytics integration for free right now
“A valuable insight we've got because of using Able Customer Data Platform is that display ads aren't working for us at all... we've been wasting money for years on paid display ads.

Before Able we'd be excited about every lead or email that came through, but after the last year we've determined that those don't convert at all.

And so we've been focusing on paid search, which does have return on investment.”

Bryan Brinton, Co-Founder, Aluvii Software
Contact us for more help if you didn't find what you were looking for

Achieve results

Continuously improve marketing strategy with actionable data produced by Able tracking.

Drive sales
Understand how your customers buy and how segments perform across campaigns even on low volume experimental conversion data when you're still perfecting your pipeline.
Boost ad ROI
Stream back-end conversion data to Google Ads and Facebook Ads Conversion APIs to facilitate ad platforms' AI/ML ad delivery optimization and to create super effective lookalike audiences in real time.
Analyse
Use standard tools such as Facebook Ads, Google Analytics and CRM reports to see exact performance and revenue of each channel and landing page even when sales happen weeks after the initial ad click.