How to Track WooCommerce Sales with Google Tag Manager & ShopLentor GTM Tracking

Learn how to track WooCommerce sales using Google Tag Manager and the ShopLentor GTM Conversion Tracking module. Step-by-step guide to GA4, Google Ads, and Facebook Ads tracking.

Running a WooCommerce store without proper sales tracking is like driving with your eyes closed. You may be making sales, investing in advertising campaigns, and publishing content — but without accurate data about what is actually working, every decision you make is based on guesswork rather than evidence.

WooCommerce store owners face a specific challenge: the platform does not natively push detailed purchase data to analytics and advertising platforms in the structured, standardized format those platforms need to deliver accurate attribution, optimize ad targeting, and track the full customer journey from first click to completed order.

Google Tag Manager (GTM) is the industry-standard solution for this problem — a free tag management system that acts as a data hub between your WooCommerce store and any analytics or advertising platform you use. And ShopLentor Pro’s GTM Conversion Tracking module is the bridge that connects the two, automatically pushing WooCommerce shopping events into GTM’s data layer with zero coding required.

In this comprehensive guide, we cover what Google Tag Manager is, why it is the right solution for WooCommerce tracking, what ShopLentor’s GTM Conversion Tracking module does, a complete step-by-step setup walkthrough, the advantages of tracking WooCommerce sales, and answers to the five most common questions about WooCommerce GTM tracking.

Watch Step by step video tutorial: https://youtu.be/C4hJM_bFHUo

What is Google Tag Manager?

Google Tag Manager (GTM) is a free, cloud-based tag management system developed by Google that allows website owners and marketers to add, update, and manage tracking scripts — called tags — on their websites without modifying the site’s source code directly.

Before GTM, adding tracking code for Google Analytics, Google Ads, Facebook Pixel, LinkedIn Insight Tag, and other marketing tools meant manually pasting JavaScript snippets into theme files — a process that required developer access, risked breaking the site, and became an unmanageable mess as the number of tracking scripts grew.

GTM solves this by providing a single container script (one snippet of code added to the website’s header once) that then manages all other tracking tags from a centralized cloud dashboard. Once the GTM container is installed:

  • Adding new tracking tags requires no code changes — you create tags in the GTM interface and they are deployed immediately
  • Tags can be triggered by specific events on the website — page views, button clicks, form submissions, purchases — using GTM’s trigger system
  • The data layer — a JavaScript object that holds structured information about what is happening on the page — allows WooCommerce shopping events (product views, add to cart, purchase completion) to be captured and sent to any connected analytics or advertising platform
  • Changes can be tested in preview mode before being published to live visitors
  • Version control means every change is tracked and can be rolled back instantly if something goes wrong

GTM has become the standard tool for digital marketing teams at organizations of every size — from individual store owners to enterprise eCommerce operations — because it gives marketers complete tracking control without requiring ongoing developer support for every new tag or trigger.

Benefits of Using Google Tag Manager

1. Centralized Tag Management from One Dashboard

Instead of maintaining separate tracking scripts across different theme files, GTM centralizes everything in one place. Google Analytics 4, Google Ads conversion tracking, Facebook Pixel, TikTok Pixel, Pinterest Tag, LinkedIn Insight, Hotjar, Microsoft Clarity — all of these can be managed, deployed, and updated from your GTM container without touching your WordPress theme or plugin code.

2. Faster and Safer Tag Deployment

Marketing teams can add and update tracking tags in minutes from the GTM dashboard, with changes going live immediately after publishing — no developer work order, no theme file editing, no risk of syntax errors breaking the site. The built-in Preview Mode allows you to test every tag and trigger thoroughly before making changes live to real visitors.

3. Accurate eCommerce Conversion Data

GTM’s data layer enables detailed eCommerce tracking — capturing not just whether a purchase happened, but exactly what was purchased, at what price, with what coupon, after how many sessions, from which traffic source, and across which device. This level of detail is essential for accurate conversion attribution and effective advertising optimization.

4. Better Marketing Attribution

