Skip to content
itsorted.online
Ads & Marketing guide

Meta Pixel and Conversions API on a WordPress or Custom Website

The Meta Pixel tracks what visitors do on your website so Facebook and Instagram ads can be measured and optimised. On its own it misses events when browsers or ad blockers stop it, so Meta recommends adding the Conversions API, which sends the same events from a server. This guide covers websites that are not on Shopify: WordPress, WooCommerce and custom-built sites. It explains which events to send, how to avoid counting them twice, the three ways to add the Conversions API, how a cookie consent banner fits in, and how to check it all in Events Manager.

By IT Sorted teamReviewed 7 min readHow we write guides
in

Key takeaways

  • The Meta Pixel runs in the browser; the Conversions API sends events from a server, so fewer are lost.
  • Meta now offers one-click Conversions API setup in Events Manager with no code or setup fees.
  • Deduplicate by sending the same event name and event ID from the Pixel and the server.
  • Meta's Pixel has consent commands (revoke and grant) to hold events until a visitor agrees.
  • Use Events Manager's Test Events to confirm each event arrives once, with the right value.
In this guide · 8 sections
  1. 01Pixel vs Conversions API: what each does
  2. 02Which standard events to send
  3. 03Three ways to add the Conversions API
  4. 04Deduplication: stop counting every conversion twice
  5. 05Cookie consent banners and the Pixel
  6. 06Set it up and test it, step by step
  7. 07Do it yourself or get help?
  8. 08Frequently asked questions

Short answer

Install the Meta Pixel with standard events such as Lead and Purchase, then add the Conversions API: one click in Events Manager, the self-hosted Conversions API Gateway, Meta's WordPress plugin, or server code. Send the same event ID from browser and server so Meta deduplicates, and test it.

Pixel vs Conversions API: what each does

The Meta Pixel is a JavaScript snippet that fires events from the visitor's browser. The Conversions API (CAPI) sends events from your server or a hosted service directly to Meta. Meta's Conversions API documentation describes it as a connection from your server, website platform or CRM that helps optimise ad targeting and measure results.

You normally run both together. If the browser event is blocked, the server event still arrives; if both arrive, Meta keeps one. If your site runs on Shopify, follow our Shopify Pixel and Conversions API guide instead, since Shopify handles most of this in its settings.

Which standard events to send

Meta's Pixel reference lists standard events with set names. Use these rather than custom names wherever they fit, because Meta's ad optimisation understands them.

EventWhen to fire itUseful parameters
PageViewEvery page load (fired by the base code)None
ViewContentProduct, service or key landing page viewedcontent_ids, value, currency
LeadEnquiry or quote form submitted successfullyvalue, currency (optional)
AddToCartProduct added to cartcontent_ids, contents, value, currency
InitiateCheckoutCheckout startedvalue, currency, num_items
PurchaseOrder completed (thank-you page)value, currency, contents, num_items
ScheduleAppointment bookedNone required

Fire Lead and Purchase only on success, not on button click, or failed submissions will be counted. Send value in SGD with currency "SGD" so reporting and value-based bidding are accurate.

Three ways to add the Conversions API

Which route suits depends on your site and who maintains it.

RouteHow it worksGood forWatch out for
One-click in Events ManagerMeta's Conversions API docs say you can set up CAPI for website events in one click, with no code, configuration or setup feesMost small business sites with an existing PixelLess control over which data is sent
Conversions API GatewayA self-serve server Meta provisions in your own AWS or Google Cloud accountSeveral domains or Pixels; you want to own the serverCloud hosting fees; someone must keep the account healthy
WordPress pluginMeta's official Meta Pixel for WordPress plugin installs the Pixel with Conversions API supportWordPress and WooCommerce sitesPlugin updates and conflicts with other tracking plugins
Server code (direct)Your developer sends events from the backend with the Conversions APICustom web apps and booking systemsDeveloper time; storing the access token securely

