- Home
- Blog
- WooCommerce
- WooCommerce Facebook Pixel PageView with GTM
WooCommerce Facebook Pixel PageView with GTM
Install Facebook Pixel PageView on WooCommerce with GTM, check the base tag and compare page visits in Meta before adding ecommerce events.
Shahzada Ali Hassan, founder of Crisperchecked against 5 sources
Tools
The short answer
Set up WooCommerce Facebook Pixel PageView by loading GTM once and adding a Meta Pixel tag with the All Pages trigger. Google's Preview modesupport.google.com lets you test that tag before publication. This guide is for store owners and implementers checking the base pixel before adding cart, checkout or purchase events.
- Meta event name:
PageView. - If PageView already arrives from another integration, investigate before adding another sender.
- Use a staging store and a test container.
- Steps and settings checked against linked documentation and tutorial files on 25 October 2026.
FREE AUDIT
NO LOGINCheck what Meta and Google can count on your site
- Your site
Crisper- Meta and Google count it
Enter your website to see how good its tracking is, and whether Meta is likely restricting it.
On this page 8 sections
- How do I add Facebook Pixel to WooCommerce with GTM?
- Does PageView also track WooCommerce purchases?
- How do I install the GTM container and PageView tag?
- How do I verify that Meta receives PageView?
- Can I import the PageView container?
- When is another PageView tag the wrong fix?
- What should I configure after PageView?
- What changed in this guide
01How do I add Facebook Pixel to WooCommerce with GTM?
Install the GTM container, configure the PageView tag and compare a page visit with the event received by Meta. Have WordPress access, a test GTM web container and the intended pixel ID ready.
02Does PageView also track WooCommerce purchases?
No. This setup checks the base page event. Use the WooCommerce Purchase guide for order data and its separate purchase trigger.
03How do I install the GTM container and PageView tag?
Choose one container installation method, then configure one PageView sender. The plugin route below avoids editing the theme directly.
1. Connect the test store to GTM
Use one installation method.
- On a staging WooCommerce store, install and activate GTM4WP by Thomas Geigerwordpress.org.
- In its settings, enter the intended test container ID.
- Enable container output.
- Start GTM Previewsupport.google.com and connect the staging URL.
For a manual installation, follow Google's head and body snippet instructionssupport.google.com in a test theme instead.
Done when Tag Assistant identifies that container and shows the page events. For a manual installation, Preview connects to the intended container and the source contains the intended head and body snippets once.
2. Check the PageView tag
Do not add a second base tag if one already sends PageView.
- Create a separate base tag from the template in Meta's GTM repositorygithub.com.
- Enter your intended pixel ID.
- Set the standard event to PageView.
- Set All Pages as its trigger.
- Apply the store's consent controls before testing.
Done when the preview session shows the intended PageView tag and you can identify the same pixel in Events Manager.
3. Use Custom HTML only as an alternative
Follow this step only if you maintain a Custom HTML installation.
- Use the base code supplied for your pixel in Events Manager instead of the template tag.
- Attach All Pages.
- Apply your consent controls.
Done when the template and Custom HTML alternatives are not both active, and the saved ID matches your intended pixel.
04How do I verify that Meta receives PageView?
Compare visits to the home page and a product page with PageView in the intended Meta pixel.
4. Check the page event
- Start GTM Preview.
- Visit each test page.
- Inspect the PageView tag.
- Open the intended pixel in Events Manager > Test Events.
- Repeat the visits.
- Exercise the consent flow as part of the test.
Done when each allowed test visit has the expected PageView and no unexplained duplicate sender.
05Can I import the PageView container?
Use the existing export as a reference or import it into a separate test container. Google's import workflowsupport.google.com lets you preview changes before confirming them.
- Download the file
- Emailed to you
Unlock this file
Three details, and the full file is yours
No account needed. Unlock once and every snippet on the blog opens.
Optional. Review the imported configuration
- Choose Admin > Import Container.
- Select the file.
- Select a test workspace.
- Review the Merge preview.
- Replace the imported pixel ID before running any tag.
- Check that the export's consent settings match your test plan.
- Check that its included base tag matches your test plan.
Done when the import preview contains only the intended changes, the pixel ID is yours and the tags remain a reviewed test draft.
06When is another PageView tag the wrong fix?
A second tag is the wrong starting point when the store already has a working pixel integration. First identify which installation is responsible for the event you see.
- Two container installations: tags may execute through both. Keep either the plugin or the manual installation for this test.
- Wrong pixel ID: you inspect one pixel while sending to another. Compare the saved tag with Events Manager.
- Testing only GTM: a fired tag is not the destination check. Compare the page visit with Meta Test Events as well.
07What should I configure after PageView?
Continue with Add to Cart and Purchase using the guides above. Keep the PageView tag separate so changes to a conversion trigger do not change your base page tracking.
08What changed in this guide
- 25 October 2026: Corrected the GTM4WP attribution and manual container installation guidance. Added separate execution and receipt checks and replaced live-publish instructions with test-container review.

