Google Tag Manager for WordPress, with leads and sales in the data layer
Tracking Nexus is a WordPress plugin that fills your data layer with every accepted form lead and the WooCommerce journey under GA4's ecommerce names, only after consent, and loads your container. It can still send Meta and TikTok directly, with their server copies.
Works with your own server-side Tag Manager, self-hosted or on Stape.
Build tags on real events, not on guesses
Without a data layer, a form lead in GTM means a trigger on a thank-you page URL, a click on a submit button or an element that appears after sending, and each one breaks when the form or the theme changes.
A WooCommerce purchase means scraping the order page. Tracking Nexus pushes the events themselves: a lead only when the form plugin accepted it, a purchase only when WooCommerce confirmed the payment. You create your tags and triggers on those once, and they keep working when the website changes.
Leads, the shopping journey and page facts, ready in the data layer
How do you get WooCommerce events into Google Tag Manager? Install Tracking Nexus, switch on its data layer in the settings and choose the groups you want to track.
On by default:
- the page: type (home, product, cart, checkout, search and so on), ID, post type, title and site language
- up to 10 categories and tags of the post or product
- site search: the term and the number of results
- the visitor: signed in or not, and their role
- the campaign: UTMs, landing page and referring site, first and latest
- product details on product pages: ID, SKU, name, price, currency, stock and category
- every tracked event
- leads and purchases
Off until you switch them on: the post's author, its publish and modified dates, a signed-in customer's order count and total spent, and a hashed email for tags that match users, such as Google enhanced conversions.
Shop events arrive with GA4's ecommerce names (view_item, add_to_cart, begin_checkout, purchase and the rest). Leads arrive as tn_lead, with the value, currency, form and source. Engagement events arrive as tn_scroll, tn_contact and the like. The data layer's name is yours to choose; dataLayer is the default.
Consent is settled before your tags fire
Nothing is pushed to the data layer before the visitor allows analytics or advertising, so your tags never fire on a choice the visitor hasn't made. Tracking Nexus reads that choice from your consent plugin and sets Google Consent Mode v2 to denied until it arrives. A signed-in customer's totals and hashed email are never printed in the page: they're fetched after consent.
The Tag Manager code, added for you, or your own snippet
Paste the container ID from your GTM account, and Tracking Nexus loads Google Tag Manager on your WordPress site once the visitor allows the platforms you send through it. Already installed GTM another way? Keep your own snippet. GTM environments are an option too.
If you run a server-side Tag Manager, self-hosted or with a host such as Stape, give Tracking Nexus its address and path under the advanced settings: the container and the Google tag load from it, and GA4 events go through it. It's optional; Tracking Nexus doesn't host it for you.
Keep GA4 and Google Ads in GTM, send the rest directly
You don't have to run everything through Tag Manager. One set-up that works: GA4 and Google Ads from your container, while Tracking Nexus sends Meta, TikTok, Pinterest and Snapchat directly, each with a server copy under the same event ID. Send each platform from your container or from Tracking Nexus, not both, so nothing is counted twice.
Google Tag Manager on WordPress: questions
How do I add Google Tag Manager to WordPress?
Install and activate Tracking Nexus, paste your container ID, and it loads Tag Manager for you once consent allows it. Without a plugin, you'd paste Google's two code snippets into your theme and build the data layer yourself.
Is Google Tag Manager still worth using?
For teams that manage multiple custom tags, yes. If all you need is conversions in Meta, Google Ads, GA4 and TikTok, Tracking Nexus sends them without Tag Manager.
How do I implement GA4 with GTM on WordPress?
In Tracking Nexus, send GA4 through Tag Manager, then create a GA4 tag in your container that fires on the data layer's events; the ecommerce events already use GA4's names. Or let Tracking Nexus send GA4 directly and keep GTM for your other tags.
Can I use it with GTM4WP?
Don't push the same events into two data layers. Use one plugin's data layer, or keep GTM4WP's and let Tracking Nexus send the platforms directly. Tracking Nexus vs GTM4WP
Every other platform gets the same conversions
Check out all the platforms we work withSpend your Tag Manager time on tags, not triggers
Get Tracking Nexus and go live in under five minutes, with the data layer and every platform included. Try it worry-free with our 30-day money-back guarantee.