WooCommerce4 min read3 views

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.

Watch on YouTube

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.

Ask an assistant

ChatGPTClaudePerplexity

FREE AUDIT

NO LOGIN

Check what Meta and Google can count on your site

  1. Your site
  2. Crisper
  3. Meta and Google count it

Enter your website to see how good its tracking is, and whether Meta is likely restricting it.

Run a free audit

How 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.

Does 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.

How 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.

  1. On a staging WooCommerce store, install and activate GTM4WP by Thomas Geigerwordpress.org.
  2. In its settings, enter the intended test container ID.
  3. Enable container output.
  4. 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.

  1. Create a separate base tag from the template in Meta's GTM repositorygithub.com.
  2. Enter your intended pixel ID.
  3. Set the standard event to PageView.
  4. Set All Pages as its trigger.
  5. 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.

  1. Use the base code supplied for your pixel in Events Manager instead of the template tag.
  2. Attach All Pages.
  3. Apply your consent controls.

Done when the template and Custom HTML alternatives are not both active, and the saved ID matches your intended pixel.

How 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

  1. Start GTM Preview.
  2. Visit each test page.
  3. Inspect the PageView tag.
  4. Open the intended pixel in Events Manager > Test Events.
  5. Repeat the visits.
  6. Exercise the consent flow as part of the test.

Done when each allowed test visit has the expected PageView and no unexplained duplicate sender.

Can 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.

DownloadLocked
Download the tutorial GTM container
  • 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.

We email you a copy. We may follow up on WhatsApp.

Optional. Review the imported configuration

  1. Choose Admin > Import Container.
  2. Select the file.
  3. Select a test workspace.
  4. Review the Merge preview.
  5. Replace the imported pixel ID before running any tag.
  6. Check that the export's consent settings match your test plan.
  7. 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.

When 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.

What 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.

What 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.

Sources

5 sources
  1. 1Google's Preview mode↩
  2. 2GTM4WP by Thomas Geiger↩
  3. 3Google's head and body snippet instructions↩
  4. 4Meta's GTM repository↩
  5. 5Google's import workflow↩