Short answer
To set up Meta Pixel and Conversions API on WooCommerce, create a dataset in Events Manager, add the Pixel ID and an access token to one tracking plugin, connect your cookie banner, and send purchases from both browser and server with the same event ID. Then test with Meta’s Test Events before spending on ads.
What each one does
| Meta Pixel | Conversions API | |
|---|---|---|
| Where it runs | The visitor's browser | Your server |
| Good at | Page views, product views, add to cart | Purchases the browser misses |
| Weak when | Ad blockers, browser limits, closed tabs | The server setup or token is wrong |
| Needs consent where the law requires it | Yes | Yes |
Use both, with the same event ID, so Meta counts each purchase once.
What you need
- A WooCommerce shop on a recent WordPress version
- A Meta Business account with a dataset (Pixel) in Events Manager
- Permission to create a Conversions API access token
- A cookie banner, if you have visitors in places that require consent
- One tracking tool. Two plugins usually mean double counting
Step 1: clean up first
- Check which pixels are already on the site.
- List every plugin, theme setting, code snippet and Tag Manager container that adds Meta code.
- Decide which one stays, and remove the others.
Step 2: get the Pixel ID and token
- In Meta Events Manager, choose your dataset and copy the Pixel ID.
- In the dataset's Settings, find Conversions API and generate an access token.
- Treat the token like a password. Do not email it or paste it in a page builder.
Meta changes menu names from time to time. Search Meta's help if a name differs.
Step 3: add both to your plugin
- Paste the Pixel ID and turn on the Pixel.
- Paste the access token and turn on server purchases.
- Choose which order statuses count as a purchase. Processing and Completed suit most shops; count bank transfers only when they are paid.
- Check that the value comes from the order, with the right currency.
Several plugins can do this, and some charge for server events. Our own plugin, TagBuni, is free on WordPress.org, sends nothing before consent and has no paid version.
Step 4: connect consent
- Connect the cookie banner to the tracking plugin, for example through the WP Consent API.
- Open a private window and decline. No Meta request should appear.
- Open another and accept. Page views should appear.
Server events are not a way around consent. If a visitor declined, the server should not send the purchase either.
Step 5: test before you spend
- In Events Manager, open Test events and copy the test code.
- Put it in your plugin and place a test order.
- Check that Purchase arrives from browser and server, with the same event ID, value and currency.
- Remove the test code.
- A few days later, compare orders in WooCommerce with purchases in Events Manager.
Why the numbers never match exactly
- People decline consent or use blockers
- Meta counts a sale on the day of the ad, and your shop on the day of the order
- Meta cannot match every buyer to an account
- Refunds and cancelled orders are handled differently
A small gap is normal. Look for the cause when the gap is large or changes suddenly.
Common problems
| Symptom | Likely cause |
|---|---|
| Purchases about double | Two tools, or different event IDs |
| No server events | Wrong token, blocked connection, or no consent recorded |
| Server events arrive late | WordPress cron is not running; set up a real cron job |
| Purchase without value | Event sent from a button or a cached page |
| Nothing at all while testing | You are logged in as an administrator, or on a staging site |
Get help
Our tracking and analytics service audits, sets up and tests this for WooCommerce shops, with a written handover.
Still stuck? Go through 9 things to check when the Meta Pixel is not working on WooCommerce.


