How to set up Facebook CAPI in WordPress and WooCommerce
Facebook CAPI (Meta Conversions API) connects your website to Meta at server level. In WordPress and WooCommerce you can set it up with the WooAcademy Solutions plugin, together with the Meta Pixel, a cookie banner and Consent Mode v2. In this guide I will show you the setup and the checks without which I would not consider tracking finished.
Guide updated on 24 November 2026 for WooAcademy Solutions 3.x and Meta’s 2026 changes. Item names in Meta Events Manager may differ depending on the language and account. The older screenshots below are for orientation; the steps described are what counts.
What is new in 2026
In April 2026 Meta announced two changes that affect anyone measuring Facebook and Instagram ads:
- One-click Conversions API (Meta-enabled Conversions API). It can be switched on in Events Manager without a developer and at no cost. According to Meta’s documentation, it mirrors the events and parameters the Meta Pixel already sends and deduplicates them automatically. It covers web events only (PPC Land, 27 April 2026).
- AI-enhanced Meta Pixel. The pixel can automatically add more product and page information to events. Existing users were to receive a notice and 30 days to review the feature before it is enabled, and it can be switched off (PPC Land, 15 April 2026).
- Value and currency checks. Since September 2026, Meta’s data quality diagnostics also show value and currency issues for individual events (Meta, Dataset Quality API).
Does this mean you no longer need a plugin? For a simple website with one pixel and standard events, the one-click CAPI can be a good start. But because it copies what the pixel sends from the browser, it does not help where the pixel never sends the event: for example when the customer does not return from the payment gateway to the thank-you page, when the pixel is blocked, or when you want Purchase only after the order is paid. It also does not handle the cookie banner, consent records or data for GA4. In WooCommerce, WooAcademy Solutions takes care of exactly these things, which is why I go through them step by step below.
| Meta’s one-click CAPI | WooAcademy Solutions | |
|---|---|---|
| Source of events | Copy of the browser pixel events | Browser pixel plus events sent directly from the WooCommerce server |
| Purchase without return from the payment gateway | No, unless the pixel sends it | Yes, on a supported order status change with stored consent |
| Purchase only after payment (bank transfer, cash on delivery) | Depends on when the pixel sends it | You choose: when the order is created or when it is paid |
| Purchase value | As sent by the pixel | Order total, or products after discounts excluding VAT and shipping |
| Cookie banner, Consent Mode v2, consent records | No | Yes |
| Contact Form 7 leads after successful submission | Only if the pixel sends them | Yes, from the server with a shared event ID |
| GA4 e-commerce dataLayer for GTM | No | Yes |
| Alert when tracking stops working | Diagnostics in Events Manager | Measurement tab and optional e-mail alert |
Do not run the one-click CAPI and the CAPI from our plugin for the same pixel at the same time until you have verified deduplication in Events Manager. The pixel should have one owner.
What is the Facebook Conversions API
In this article I will only briefly outline Facebook CAPI, because it focuses mainly on how to set up Facebook CAPI quickly and easily with the plugin we developed for this purpose at WooAcademy.
The Meta Pixel sends events from the browser. The Conversions API sends them from the server. The two paths can complement each other: for a purchase, for example, the server can confirm the event based on the WooCommerce order. Server-side tracking still needs correct data, event settings and respect for the visitor’s consent.
Do not remove the Facebook pixel after setting up Facebook CAPI. Facebook itself recommends running the pixel and CAPI side by side because they complement each other. What matters is that Meta does not count the same event from the browser and the server twice. That is what deduplication is for.
If you do not have the pixel on your site yet, start with the guide on setting up the Facebook pixel and conversions.
Why it is worth having the Facebook Conversions API
When some browser events are not delivered, the ad system may lack the information it needs to evaluate and optimise campaigns. A well configured CAPI can improve event delivery and attribution. Switching on the plugin alone, however, does not guarantee cheaper orders or a specific percentage of sales growth.
- E-shop owners get a better basis for comparing orders with ad results.
- Social ads specialists can check purchases, value, currency, diagnostics and deduplication.
- Websites with a contact form can measure successful submissions of a supported form. A Lead event does not yet mean a qualified enquiry or a closed deal.
Please note that if a visitor does not accept marketing cookies, in this setup we do not send advertising events, not even through Facebook CAPI. If you are not sure your cookies are set up correctly, you can test it directly in Events Manager: run a test before and after accepting cookies.
CAPI is not a way to get around refused consent or to recover every missing conversion. Consent Mode v2 for Google does not replace the consent setup for the Meta Pixel and CAPI either.
What changes in your campaigns when tracking is right
Meta Ads learns from the events it receives from you. If they are incomplete or duplicated, the algorithm optimises for a distorted picture. Once you fix tracking, this is what mainly changes:
- Purchase-optimised campaigns have something to learn from. Meta sees more real purchases with value, so it is better at finding people who buy, not just click.
- You decide based on more truthful numbers. When Events Manager shows purchases that match WooCommerce orders, you know which campaign to scale and which to switch off. With duplicated purchases ROAS looks better than it is, and you add budget where you should not.
- Retargeting and audiences are more accurate. Audiences of product viewers, cart users and customers are filled from events. Without them retargeting shrinks and lookalike audiences learn from a weaker sample.
- Purchase value makes sense. If you send the amount without VAT and shipping, you compare ads with what you actually keep, not with turnover.
- Leads are not counted twice or from a button click. For services, the campaign then optimises for submitted forms.
- You spot errors sooner. When purchases stop coming in, you get an alert right away, not at the monthly report when the budget is already spent.
The biggest problems e-shops and websites have, and how we solve them
When we audit and set up tracking at WooAcademy, the same mistakes keep coming back. Here is what they do to campaigns and how we fix them with the plugin or as a service:
| Problem | What it does to campaigns | How we solve it |
|---|---|---|
| Meta shows fewer purchases than WooCommerce, the customer does not return from the payment gateway | The campaign learns from fewer purchases and ROAS looks worse than it is | Server-side Purchase on a supported order status change, if advertising consent is stored |
| The same purchase is counted twice, or several plugins send events at once | Inflated results, and budget goes to campaigns that do not actually sell | Shared event ID for pixel and CAPI, one pixel owner, and checking and switching off old implementations during migration |
| With bank transfer and cash on delivery, Purchase is reported right when the order is placed | Meta also learns from orders that are never paid | Choice whether Purchase is reported when the order is created or only when it is paid |
| Purchase value includes VAT and shipping, or has no currency | Value optimisation and ROAS are calculated from the wrong amounts | Value options: order total, or products after discounts excluding VAT and shipping, with currency |
| The pixel fires before cookie consent | Risk during an inspection and visitor distrust | Pixel and CAPI start only after advertising cookie consent, and consent is also stored with the order |
| Leads are measured from a button click, not from form submission | A services campaign optimises for clicks without an enquiry | Lead after a successful Contact Form 7 submission on the server, with type and optional value |
| Low Event Match Quality | Meta cannot match the event to the person who saw the ad | Securely hashed contact details, external_id and the fbp and fbc identifiers according to consent |
| Tracking stops working and nobody notices | Weeks of campaigns running blind | Measurement tab with period comparison and an optional e-mail alert |
| Cache and delayed JavaScript (WP Rocket, LiteSpeed) fire the pixel late | Missing PageView and events from people who only read | The plugin excludes its own scripts from delaying, and server events bypass the cache |
Michaela shows what duplication looks like in practice in a short video below: for a single cart, hundreds of server events appeared in Events Manager. Exactly this kind of data confuses a campaign.
What you need before setting it up
- Administrator access to WordPress and a website backup before replacing the plugin.
- Access to the correct data source in Meta Events Manager and permission to create an access token.
- The Meta Pixel ID, or the dataset ID matching that pixel, and an access token for CAPI.
- The current WooAcademy Solutions package and a licence for your domain.
- An overview of where the Meta Pixel is already loaded from: another plugin, Google Tag Manager, theme code, a partner integration or the one-click CAPI in Events Manager.
That is why we developed a plugin at WooAcademy that simplifies the whole process. With WooAcademy Solutions you can set up Facebook CAPI whether you are a social media specialist or a business owner who manages your own social media.
The current edition combines the Meta Pixel and CAPI with a cookie banner, Consent Mode v2, consent records and a GA4 dataLayer for WooCommerce. You no longer choose the old separate CAPI or GDPR add-on shown in the screenshots of the older version. Licence details, the current price and the optional setup service are on the WooAcademy Solutions plugin page. An overview of all GDPR and CAPI features is also on the GDPR and CAPI plugin for WordPress page.
1. Install WooAcademy Solutions
Log in to your website; you need administrator access. On the left, find Plugins, click Add New and then Upload Plugin.
- Click Choose File and select the purchased plugin ZIP file.
- Click Install Now and then activate the plugin.
- In the menu, open WooAcademy Solutions and activate the licence for the domain.
- When migrating from the old edition, check the retained settings and the active plugin. Do not let the old and new editions send the same events at the same time.