When GTM passes accurate purchase and conversion data to your advertising platforms — Google Ads, Meta Ads, TikTok Ads — those platforms can optimize their algorithms to show your ads to the people most likely to actually purchase, rather than just the people most likely to click. This improves your cost per acquisition and return on ad spend dramatically.

5. Audience Building for Remarketing

GTM-powered eCommerce event tracking allows you to build highly specific audience segments based on actual shopping behavior — people who viewed a specific product category, people who added to cart but did not purchase, people who spent over a certain amount. These behavioral audiences are far more effective for remarketing campaigns than simple page-based audiences.

6. Version Control and Rollback

Every change made in GTM is saved as a new version with a timestamp and author note. If a change causes unexpected behavior, you can instantly roll back to any previous working version without touching your website code. This makes GTM significantly safer than directly editing tracking scripts in theme files.

What is GTM Conversion Tracking in ShopLentor?

ShopLentor’s GTM Conversion Tracking is a dedicated module within ShopLentor Pro (also known as WooLentor Pro) that automatically integrates your WooCommerce store with Google Tag Manager by pushing structured eCommerce event data into GTM’s data layer whenever key shopping actions occur on your store.

Without a WooCommerce-GTM bridge plugin, implementing GTM eCommerce tracking would require a developer to write custom JavaScript that listens to WooCommerce events (add to cart, checkout started, purchase completed, etc.) and pushes the relevant data into the GTM data layer in the correct format. This is technically complex, time-consuming, and expensive to maintain as WooCommerce updates.

ShopLentor’s GTM Conversion Tracking module eliminates all of this technical complexity. Once you enable the module and enter your GTM Container ID, ShopLentor automatically handles:

  • Detecting the WooCommerce shopping events that occur on your store
  • Collecting the relevant product and transaction data for each event
  • Formatting that data correctly according to Google’s Enhanced eCommerce data layer specification
  • Pushing the formatted events and data objects into GTM’s data layer at exactly the right moment

From GTM’s perspective, your WooCommerce store now behaves exactly like a natively instrumented eCommerce website — with a full data layer populated by structured shopping events that any analytics or advertising tag can consume to receive accurate, detailed purchase data.

Key Features of ShopLentor GTM Conversion Tracking Module

1. No-Code GTM Integration — Enter Your Container ID and Done

Setup requires no JavaScript editing, no theme file modifications, and no developer involvement. Navigate to ShopLentor > Modules > GTM Conversion Tracking, enable the module, and enter your GTM Container ID (formatted as GTM-XXXXXXX). ShopLentor automatically injects the GTM container snippet into your website’s header and body, and begins pushing WooCommerce events into the data layer immediately.

2. Complete Enhanced eCommerce Event Tracking

ShopLentor’s GTM module tracks the complete WooCommerce customer journey through 12 distinct eCommerce events, covering every meaningful interaction from product discovery to post-purchase. This full funnel coverage enables detailed funnel analysis in GA4 and precise conversion data for advertising platforms.

3. Data Layer with Structured Product and Transaction Data

Every event pushed to GTM includes rich, structured data about the products and transactions involved — not just event names. A purchase event, for example, includes: the WooCommerce order ID, total revenue, tax amount, shipping amount, any coupon code applied, and a complete list of every purchased product with individual product ID, name, category, variant (size/color), quantity, and price. This structured data is what allows platforms like GA4, Google Ads, and Meta Ads to perform meaningful attribution and audience building.

4. Conversion Attribution — Know Which Channels Drive Sales

When GTM passes accurate purchase data to your advertising platforms, those platforms can match the conversion data against their own records of which ad campaign, ad set, and keyword led the visitor to the store. This gives you precise channel-level attribution — showing you not just how many sales you made, but exactly how much revenue each campaign, each ad set, each keyword, and each audience segment generated. This is the foundation of data-driven advertising budget allocation.

5. Pinpoint Revenue Sources Across All Traffic Types

