Gtm audit
Moderate effortFound on 52% of audited stores.
Install Google Tag Manager on your store and configure GA4 with ecommerce event tracking (view_item, add_to_cart, purchase) so you can measure what's driving revenue.
What it is
Google Tag Manager (GTM) is a free tool from Google that lets you add and manage marketing and analytics scripts on your website without touching code every time. Inside GTM, you install Google Analytics 4 (GA4) along with ecommerce event tracking — signals that fire whenever a shopper views a product, adds something to their cart, or completes a purchase. Think of GTM as a control panel for all the measurement tags on your store, and GA4 as the reporting dashboard that tells you exactly what those shoppers did.
Why it matters
Without GTM and GA4 ecommerce tracking, you are flying blind: you cannot see which traffic sources, products, or promotions actually generate sales. This means you risk wasting ad budget on campaigns that don't convert, missing opportunities to fix high-abandonment checkout steps, and losing the ability to build remarketing audiences for Google Ads and Meta. GA4's purchase data also feeds Google's Smart Bidding algorithms — without it, paid campaigns perform significantly worse, directly costing you revenue. Many regulations and platform policies also require transparent data practices, so having a properly managed tag infrastructure keeps you in control of what fires on your site.
How to fix it
- Create a free Google Tag Manager account at tagmanager.google.com and create a new Container for your website. Copy the two GTM snippet codes provided (one for the <head>, one for the <body>).
- Create a free Google Analytics 4 property at analytics.google.com. In GA4, go to Admin → Data Streams → Add Stream → Web, enter your store URL, and copy the Measurement ID (format: G-XXXXXXXXXX).
- Inside GTM, create a new Tag of type 'Google Analytics: GA4 Configuration', paste your Measurement ID, and set it to fire on the 'All Pages' trigger. Publish the container.
- Enable enhanced ecommerce by adding GA4 Event Tags inside GTM for the key ecommerce events: view_item (product page), add_to_cart (cart action), begin_checkout, and purchase. Each tag reads event parameters (item name, price, quantity, transaction ID) from a dataLayer object your store theme or app pushes.
- Verify the dataLayer is pushing the correct ecommerce objects by using GTM Preview mode and the GA4 DebugView (Admin → DebugView in GA4). Confirm events and parameters appear before publishing.
- Publish the GTM container. Monitor GA4 Reports → Monetisation → Ecommerce Purchases over the next 24–48 hours to confirm purchase events are recording correctly.
<!-- GTM Head Snippet — paste inside <head> -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXX');</script>
<!-- GTM Body Snippet — paste immediately after opening <body> -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- Example GA4 purchase dataLayer push (server or theme renders this on order-confirmation page) -->
<script>
window.dataLayer = window.dataLayer || [];
dataLayer.push({
event: 'purchase',
ecommerce: {
transaction_id: 'T_12345',
value: 59.99,
currency: 'USD',
items: [{
item_id: 'SKU_001',
item_name: 'Blue Widget',
price: 29.99,
quantity: 2
}]
}
});
</script>Fix it on your platform
Pick your platform for the exact steps.
How to fix gtm audit on Shopify
- Install GTM via a trusted app such as 'GTM Kit' (free, Shopify App Store) — it injects both GTM snippets and pushes a GA4-compatible ecommerce dataLayer automatically.
- Alternatively, paste the GTM <head> snippet into Online Store → Themes → Edit Code → theme.liquid inside the <head> tag, and the <body> snippet immediately after the opening <body> tag.
- For native GA4 ecommerce events (view_item, add_to_cart, purchase), use the GTM Kit app's built-in dataLayer or install 'Elevar' / 'Analyzify' for fully managed server-side & browser-side event tracking.
- In GA4, connect via GTM as described in the generic steps. Do NOT also enable the Shopify 'Google & YouTube' channel GA4 integration at the same time — it will cause duplicate purchase events.
- Verify in GTM Preview and GA4 DebugView, then publish.
How to fix gtm audit on WooCommerce
- Install the free WordPress plugin 'GTM4WP' (duracell0, WordPress.org plugin directory): Plugins → Add New → search 'GTM4WP' → Install → Activate.
- Go to Settings → Google Tag Manager, enter your GTM Container ID (GTM-XXXXXX), and enable the plugin.
- Inside GTM4WP settings, enable 'Track eCommerce' under the Integration tab — this automatically pushes view_item, add_to_cart, begin_checkout, and purchase events to the dataLayer.
- In GTM, create a GA4 Configuration tag with your Measurement ID firing on All Pages, then create GA4 Event tags listening to the custom events pushed by GTM4WP.
- Use GTM Preview + GA4 DebugView to verify, then publish the container.
How to fix gtm audit on BigCommerce
- In BigCommerce Admin, go to Storefront → Script Manager → Create a Script.
- Set Location to 'Head', Pages to 'All Pages', and paste the GTM <head> snippet. Create a second script with Location set to 'Body' for the <body> snippet.
- For ecommerce dataLayer events, install the 'Pixel Manager for BigCommerce' app from the BigCommerce App Marketplace, which pushes GA4-compatible ecommerce events automatically.
- Alternatively, edit your Stencil theme's base.html (via Stencil CLI or Theme Editor) to add the GTM snippets and custom dataLayer pushes on product, cart, and order-confirmation pages.
- Configure GA4 tags in GTM, verify with Preview + DebugView, and publish.
How to fix gtm audit on Wix
- In the Wix dashboard, go to Marketing & SEO → Marketing Integrations → Google Tag Manager → Connect.
- Enter your GTM Container ID and click Save. Wix injects both GTM snippets site-wide automatically.
- For GA4 ecommerce events on Wix Stores (view_item, add_to_cart, purchase), use Wix's native Google Analytics integration (Marketing & SEO → Google Analytics) alongside GTM, or use a third-party app like 'Pixel Perfect' from the Wix App Market to push dataLayer events.
- Note: Wix's sandboxed environment limits full custom dataLayer control; the native Wix GA4 integration handles basic ecommerce events more reliably than custom GTM dataLayer scripts.
- Verify events in GA4 DebugView and monitor Monetisation reports after 48 hours.
How to fix gtm audit on Squarespace
- In Squarespace, go to Settings → Developer Tools → External API Keys (on Business plan or higher) — note that direct GTM injection requires a Business plan or above.
- Paste the GTM <head> snippet into Settings → Advanced → Code Injection → Header field.
- Paste the GTM <body> snippet into Settings → Advanced → Code Injection → Footer field (it will render near the body, which is acceptable).
- For Squarespace Commerce ecommerce events, use a third-party solution such as 'Littledata' or 'Analyzify' which integrates with Squarespace to push GA4 ecommerce dataLayer events for add_to_cart and purchase.
- Configure GA4 tags in GTM, test with Preview and DebugView, then publish.
How to fix gtm audit on Webflow
- In Webflow Designer, go to Project Settings → Integrations → Google Tag Manager, enter your GTM Container ID, and click Save. Webflow injects the GTM snippets on all pages automatically.
- For Webflow Ecommerce event tracking (view_item, add_to_cart, purchase), you must push custom dataLayer events using Webflow Interactions or embed custom JavaScript in page embeds on product pages, cart pages, and the order confirmation page.
- Use a service like 'Littledata' or custom code embedded via Webflow's Embed element to populate the ecommerce dataLayer on key pages.
- In GTM, create GA4 Configuration and Event tags. Test with GTM Preview and GA4 DebugView, then publish the container.
How to fix gtm audit on Adobe Commerce (Magento)
- Install the GTM container snippet via a Magento extension such as 'MagePal Google Tag Manager' (free, available on GitHub/Packagist) or 'Tagalys GTM' for a managed solution.
- Run: composer require magepal/magento2-google-tag-manager and then php bin/magento setup:upgrade in your Magento CLI.
- Configure the extension in Admin → Stores → Configuration → MagePal → Google Tag Manager: enter your GTM Container ID and enable enhanced ecommerce (automatically pushes view_item, add_to_cart, purchase to the dataLayer).
- Alternatively, add GTM snippets manually to app/design/frontend/<Vendor>/<theme>/Magento_Theme/templates/root.phtml in the <head> and after the opening <body> tag.
- In GTM, create GA4 Configuration and Event tags. Verify with GTM Preview and GA4 DebugView, flush the Magento cache (System → Cache Management → Flush Cache Storage), then publish.
How to fix gtm audit on WordPress.org
- Install the 'GTM4WP' plugin: WP Admin → Plugins → Add New → search 'GTM4WP' → Install & Activate.
- Navigate to Settings → Google Tag Manager, enter your GTM Container ID, choose where to inject the tag (recommended: 'Footer (below wp_footer hook)' for performance), and Save.
- For WooCommerce stores, enable ecommerce tracking in GTM4WP Settings → Integration tab → Track eCommerce → Save.
- In GTM, set up GA4 Configuration tag and GA4 Event tags for the dataLayer events pushed by GTM4WP. Publish.
- Verify with GTM Preview mode and GA4 DebugView.
How to fix gtm audit on PrestaShop
- In PrestaShop Admin, go to Modules → Module Manager → search for 'Google Tag Manager'. Install a compatible module such as 'Google Tag Manager + GA4 Enhanced Ecommerce' from the PrestaShop Addons Marketplace.
- Configure the module with your GTM Container ID. The module automatically pushes GA4 ecommerce dataLayer events for view_item, add_to_cart, and purchase.
- Alternatively, edit your active theme's header.tpl and footer.tpl files to paste the GTM snippets manually.
- Set up GA4 tags in GTM, test with Preview and GA4 DebugView, then publish.
How to fix gtm audit on Shopify Plus
- Follow all standard Shopify steps above. On Shopify Plus, you additionally have access to the checkout.liquid file (Admin → Themes → Edit Code → checkout.liquid), which lets you add the GTM snippet and custom dataLayer pushes directly on the checkout pages for more accurate begin_checkout and purchase event tracking.
- Use 'Elevar' (purpose-built for Shopify Plus) for server-side GA4 tracking and full ecommerce dataLayer coverage including checkout steps.
- Ensure you do not duplicate purchase events between GTM/GA4 and any native Shopify Google channel integration — disable one.
Does your site have this issue?
Run a free SEOLZ audit to find gtm audit — and every other issue — across your whole site in minutes.
Scan my site freeFrequently asked questions
What is Gtm audit?
Google Tag Manager (GTM) is a free tool from Google that lets you add and manage marketing and analytics scripts on your website without touching code every time. Inside GTM, you install Google Analytics 4 (GA4) along with ecommerce event tracking — signals that fire whenever a shopper views a product, adds something to their cart, or completes a purchase. Think of GTM as a control panel for all the measurement tags on your store, and GA4 as the reporting dashboard that tells you exactly what those shoppers did.
Why does gtm audit matter?
Without GTM and GA4 ecommerce tracking, you are flying blind: you cannot see which traffic sources, products, or promotions actually generate sales. This means you risk wasting ad budget on campaigns that don't convert, missing opportunities to fix high-abandonment checkout steps, and losing the ability to build remarketing audiences for Google Ads and Meta. GA4's purchase data also feeds Google's Smart Bidding algorithms — without it, paid campaigns perform significantly worse, directly costing you revenue. Many regulations and platform policies also require transparent data practices, so having a properly managed tag infrastructure keeps you in control of what fires on your site.
How do I fix gtm audit?
Install Google Tag Manager on your store and configure GA4 with ecommerce event tracking (view_item, add_to_cart, purchase) so you can measure what's driving revenue.