2. Generate an access token in Meta Events Manager
You generate the access token in Events Manager: open Meta Events Manager.
- Select the data source assigned to your website. Make sure you are working with the correct pixel or dataset.
- Open Settings and the Conversions API section.
- For a direct setup, look for Generate access token or its equivalent in your account language. Availability also depends on your permissions. Do not use Meta’s one-click option (Set up with Meta) for this setup.
- You will paste the generated token into the plugin settings. Do not publish it in an article, a screenshot or an ordinary e-mail.

3. Enter the Pixel ID and CAPI token in the plugin
Log in to your website and open the Facebook Tracking section in the WooAcademy Solutions settings.
- In the Facebook Pixel ID field, enter the ID of the correct data source. Do not confuse it with the ad account ID.
- In Facebook Pixel Browser Tracking, switch on Enable Browser Tracking if this plugin should run the pixel.
- In Facebook Conversion API, tick Enable Facebook CAPI.
- In the Authorization Token field, paste the token you generated.
- Check the events you want to track and save the settings.
The pixel should have one owner. If you are moving it to our plugin, switch off the previous implementation only after checking what it sends. Do not delete the whole GTM container, which may also contain Google Ads, GA4 and other tags you need.
In WooCommerce, check the Purchase event in particular: order value, currency, product identifiers and the chosen moment of sending. Card payment, cash on delivery and bank transfer can follow different flows and order statuses.
- When to send Purchase: if you also sell with bank transfer or cash on delivery, consider reporting the purchase only when it is paid. A created order is not necessarily a paid sale.
- Purchase value: choose the order total, or products after discounts excluding VAT and shipping. Then use the same approach when evaluating ROAS.
- Product IDs: if you run catalogue campaigns, the IDs in events must match the catalogue. For the feed we have a separate WooCommerce product feed.
4. Set up the cookie banner and consent
If you use the WooAcademy Solutions cookie banner, set the consent categories, texts, policy links and tracking behaviour. If you already use another consent solution on the site, check how the two are connected first. Two independent cookie banners can lead to conflicts.
Test three situations: before the visitor decides, after refusal and after accepting marketing consent. Also try changing the decision later. It is not enough for the banner to look right; what matters is what the website actually sends for each choice.
If you also want to use Google Ads and GA4, the plugin provides Consent Mode v2 and a WooCommerce dataLayer. The dataLayer alone, however, does not configure all tags and conversions in GTM or Google Ads. If in doubt, a GA4 and Google Tag Manager audit (in Slovak) will help.
If Meta has switched on the AI feature that adds product and page information to events on your pixel, check in Events Manager what data is being sent and limit or switch it off if needed. Responsibility for what data the website sends to Meta remains with the website operator.
5. Test Browser, Server and deduplication
Open Events Manager again, select the correct data source and go to Test Events. Copy the test code for CAPI testing and paste it into the Facebook TEST Event Code field in the plugin. Save the settings.
After saving, WooAcademy Solutions uses a 30-minute test window. After it expires, server events are sent as regular events and may not appear in Test Events. This is not a general rule for how long Meta test codes are valid. When you finish testing, clear the field and save the settings.

