Home/Insights/Tracking & analytics

Meta Pixel and Conversions API on WooCommerce: setup and checks

MNBy Madlin Nabil, Senior WordPress Developer & MarTech Specialist··3 min read

Meta ads learn from the events your store sends. If the Pixel misses purchases, or counts them twice, the algorithm optimises for the wrong people and your cost per sale goes up. Here is how I set up and check the Meta Pixel on WooCommerce.

In short
  • Send the standard events: PageView, ViewContent, AddToCart, InitiateCheckout, Purchase.
  • Every purchase needs value, currency and content_ids that match your catalog.
  • Use the Conversions API next to the browser Pixel, with the same event_id so Meta can remove duplicates.
  • Check Events Manager after every theme, checkout or plugin change.

Option 1: Pixel through Google Tag Manager

If your store already has a clean GTM data layer, add the Meta base code as a tag on all pages, then one tag per event using the same triggers as GA4. Map the values from the data layer: product IDs, price and currency. I used this setup for a sports nutrition brand, and checked the events together with the brand’s agency before they ran campaigns on them.

Option 2: The official Facebook for WooCommerce plugin

The plugin sends browser events and server events (Conversions API), and syncs the product catalog. It’s a good option if you also need catalog ads. The risk is running it and a GTM Pixel at the same time, which sends every event twice.

Make sure the IDs match your catalog

For dynamic product ads, the content_ids sent with each event must be the same IDs as in the catalog (usually the SKU or the WooCommerce product ID). If they don’t match, Meta can’t connect a visit to a product, and retargeting shows the wrong items or nothing.

Conversions API and deduplication

Browsers block more tracking every year. The Conversions API sends events from the server, so Meta still receives purchases when the browser Pixel is blocked. To avoid counting a sale twice, the browser event and the server event must share the same event_id (the order ID works well for purchases). In Events Manager, check that the deduplication status shows both sources.

My checklist after setup

  1. Install the Meta Pixel Helper browser extension and walk through product → cart → checkout → order.
  2. Each step shows one event, not two.
  3. In Events Manager → Test Events, the purchase shows the right value and currency.
  4. The Event Match Quality score is reasonable (email and phone are sent hashed on purchase, if your privacy policy allows it).
  5. Write down which plugin or tag sends each event, so the next developer doesn’t add a second one.

Common problems

  • Purchases counted twice because the plugin and a GTM tag both fire.
  • Purchase value of zero because the variable reads the wrong data layer key.
  • No purchases from card payments because customers don’t return to the thank-you page after paying on the gateway’s page.
  • Events stop after a redesign because the new theme removed the hooks the plugin used.

FAQ

Is the browser Pixel enough without the Conversions API?

It works, but you lose part of your conversions to ad blockers and browser privacy features. For stores spending on Meta ads every month, adding the Conversions API is worth it.

Which event should I optimise my campaigns for?

Purchase, once you have enough purchases per week. New stores sometimes start with AddToCart or InitiateCheckout and move to Purchase later.

How do I know if the Pixel is sending duplicates?

Use the Pixel Helper: if an event appears twice on one action, look for two sources. In Events Manager, a purchase count much higher than your real orders is the other sign.

Related insights

See all 23 articles →

Need this for your store?

I build and fix WordPress and WooCommerce sites with marketing in mind: tracking, speed, checkout and integrations.