ShopLentor’s GTM tracking captures purchase data regardless of whether the buyer arrived via paid search, organic search, social media, email marketing, direct visit, or referral traffic. When this data flows through GTM into GA4 and your advertising platforms, you gain a comprehensive, accurate picture of which traffic sources are generating actual revenue — versus which are generating traffic that does not convert.

6. Marketing Budget Optimization

The most immediate financial benefit of accurate WooCommerce GTM tracking is the ability to optimize your advertising spend based on actual sales data. When you know with certainty that Campaign A is generating $5,000/month in revenue at a $20 cost per acquisition, while Campaign B is generating $1,200/month at an $85 cost per acquisition, the budget reallocation decision is obvious — and impossible to make correctly without tracking data.

7. Remarketing Audience Building Based on Shopping Behavior

GTM’s data layer events enable the creation of highly specific remarketing audiences in Google Ads and Meta Ads based on actual WooCommerce shopping behavior. Build audiences of visitors who: viewed products in a specific category, added items to their cart but did not check out, completed checkout but did not finalize payment, purchased a specific product (for cross-sell campaigns), or spent above a certain order value threshold. These behavioral audiences convert at dramatically higher rates than generic page-view-based audiences.

8. Enhanced eCommerce Reporting in Google Analytics 4

When ShopLentor’s GTM module pushes eCommerce events into GA4 through GTM, you unlock GA4’s full enhanced eCommerce reporting suite. View reports on product performance (which products generate the most revenue), shopping funnel visualization (where visitors drop off between product view and purchase), checkout behavior analysis (which checkout steps have the highest abandonment), promotional campaign performance (coupon usage and discount impact on revenue), and customer lifetime value metrics.

9. Track Complete Customer Journey from First Click to Purchase

The combination of GTM event tracking, GA4 reporting, and advertising platform integration creates a full-funnel view of every customer journey on your WooCommerce store. You can trace a specific revenue-generating customer from their first-touch point (e.g., a Google Shopping ad for a specific product) through their product browsing behavior, cart addition, checkout process, and final purchase — across multiple sessions if needed. This multi-session journey view is essential for understanding how customers actually shop before they buy.

10. One Container Serves All Platforms Simultaneously

One of GTM’s most powerful features is that a single data layer event can simultaneously trigger multiple tags — sending the same purchase data to GA4, Google Ads, Meta Pixel, TikTok Pixel, and any other connected platform in a single action. ShopLentor only needs to push the event once into the data layer — GTM then distributes that data to all configured tags automatically. This means adding a new analytics or advertising platform does not require additional WooCommerce plugin configuration — just a new tag in GTM.

Complete Reference: WooCommerce Events Tracked by ShopLentor GTM Module

Here is a complete reference of all WooCommerce events pushed to the GTM data layer by ShopLentor’s GTM Conversion Tracking module:

Event Name

When It Fires

Data Sent to GTM

view_item_list

When a product listing/archive page loads

Product list name, product IDs, names, prices, categories

select_item

When a visitor clicks on a product in any listing

Product ID, name, price, category, list position

view_item

When a single product detail page is viewed

Product ID, name, price, category, SKU, variant

add_to_cart

When a product is added to the cart (any method)

Product ID, name, price, quantity, variant, cart value

remove_from_cart

When a product is removed from the cart

Product ID, name, price, quantity removed

view_cart

When the cart page is viewed

All cart items, their prices, quantities, total cart value

begin_checkout

When the visitor starts the checkout process

All cart items, total value, number of items

add_shipping_info

When a shipping method is selected at checkout

Shipping tier selected, cart value, items

add_payment_info

When a payment method is entered at checkout

Payment type, cart value, items in order

purchase

When an order is successfully completed

Order ID, revenue, tax, shipping, coupon, all items

refund

When a refund is issued (full or partial)

Order ID, refunded amount, refunded items

Advantages of Tracking WooCommerce Sales

1. Transform Advertising from Cost Centre to Profit Engine

Without tracking, advertising spend is a hope — you spend money and hope it generates sales. With GTM conversion tracking, advertising becomes a precisely measured engine. You know exactly how much revenue each dollar of advertising generates, which creative and targeting combinations produce the best returns, and where to scale budgets for compounding revenue growth.

