Shopify Facebook Pixel PageView with GTM
Set up Facebook Pixel PageView on Shopify storefront pages with GTM. Check the base tag, avoid duplicate senders and separate checkout tracking.
Shahzada Ali Hassan, founder of Crisperchecked against 6 sources
The short answer
Track Shopify storefront PageView by loading GTM in the theme and configuring a Meta Pixel PageView tag on All Pages. Google's installation guidesupport.google.com places its two container snippets in the head and body. This guide is for implementers maintaining a storefront installation, with checkout tracking handled separately through Customer events.
- Meta standard event:
PageView; GTM trigger:All Pages. - A theme installation is the storefront route in this guide.
- If the Meta app already sends PageView, inspect it before adding another sender.
- Steps and settings checked against linked documentation and tutorial files on 25 October 2026.
FREE CALL
30 MINMeta stopped counting your leads? Get them counted again.
- Pick a time
Check your Meta account with Hassan- See what to do next
On a free 30-minute call, Hassan checks your Meta account with you and shows you what to do next.
Not ready to talk? Run a free check
01How do I add Facebook Pixel PageView through Shopify GTM?
Load the container in the test theme, add one PageView tag and compare the page visit with Meta. Use a development store and test container while you work.
02Does a Shopify theme pixel also cover checkout?
This guide verifies storefront pages only. Use the Shopify Purchase guide for checkout Customer events; Shopify has retired checkout.liquid and Additional Scripts on Thank you and Order status pagesshopify.dev.
03Should I replace the Shopify Meta app with GTM?
Only choose this route when you need to maintain a custom storefront setup. Inspect the connected Meta pixel and data-sharing settingshelp.shopify.com first. Do not disconnect a working app simply because a second GTM tag now fires.
04How do I configure and test the PageView tag?
Use one container installation and one PageView sender in the test setup.
1. Install the container in a test theme
Reuse an existing theme installation if it is already correct.
- Use a development store and a duplicate theme.
- From the test GTM container, copy both snippets.
- Place the script high in the head, following Google's installation placementsupport.google.com.
- Place the noscript block after the opening body tag.
Done when GTM Preview connects to the intended container on the test storefront.
2. Check the storefront base pixel
- Create a tag from the Meta Pixel templategithub.com with your pixel ID.
- Choose standard event PageView.
- Fire it on All Pages, subject to the store's consent controls.
- Save the tag.
Keep this separate from the product or collection tag.
Done when the base tag is saved against the intended pixel and PageView appears in your test session.
3. Use Custom HTML only if you maintain that route
This is an alternative to the template tag.
- Paste the base code supplied for your pixel into a GTM Custom HTML tag with All Pages.
- Apply your consent controls.
- Keep only one of these alternatives active.
Done when the saved code or template has the intended pixel ID and only one PageView sender is configured.
4. Test storefront visits
- Use GTM Previewsupport.google.com to open the home page and a product page in the test theme.
- Inspect the tag timeline.
- Compare PageView in the intended pixel's Meta Test Events.
- Repeat the store's consent choices.
Done when the allowed visits match the intended PageView events and any extra firing is explained.
05Why am I seeing duplicate Shopify PageView events?
Inspect the senders before changing the event name. The theme, app and GTM configuration need a clear owner for the same page event.
- Template plus Custom HTML: both alternatives can send PageView. Keep the selected implementation only.
- Replacing the app without checking its other events: the change extends beyond PageView. Inventory its checkout and server events before a migration.
- Treating a helper badge as a receipt: check the matching page event inside Meta, not only local tag execution.
06What should I test after Shopify PageView?
Continue with Shopify ViewContent for product pages. Keep the PageView baseline unchanged while you add its separate product trigger.
07What changed in this guide
- 25 October 2026: Scoped the theme method to storefront pages and linked the Customer events checkout replacement. Removed blanket app-disable and live-publish instructions; added installation and destination checks.
Sources
6 sources
- 1Google's installation guidesupport.google.com↩
- 2Shopify has retired checkout.liquid and Additional Scripts on Thank you and Order status pagesshopify.dev↩
- 3the connected Meta pixel and data-sharing settingshelp.shopify.com↩
- 4Shopify documents pixel and Conversions API behavior by data-sharing levelhelp.shopify.com↩
- 5Meta Pixel templategithub.com↩
- 6GTM Previewsupport.google.com↩


