Ecommerce

Adblock Recovery for Shopify & WooCommerce: Setup Guide

A practical, step-by-step walkthrough for recovering GA4, GTM, and Meta Pixel data on Shopify and WooCommerce stores — no theme rebuild, no app store review, one script tag.

By Dumitru Postolachi·Founder, Introtrace··7 min read
Adblock recovery setup for Shopify and WooCommerce stores recovering blocked GA4, GTM, and Meta Pixel data

1. Why Ecommerce Stores Lose So Much Analytics Data

Ecommerce stores feel the adblock gap harder than most sites do. Checkout flows lean on GA4 ecommerce events, Meta Pixel purchase events feed ad optimization, and a GTM container usually stitches the two together. All three depend on a script loading from google-analytics.com, googletagmanager.com, or connect.facebook.net, and those domains sit on nearly every filter list in circulation.

Run the numbers and roughly 29.5% of sessions (32.5% in the US) for a typical store never register a page_view, never fire add_to_cart, and — the one that actually costs money — never report a purchase event back to Meta or Google Ads. Ad platforms optimize toward what they can see, so budget quietly drifts away from channels that are working but under-reporting.

Why this matters more for stores than blogs

A missed pageview on a content site barely registers. A missed purchase event on a store under-reports revenue directly, throws off ROAS math, and leaves your ad platforms bidding without the conversion signal they need.

None of this requires tearing out what you already have. Introtrace runs alongside GA4, GTM, and Meta Pixel and simply re-sends the requests an adblocker would have killed, from a hostname that isn't on anyone's blocklist. Nothing to configure beyond the script tag for the default cdn.introtrace.com path; a paid plan lets you point a CNAME at it and serve from your own subdomain instead, which holds up better since blocking a subdomain of your own store means breaking the store. From here on, "your domain" just means whichever of the two you've set up.

2. Shopify Setup

Shopify gives you two ways to add the script: editing theme.liquid directly, or using Shopify's built-in custom pixel feature. Editing the theme is faster and covers your entire storefront in one step.

1

Get your script tag

Sign up for a free Introtrace account and copy the script tag from your dashboard. It looks like a single <script> tag with your organization ID.

2

Open theme.liquid

From your Shopify admin, go to Online Store → Themes → Edit code, then open layout/theme.liquid.

3

Paste before </head>

Add the Introtrace script tag immediately before the closing </head> tag, alongside your existing GA4 and GTM snippets.

4

Save and preview

Save the file and load your storefront with an adblocker enabled to confirm the script loads (check the Network tab for a request to your Introtrace subdomain).

If you'd rather not touch theme code, Shopify's Customer Events custom pixel editor (Settings → Customer events → Add custom pixel) also works for the storefront, though it runs in a sandboxed context with more restrictions — editing theme.liquid is the more reliable option for most stores.

3. Shopify Checkout & Thank-You Page

The storefront is only half the picture — your checkout and order confirmation pages are where purchase and add_payment_info events fire, and theme.liquid doesn't apply to checkout pages.

  • Shopify Plus: Add the script via checkout.liquid or the Checkout & Customer Accounts Extensibility settings (Additional scripts section).
  • Standard Shopify plans: Use the order status page's "Additional scripts" box (Settings → Checkout → Order status page) to add the script to the thank-you page, where purchase events typically fire.

If GA4 or Meta Pixel purchase events already fire through GTM on these pages, there's no conversion logic to duplicate. The script just has to be present so it can catch and recover the same outgoing requests your existing tags are already making.

4. WooCommerce Setup

WooCommerce runs on WordPress, so you have more flexibility — and more options for adding a script sitewide without editing theme files directly.

Option A: Header/footer plugin

Plugins like "Insert Headers and Footers" or "WPCode" let you paste the Introtrace script tag into the site-wide <head> section without touching theme code. This is the safest option if you don't want to risk theme updates overwriting your changes.

Option B: Edit header.php

If you're comfortable editing theme files, add the script tag to header.php just before the closing </head> tag. Use a child theme so the change survives theme updates.

Option C: Via Google Tag Manager

If you already manage tags through GTM on WooCommerce, you can add the Introtrace script as a Custom HTML tag set to fire on All Pages — keeping all your tracking scripts managed in one place.

WooCommerce's checkout and order-received pages are regular WordPress pages, so a sitewide script (via any of the options above) covers them automatically — unlike Shopify, there's no separate checkout templating system to work around.

5. Verifying It's Working

Once the script is live, confirm recovery is working before assuming everything's connected:

  • Open your storefront in a browser with uBlock Origin or Brave Shields enabled
  • Open DevTools → Network tab and filter for your Introtrace subdomain
  • Confirm requests to google-analytics.com / googletagmanager.com / facebook.com that would normally be blocked are now being proxied successfully
  • Check your Introtrace dashboard for incoming event volume within a few minutes
  • Compare GA4 real-time reports before and after — sessions from adblock-heavy browsers (Brave, Firefox with ETP) should start appearing

Hold off on conclusions from GA4 or Meta Ads Manager for a few days; both have reporting delays. The lift in session counts and conversions is usually easy to see once you're a week into accumulated recovered data.

Summary

Shopify or WooCommerce, the setup is basically identical: one script tag, sitewide, covering the storefront, checkout, and thank-you page. GA4, GTM, and Meta Pixel don't need to be touched — the script just starts catching what they were losing.

If you're running real ad spend, even getting back a slice of that ~29.5% of blocked purchase events is often enough to shift how Meta and Google Ads bid on your campaigns.

Recover Your Store's Blocked Conversions

One script tag on Shopify or WooCommerce, and you start getting back the GA4, GTM, and Meta Pixel events adblockers were dropping. Free to start, with 20,000 signals a month included.

Start Free

Frequently Asked Questions

Does Introtrace require a Shopify app?

No app install needed. Drop the script into theme.liquid, or use Shopify's built-in custom pixel feature if you'd rather not touch theme code. Either way, there's no app store listing, no review queue, and no extra fee stacked on your Introtrace plan.

Will this slow down my Shopify or WooCommerce store?

It's loaded async, so page rendering doesn't wait on it. Think of it as one more small first-party request running alongside your existing analytics tags — not replacing them.

Does this replace GA4, GTM, or Meta Pixel on my store?

Nothing to replace. Your GA4, GTM, and Meta Pixel setup keeps running exactly as it is; Introtrace just catches the requests an adblocker would have dropped and forwards them through cdn.introtrace.com by default, or your own subdomain if you've set up a CNAME on a paid plan. Either path, the same destinations keep getting the data.

Do I need to modify my checkout or thank-you page separately?

Yes — any page where tracking events fire needs the same script tag, checkout and order confirmation included. Shopify Plus stores handle this through checkout.liquid or the checkout extensibility settings; standard Shopify plans use the order status page's script injection field for the thank-you page.