2. Identify and Fix Revenue Leaks in the Sales Funnel

GTM-powered funnel analysis reveals exactly where your WooCommerce customers abandon their journey. If data shows that 80% of visitors who view the cart never begin checkout, you have identified a critical friction point requiring immediate attention — a confusing checkout layout, missing payment methods, unexpected shipping costs. Without tracking, these leaks are invisible and remain unfixed.

3. Smarter Product Strategy Based on Revenue Data

GA4’s enhanced eCommerce product performance reports — powered by GTM data from ShopLentor — show you exactly which products generate the most revenue, which have the highest view-to-purchase conversion rates, and which are frequently abandoned in the cart. This data drives better product selection, pricing optimization, and promotional prioritization decisions.

4. Validate Marketing Experiments with Evidence

When you launch a new ad campaign, change a product page design, or test a new pricing strategy, GTM tracking allows you to measure the actual revenue impact of each change. This evidence-based approach to marketing decisions replaces gut feeling with data, dramatically reducing the risk of expensive experiments that produce no return.

5. Demonstrate Clear Marketing ROI

For store owners managing teams or agencies, GTM-powered tracking provides clear, auditable data connecting marketing activities to revenue outcomes. Instead of reporting on impressions and clicks that may or may not relate to sales, you can report directly on revenue attributed to each channel, campaign, and tactic — making marketing accountability transparent and measurable.

How to Track WooCommerce Sales with ShopLentor GTM Tracking

Here is a complete step-by-step guide to setting up WooCommerce sales tracking using ShopLentor Pro’s GTM Conversion Tracking module.

Step 1: Install ShopLentor Pro

  1. Install the free ShopLentor (WooLentor) plugin from WordPress.org if not already installed
  2. Purchase a ShopLentor Pro plan from woolentor.com/pricing (starts at $49/year for 1 site)
  3. Download the ShopLentor Pro plugin ZIP from your account
  4. Go to WordPress > Plugins > Upload Plugin, upload and activate the Pro ZIP
  5. Enter your license key to activate Pro features including the GTM Conversion Tracking module

Step 2: Create a Google Tag Manager Account and Container

  1. Go to tagmanager.google.com and sign in with your Google account
  2. Click Create Account and enter your account name (your company or store name)
  3. Under Container Setup, enter your website URL as the container name
  4. Select Web as the target platform and click Create
  5. Accept the GTM Terms of Service
  6. Google Tag Manager will display your GTM Container ID — it will be in the format GTM-XXXXXXX — copy this ID

Step 3: Enable the GTM Conversion Tracking Module in ShopLentor

  1. In your WordPress admin sidebar, go to ShopLentor > Modules
  2. Find the GTM Conversion Tracking module in the Marketing & Conversion section
  3. Toggle the module to the ON (enabled) position
  4. Click Save Changes to activate the module

Step 4: Enter Your GTM Container ID in ShopLentor

  1. Go to ShopLentor > Settings > GTM Conversion Tracking (or access the module settings)
  2. In the Google Tag Manager ID field, paste your GTM Container ID (e.g., GTM-XXXXXXX)
  3. Click Save Settings
  4. ShopLentor will now automatically inject the GTM container snippet into your website’s head and body sections and begin pushing WooCommerce events into the GTM data layer

Step 5: Verify GTM is Receiving WooCommerce Data

  1. In Google Tag Manager, click Preview to open Tag Assistant in preview mode
  2. Enter your WooCommerce store URL and click Connect
  3. Your store will open in a new browser tab with Tag Assistant connected
  4. Navigate through the store — view a product, add it to your cart, proceed to checkout
  5. In the Tag Assistant panel, you will see events appearing in the left column as you perform these actions: view_item, add_to_cart, begin_checkout, etc.
  6. Click any event to verify the data layer payload — confirm that product names, prices, IDs, and other data are populating correctly

