How to Set Up WooCommerce Google Ads Conversion Tracking (Step-by-Step with GTM & GTM4WP)
- Flomaticx
- May 23
- 3 min read
Setting up proper conversion tracking in WooCommerce is crucial for measuring the performance of your Google Ads campaigns. Without it, you're flying blind—unable to assess ROI or optimize ad spend effectively.
This guide walks you through how to implement Google Ads conversion tracking in WooCommerce using Google Tag Manager (GTM) and the GTM4WP plugin by Thomas Geiger. This method ensures a flexible and scalable setup that works across product, cart, and checkout pages.
Why Use GTM and GTM4WP to set up WooCommerce Google Ads Conversion Tracking?
GTM lets you manage all your tracking scripts in one place, while GTM4WP automatically pushes eCommerce data into the Data Layer—no coding required. Together, they form a powerful combo for WooCommerce store owners. Step-by-Step Instructions
Step 1: Install Google Tag Manager on Your Site
Create a GTM account: Go to https://tagmanager.google.com and create an account.
Get your container code: Copy the two GTM snippets (head and body).
Install GTM4WP plugin:
Go to your WordPress dashboard → Plugins → Add New →
Click On Add add-ons Search for GTM4WP by Thomas Geiger.
Search for GTM4Wp Install and activate it.

Open The Plugin and Open General

In the Field Google Tag Manager ID add Your GTM ID - you can find it by opening GTM in the right side of the screen

Next go into Integrations and select WooCommerce

Click the Checkmark Track e-commerce and save.

Step 2: Configure a Purchase Conversion Action
Go into Your Google Ads Account And Create a Purchase Conversion Action
Go Into Goals - Conversions - Summary

Select New Conversion Action

Select Website

Select Add Conversion Action Manually

Configure your Conversion Action with The Following Settings

Click Save Conversion Action
You will get the following Window - select Use Google Tag Manager - copy the Conversion ID and Conversion Label and click done.

Step 3: Configure the Tracking In Google Tag Manager for WooCommerce Google Ads Conversion Tracking
Open Google tag Manager and go into Variables

Configure a User Defined Data Layer Variable as follows:

Repeat the Process for currency and value - the exact definitions are below:
Transaction ID: ecommerce.transaction_id
Currency: ecommerce.currency
Value: ecommerce.value
Go Back Into Triggers Section to Configure a purchase Trigger
Set up a custom event trigger with the event name purchase that fires on all custom events

Go into Tags to Configure a Purchase tag For the Conversion ID use the conversion ID that we created in Google Ads, same goes for the Conversion label
Add the 3 field in the value, transaction id and currency that we created in the tutorial above. NOTE: Make sure you only add one Data layer variable per field since they will put out an error if you add more.

Click on Publish and your tracking is live.
Conclusion
Setting up WooCommerce Google Ads Conversion Tracking with GTM and GTM4WP is the smartest way to future-proof your WooCommerce store. You’ll not only improve measurement accuracy but also gain the flexibility to track additional events like add-to-cart, product views, and more.
If you need expert help implementing this or want to unlock advanced tracking setups for your WooCommerce store Contact Us Now