Log out of the website or use a separate test window so that administrator exceptions do not affect the result. In Events Manager you can use Test browser events and Open Website. For a controlled test, temporarily disable ad blocking in the test browser.
- First visit the site without marketing consent and check that no advertising events are sent.
- Accept marketing consent and open a page. With the event enabled, expect PageView.
- In WooCommerce, open a product, add it to the cart and go to checkout. Watch the corresponding enabled events.
- Verify Purchase with a controlled test order. Do not make real payments just for the test; use the payment gateway’s test mode or a suitable test environment.
- For the same event, check delivery from the browser and the server, the value, the currency and deduplication.
The Browser label on an event means it is collected through the Facebook pixel; the Server label means it is collected through Facebook CAPI. Note that server records can be delayed by a few seconds, and so can deduplication.
Meta matches corresponding events by the same event name and identifier: event_name and event_id, which is passed as eventID on the pixel side. Two deliveries of the same order should therefore not create two purchases. Details are in Meta’s official documentation on deduplication.
After testing: what to watch in Events Manager in the following days
- Event Match Quality for Purchase and Lead. A lower score for events before the purchase is normal because the visitor has not entered an e-mail or phone number yet.
- Deduplication for events sent from both the browser and the server.
- Diagnostics, including value and currency warnings.
- Weekly purchase count compared with WooCommerce for the same period. A perfect match is not the goal; an explainable difference is.
Possible complications
Only Server events appear, no Browser events
Check that Browser Tracking is switched on, the Pixel ID is correct and marketing consent has been given. The browser pixel may be blocked by an extension or by browser protection. After setting up, log out of the website and repeat the test. Do not switch off protections for all visitors just for a test.
Browser appears in testing, but Server does not
Check that CAPI is enabled, the access token, the correct data source and the active test window in the plugin. Check Meta’s diagnostics and whether your hosting restricts outgoing requests. Clearing the cache can help load the current settings, but it will not fix an invalid token.
No events appear at all
You may have ad blockers running, you have not accepted marketing cookies, or you are testing the wrong data source. With refused consent, no advertising events is the expected result. Then repeat the test in a controlled way with consent given.
Events are not deduplicated or purchases are counted twice
Check whether the pixel is fired at the same time through theme code, GTM and another plugin. Our plugin creates the parameters needed to deduplicate the pixel and CAPI. If you combine different solutions, they must send the same identifier for the same event. Also check that Purchase is not repeated when the thank-you page is reloaded.
Meta’s one-click CAPI is also switched on in Events Manager
If you have enabled the Meta-enabled Conversions API and the CAPI in our plugin at the same time, Meta receives server events from two sources. Choose one solution and switch the other off. For WooCommerce we recommend the plugin’s CAPI because it can also send the purchase based on the order status.
The number of purchases in Meta does not match WooCommerce or GA4
These systems use different attribution rules, time zones and consent coverage. Compare the same period and also check failed or cancelled orders, currencies and duplicate events. A difference on its own does not prove a plugin error.
The plugin does not work or there is a conflict
Check the requirements of the current version, the licence and any WordPress errors. Some changes may have been made directly in the website’s code, which can cause conflicts affecting the plugin. Try switching themes or disabling other plugins on a test copy of the website first.
Videos on tracking and campaigns by Michaela Gallee
Short videos by Michaela Gallee, who handles Facebook and Instagram advertising at WooAcademy. The videos are in Slovak.
Would you rather check the setup with us
If you use a CMS other than WordPress or have a custom-built website and would also like Facebook CAPI set up, feel free to contact us.
For WordPress and WooCommerce you will find WooAcademy Solutions and the professional setup option on the plugin page. If you need to check the whole flow from ad to order, a tracking audit will help. It can be followed by Facebook and Instagram campaign management. What social media management costs and how it works is covered in social media management: cost and process.
If your campaigns are already running and you want to know what to do with them once tracking is fixed, you can book a consultation with our Facebook specialist, order a social ads audit or learn it at the Social Ads Mastery training (services in Slovak). How to build Meta and Google Ads audiences from purchase data is explained in WooCommerce customer audiences for Meta and Google Ads.
Before launching ads I would always check three things: we send the right events, we do not send them twice and we respect the visitor’s consent decision. Only then does it make sense to evaluate what tracking has brought to the campaigns.
Frequently asked questions
Is Meta’s one-click Conversions API enough for me?
For a simple website with one pixel and standard events it may be enough. It copies the events the browser pixel sends, though, so it will not add a purchase the pixel did not send, and it does not handle the cookie banner or consent records. For a WooCommerce shop with payment gateways, bank transfer or cash on delivery, we recommend CAPI connected directly to orders.
Do I have to switch off the Facebook pixel after setting up CAPI?
No. The pixel and CAPI should run together, and Meta matches them by the same event name and event ID. You only need to switch off duplicate implementations of the same pixel in other plugins, the theme or GTM.
Does CAPI send events without cookie consent?
Not with WooAcademy Solutions. Both the browser pixel and the Conversions API start only after consent to advertising cookies, and for an order the consent is stored with the order.
Why does Meta show fewer purchases than WooCommerce?
Meta only sees purchases from people who gave consent, uses its own attribution, and some browser events are not delivered. The plugin’s CAPI adds purchases where the customer did not return to the thank-you page. A perfect match is not realistic; the difference should be explainable.
What purchase value should I send to Meta?
If you want to evaluate ads by what you actually keep, send products after discounts excluding VAT and shipping. The main thing is to use the same approach in Meta and in your own reporting.
Will CAPI improve my campaign results?
Better and more complete data gives campaigns a better basis for optimisation and gives you more accurate budget decisions. A specific reduction in cost per purchase cannot be promised; it depends on the offer, creative, budget and consent rate.