How to Install Google Tag Manager on BigCommerce (2026 Step-by-Step Guide)
BigCommerce's Script Manager is the cleanest path to GTM - it lets you paste both snippets without editing theme files, and you can configure them to fire on Storefront only, Order Confirmation page only, or all pages. The whole setup takes about 10 minutes.
What you'll need before you start
- •A BigCommerce store on any plan
- •Owner or staff with permission to access Storefront → Script Manager
- •A Google account
How to install Google Tag Manager on BigCommerce: Step-by-step
- 1
Create a GTM container
Go to tagmanager.google.com, sign in, click Create Account, fill in the details, choose Web. Copy both install snippets.
- 2
Open BigCommerce's Script Manager
In your BigCommerce control panel, go to Storefront → Script Manager. Click Create a Script in the upper-right.
- 3
Configure the head script (gtag/script block)
In the script form: Name: GTM head. Description: optional. Location on page: Header. Select pages where script will be added: All pages. Script category: Essential (so cookie consent doesn't block it). Script type: Script. Paste the GTM
<script>block (the longer one) into Scripts contents. Click Save. - 4
Configure the noscript fallback
Click Create a Script again. Name: GTM noscript. Location: Footer (BigCommerce doesn't expose direct access to immediately-after-body, so footer is the practical equivalent). Pages: All pages. Category: Essential. Type: Script. Paste the GTM
<noscript>block. Save. - 5
Wire the order confirmation page
BigCommerce serves the order confirmation as a separate page. To track purchases, the GTM snippet needs to fire there too. The Script Manager's All pages option already includes the order confirmation page in modern BigCommerce, so you usually don't need a separate script. To verify, run a test order and check that GTM Preview detects the container on the confirmation page.
- 6
(Optional) Push BigCommerce ecommerce events into the data layer
BigCommerce's Stencil theme framework exposes some product data via
JSContextand theCatalystframework provides adataLayerfor newer headless setups. To get standard GA4 ecommerce events (view_item,add_to_cart,purchase) intodataLayer, you'll need a custom theme-level script that hooks into BigCommerce's product/cart/order JavaScript events. Several agencies sell pre-built BigCommerce GTM data-layer templates if you don't want to build one. - 7
Add a tag in GTM and submit
In tagmanager.google.com, click Tags → New. For GA4: Google Analytics: GA4 Configuration, paste your Measurement ID, trigger All Pages, save. Click Submit in the top-right to publish.
- 8
Verify with GTM Preview
Click Preview in GTM, paste your storefront URL, click Connect. The debug overlay shows tags firing in real time. Browse a product, add to cart, run a test order to verify all key events trigger.
How to verify your setup is working
GTM Preview mode is the cleanest verification - watch tags fire as you browse. The Google Tag Assistant Chrome extension is good for spot-checking. Confirm purchase tracking by running a test order (use a discount code that brings the total to $0, or test mode in your payment gateway) and watching for the purchase event in GTM Preview.
Common issues and fixes
GTM doesn't fire on the order confirmation page
Check your Script Manager scripts: Pages where script will be added should be set to All pages (not Storefront pages, which excludes the order confirmation). If the script is set to All pages and still doesn't fire, view source on the confirmation page to confirm the snippet is rendering. Some older BigCommerce themes have unusual order-confirmation templates that strip head injection.
BigCommerce ecommerce events aren't appearing in GTM
BigCommerce doesn't push GA4-standard ecommerce events into dataLayer by default. You need a custom snippet wired into your theme that listens for BigCommerce's native product/cart/order JS events and pushes corresponding dataLayer.push calls. Search for BigCommerce Stencil GTM data layer on GitHub for community templates, or buy a pre-built solution.
Cookie consent banner is blocking GTM
Set Script category to Essential (not Analytics) when configuring the script in Script Manager. The Essential category fires before consent, which is what GTM needs - consent gates can then be applied tag-by-tag inside GTM using the Consent Mode v2 settings.
Frequently asked questions
Does BigCommerce support Google Tag Manager?
Yes - through the Script Manager tool in Storefront → Script Manager. Paste the GTM head <script> as one Header script and the <noscript> as a Footer script. Both should be set to All pages and category Essential.
Should I use BigCommerce's native GA4 integration or Google Tag Manager?
Use the native Web Analytics → Google Analytics integration if GA4 is the only tag you'll run - it auto-wires ecommerce events. Switch to GTM the moment you add a second tag. Don't run both for GA4 - that double-tracks every event. Either disable BigCommerce's native GA4 integration or don't include GA4 in the GTM container.
Can I install Google Tag Manager on BigCommerce without using Script Manager?
Technically yes - you can edit your theme directly via Storefront → Themes → Edit Theme Files → open your theme's base.html and paste the GTM snippets. But Script Manager is the recommended path because it survives theme updates and theme switches without losing the snippets.
How do I track BigCommerce checkout with GTM?
BigCommerce's checkout (Optimized One-Page Checkout) lives on a separate URL. Script Manager's All pages setting covers it. To capture the actual purchase event with order details, you'll need either a custom data-layer snippet that reads BigCommerce's orderId + line items on the confirmation page, or a paid ecommerce tracking app like Stape's BigCommerce + GTM solution.
Is Google Tag Manager free on BigCommerce?
GTM itself is free. BigCommerce charges for the store plan that includes Script Manager (which is every plan, including Standard). There are no extra per-tag or per-event fees from Google.
How do I know GTM is working on my BigCommerce store?
Use GTM's Preview mode - paste your storefront URL, browse the site in the preview window, watch for tags firing in the debug panel. Run a test order to verify checkout and purchase events fire correctly. The Google Tag Assistant Chrome extension is faster for spot-checking the container is loading on each page.
Related Guides
Once you're set up, MeasureBoard turns the data into action
MeasureBoard connects to your analytics, search, and SEO tooling and generates AI-powered weekly reports, GEO readiness scores, and a dedicated AI analyst that answers questions in plain English. Free to start, connects in 30 seconds.
Get Started Free