Step 6: Complete a Test Purchase and Verify Purchase Event

  1. In your browser tab with Tag Assistant active, complete a test purchase using WooCommerce’s test payment gateway
  2. After the order confirmation page loads, check Tag Assistant for the ‘purchase’ event
  3. Verify the purchase event payload includes: order_id, value (total revenue), tax, shipping, currency, and items array with all purchased products
  4. This confirms ShopLentor is correctly pushing purchase data into GTM’s data layer

Step 7: Set Up Google Analytics 4 in GTM

  1. In your GTM workspace, go to Tags > New
  2. Click Tag Configuration and select Google Analytics: GA4 Configuration
  3. Enter your GA4 Measurement ID (found in Google Analytics > Admin > Data Streams > Web > Measurement ID, format: G-XXXXXXXXXX)
  4. Set the trigger to All Pages to fire the GA4 configuration tag on every page
  5. Save and publish this tag
  6. GA4 will now automatically receive all eCommerce events pushed by ShopLentor into the data layer, including product views, add to cart, and purchases

Step 8: Set Up Google Ads Conversion Tracking in GTM

  1. In GTM, create a new tag and select Google Ads: Conversion Tracking as the tag type
  2. Enter your Google Ads Conversion ID and Conversion Label (both found in your Google Ads account under Tools > Conversions)
  3. Set the Conversion Value to read from the data layer variable {{ecommerce.value}}
  4. Set the trigger to fire on the custom event ‘purchase’
  5. Save and publish — Google Ads will now receive revenue data for every completed WooCommerce purchase

Step 9: Set Up Meta Pixel (Facebook/Instagram Ads) in GTM

  1. In GTM, create a new tag for your Meta Pixel
  2. Add the Meta Pixel base code as a Custom HTML tag, triggered on All Pages
  3. Create a second Custom HTML tag that fires on the ‘purchase’ data layer event and sends the fbq(‘track’, ‘Purchase’) event with the order value from the data layer
  4. Publish the changes
  5. Verify in Meta Events Manager that Purchase events are being received

Step 10: Publish GTM Container and Monitor Live Data

  1. In GTM, click Submit at the top right to publish all your tags and triggers to your live website
  2. Add a version name (e.g., ‘ShopLentor WooCommerce Tracking Setup’) and click Publish
  3. Your tracking is now live — all WooCommerce shopping events are being captured and distributed to all connected platforms
  4. After 24-48 hours, check Google Analytics 4 > Reports > Monetization > Ecommerce Purchases to see actual purchase data flowing in
  5. Check Google Ads and Meta Ads Manager for conversion data appearing in your campaign reports

Frequently Asked Questions (FAQs)

1. Do I Need Coding Knowledge to Set Up GTM Tracking with ShopLentor?

No. ShopLentor’s GTM Conversion Tracking module is specifically designed to eliminate the need for custom code. The entire WooCommerce-GTM integration — including injecting the GTM container snippet and pushing all eCommerce events into the data layer — is handled automatically by the module once you enter your GTM Container ID in the ShopLentor settings. You do not need to write any JavaScript, modify any PHP files, or edit your WordPress theme. However, configuring the tags within GTM itself (setting up GA4, Google Ads, and Meta Pixel tags) does require following step-by-step instructions in the GTM dashboard — which is designed to be accessible to non-technical marketers — though no coding is involved in that process either.

2. What Platforms and Ad Networks Can Receive Data Through GTM?

Google Tag Manager is platform-agnostic — any advertising or analytics platform that provides a JavaScript tag can receive data through GTM. This includes Google Analytics 4, Google Ads (search, shopping, and display), Meta Ads (Facebook and Instagram Pixel), TikTok Pixel, Pinterest Tag, LinkedIn Insight Tag, Twitter Ads Tag, Snapchat Pixel, Bing Ads (Microsoft Advertising), Criteo, Hotjar, Microsoft Clarity, and hundreds of other tools that offer GTM integration. ShopLentor pushes data into GTM’s data layer once, and GTM distributes that data to every platform you have configured. Adding a new tracking platform does not require changes to ShopLentor or your WooCommerce store — just a new tag in your GTM container.

3. How is ShopLentor GTM Tracking Different from Installing Tracking Pixels Directly on My Store?