Meta's Conversions API Gateway page says the only cost of the Gateway is the associated cloud resource or partner fees, and that it updates itself with admin consent. For WordPress, the Meta Pixel for WordPress plugin supports Lead, ViewContent, AddToCart, InitiateCheckout and Purchase events and the Conversions API.

Deduplication: stop counting every conversion twice

When the Pixel and the server both send a Purchase, Meta needs to know they are the same purchase. Meta's deduplication guide gives two methods.

  • Event ID (recommended): the Pixel's `eventID` must match the Conversions API's `event_id`, and the event names must match. In the Pixel, eventID is the fourth argument of the fbq track call.
  • fbp or external ID: send the same event name with the `fbp` cookie value and/or your own `external_id` from both sides. Meta notes this generally works only when the browser event arrives first, and server events are not discarded if no browser event arrived in the past 48 hours.

Set it up and test it, step by step

This order works for WordPress and custom sites alike.

  1. Create or find your Pixel (dataset) in Events Manager

    Use the Meta Business portfolio that owns your ad account, not a personal profile, so access does not depend on one person.

  2. Verify your domain

    In Business Settings, verify the website domain by DNS TXT record, HTML file or meta tag.

  3. Install the Pixel base code and events

    Use the WordPress plugin, Google Tag Manager or your site's code. Fire Lead and Purchase on success pages only.

  4. Add the Conversions API

    Try one-click setup in Events Manager first. Use the Gateway or server code if you need more control.

  5. Pass the same event ID from both sides

    Use the order or submission ID, so each conversion is deduplicated.

  6. Test in Events Manager

    Open Test Events, browse your site, submit a test form or order, and check each event arrives once from both browser and server.

  7. Review event match quality after a week

    Events Manager scores how well your server events match people. Sending hashed email or phone where you have consent improves it.

Pair this with GA4 so you can compare results outside Meta; our GA4 setup checklist covers that side.

Do it yourself or get help?

On WordPress, Meta's plugin plus one-click Conversions API is a reasonable DIY job for someone comfortable in Events Manager. Custom sites, booking systems, multiple domains or a consent banner that must control both browser and server events usually need a developer.

Tracking checklist

IT Sorted is a Singapore-based team of developers with over 10 years of experience. Our Meta Ads Setup (S$590) sets up your Business portfolio and ad account in your name, installs the Meta Pixel and Conversions API with key events tested, verifies your domain, and builds a first campaign. Your ad budget is paid by you straight to Meta.

Frequently asked questions

It is strongly recommended. The Pixel runs in the browser, so ad blockers, browser privacy settings and slow pages can stop events. The Conversions API sends the same events from a server, so Meta receives more of your conversions. Running both, with deduplication, gives more complete reporting and better ad optimisation.

The simplest routes are Meta's one-click Conversions API setup in Events Manager, which Meta says needs no code or setup fees, or Meta's official Meta Pixel for WordPress plugin, which supports the Conversions API. WooCommerce stores can also use Meta's Facebook for WooCommerce plugin. Test events afterwards in Events Manager.

Meta matches events that share the same event name and event ID. The Pixel's eventID, passed as the fourth argument of the fbq track call, must equal the event_id sent by the Conversions API. Meta can also deduplicate using the fbp cookie or external ID, but that works mainly when the browser event arrives first.

Meta does not charge for the Gateway itself. Meta says its only cost is the associated cloud resource or partner fees, because it runs in your own AWS or Google Cloud account. For many small sites, Meta's one-click Conversions API setup in Events Manager avoids hosting costs entirely.

If your site asks visitors for cookie consent, yes. Meta's Pixel supports a consent revoke command before initialisation and a grant command once the visitor agrees. Apply the same choice to server events, and explain Meta tracking in your privacy notice. Singapore's PDPA also requires notifying people about how their personal data is used.

Rather have it done for you?

Fixed price, set up in your own accounts.

Order online, get a written scope, and keep full ownership of everything we set up. Questions first? Ask us in writing.