Installing tracking pixels directly on your WooCommerce store — whether through plugin settings or by editing theme files — creates a fragmented, difficult-to-manage tracking setup. Each pixel loads independently, adding to your page load time. Updates to any pixel require either a developer or plugin-specific settings changes. And critically, most direct pixel installations capture only basic conversion data (that a purchase happened) without the rich product-level data (what was purchased, at what price, in what quantity) that enables sophisticated attribution and audience building. ShopLentor’s GTM integration pushes rich, structured Enhanced eCommerce data into a centralized data layer that any number of tags can consume simultaneously — creating a more accurate, more performant, and more flexible tracking setup than direct pixel installation.

4. Will WooCommerce GTM Tracking Slow Down My Store?

ShopLentor’s GTM integration is engineered for minimal performance impact. Google Tag Manager itself loads asynchronously — meaning the GTM script does not block page rendering while it loads. ShopLentor’s data layer pushes are lightweight JavaScript operations that happen after the page content has rendered, ensuring they do not affect the visible page load experience. Additionally, GTM’s consolidated approach to tag loading (one container script rather than multiple individual scripts) often improves overall page performance compared to the alternative of installing multiple individual tracking pixels directly on the site. For optimal performance, it is best practice to configure all your tracking within GTM and avoid installing the same pixel both directly on the site and through GTM simultaneously.

5. Can I Track Abandoned Carts and Checkout Abandonment with ShopLentor GTM?

Yes, in a meaningful sense. ShopLentor’s GTM module fires the add_to_cart event every time a product is added to the cart and the begin_checkout event every time the checkout process is initiated. If these events occur but the purchase event does not follow within the same session, the advertising platforms receiving this data can automatically identify these visitors as cart or checkout abandoners. In Google Ads, you can build a remarketing audience of visitors who triggered add_to_cart but not purchase. In Meta Ads, you can build a custom audience of AddToCart events that excludes Purchase events. These behavioral remarketing audiences enable highly targeted recovery campaigns that re-engage abandoning shoppers with relevant, personalized advertising — which is entirely separate from ShopLentor’s dedicated Abandoned Cart recovery email module that handles in-store email-based recovery.

Conclusion

Tracking WooCommerce sales is not a nice-to-have — it is the operational foundation of any data-driven eCommerce business. Without accurate tracking, every advertising dollar spent is allocated on assumption, every optimization decision is made on intuition, and every revenue report is incomplete. With Google Tag Manager and ShopLentor’s GTM Conversion Tracking module, every one of those problems is solved.

ShopLentor transforms what would traditionally be a complex, developer-dependent technical implementation into a straightforward two-field configuration: enter your GTM Container ID, save settings, done. From that moment, your WooCommerce store is automatically pushing 12 distinct Enhanced eCommerce events — covering the complete journey from product discovery to purchase completion — into GTM’s data layer, ready to be consumed by any analytics or advertising platform you connect.

The business impact compounds quickly: advertising campaigns optimized with accurate purchase data cost less per conversion, remarketing audiences built on real shopping behavior convert at higher rates, and marketing budget allocation guided by channel-level revenue attribution generates more revenue per dollar spent. These are not theoretical improvements — they are the predictable, measurable outcomes of replacing guesswork with accurate data.

Install ShopLentor Pro, enable the GTM Conversion Tracking module, connect your GTM container, and start making data-driven marketing decisions that measurably grow your WooCommerce store’s revenue.

How to Track WooCommerce Sales with Google Tag Manager & ShopLentor GTM Tracking

Share this article:

Facebook
Twitter
LinkedIn
Reddit
WhatsApp

The AI-powered business operating system

Take Your Business To The Next Level

Get 30 Days Free Trial + Free Live Bootcamp
to Launch HighLevel Together

Recent Articles

You may also like to read.

Learning Center

Watch hundreds of video tutorials about WordPress website design, Elementor plugin, Filmora Video editing tool, WooCommerce plugin to create e-commerce website. 

Leave a Reply

Your email address will not be published. Required fields are marked *