Where to find it: PixelYourSite Pro → Meta (Facebook).

Quick start
- Paste your Meta Pixel ID.
- Generate a Conversion API access token in Meta (steps below) and paste it.
- Turn on Enable Pixel and Enable Conversion API.
- Save. Purge any page cache.
- In Events Manager → your dataset → Overview, events should appear within a few minutes.
Pixel ID
Get it from Meta Ads Manager → Pixel (open in a new tab), or from Events Manager → Data sources → your Pixel/Dataset → Settings. Copy the Pixel/Dataset ID and paste it into Meta Pixel ID.
Enable Pixel turns the Meta Pixel on or off without removing your setup.
Conversions API (CAPI)
Configure Facebook Conversion API on WordPress using PixelYourSite
Configure Facebook Conversion API on WordPress using PixelYourSite
The Conversions API sends events from your server. Browser events get blocked by ad blockers and privacy browsers; CAPI events arrive anyway.
PYS sends every event twice — once from the browser, once from the server — and Meta keeps one. The deduplication works because every event ships with an Event ID (a GUID PYS generates per event instance) and Meta matches the browser-server pair on event_name + event_id.
CAPI events also carry Match Keys (fbp, fbc, IP, user agent) and, for logged-in users and WooCommerce/EDD purchases, User Data Keys (hashed email, phone, name, address). See Meta CAPI Event Match Quality (EMQ).
Generate the access token
In Events Manager (open in a new tab): pick your dataset → Settings → scroll to Conversions API → Set up manually → Generate access token. Copy it.
Paste it in PYS
Paste into Conversion API access token below the Pixel ID, tick Enable Conversion API, save, purge any page cache.
Test CAPI events
How to TEST Facebook Conversion API (CAPI) Events
How to TEST Facebook Conversion API (CAPI) Events
- In Events Manager → your dataset → Test events, copy the Test Event Code.
- In PYS, paste it into Test Event Code and save. Purge cache.
- Open your site in the same browser you used in step 1. Browse, add to cart, place a test order.
- In the Test events panel, each action shows as a pair: a Browser row and a Server row labelled Deduplicated. Click an event to see its parameters and Event ID.
- When you’re done, clear the Test Event Code field and save.
To test the server-only path (no pair shown), open the site in an incognito window with an ad blocker, or in a different browser. Only the server event reaches Meta.
If you’re using a role-based exclusion in PYS, make sure your test account isn’t excluded.
Advanced Matching
Adds hashed customer data to browser-side events to improve match quality. PYS handles hashing. Coverage and how to extend it: EMQ guide.
Event toggles
Three switches control which PYS events reach this Meta Pixel:
- Fire the active automated events for this pixel.
- Fire the WooCommerce events for this pixel.
- Fire the Easy Digital Downloads events for this pixel.
Turn off any group you don’t want this pixel to receive. Useful when you run multiple pixels and want each to cover a different part of the site.
Pixel targeting (Display conditions)
Limit where this pixel fires:
- Logic — Track or Don’t track.
- Scope — entire site or a subset.
- Add Extra Conditions for advanced targeting.
Part of the Super Pack.
Hide rules
Block the pixel based on URLs:
- Hide if page URL includes — specific pages.
- Hide if landing URL includes — entire sessions based on the entry URL.
- Hide for X hours — temporary suppression.
Part of the Super Pack.
Multiple Meta Pixels
Run more than one Pixel ID, each with its own targeting, event toggles, and CAPI token. Part of the Super Pack. Full reference: Managing Multiple Pixels.
Domain verification
Domain verification used to be required for Aggregated Event Measurement (AEM). It isn’t anymore — Meta removed manual AEM configuration in June 2025 and now aggregates eligible events automatically.
It’s still recommended. Verified domains let you control who can edit links to your domain across Facebook, post news-style ads, and tighten security around your business assets. CAPI does not require it.
Get the tag in Meta: Business Settings → Brand safety → Domains → your domain → Meta-tag verification. Paste it into the Verification meta-tag field in PYS.
Event ID and the cache problem
The Event ID is what lets Meta deduplicate pairs. If a full-page cache stores the rendered HTML — including the inline JS that holds the Event ID — every visitor gets the same ID, and Meta drops events as duplicates.
PYS delivers the Event ID through admin-ajax.php to bypass the cache. Each visitor gets a fresh ID.
Where: PixelYourSite Pro → Global Settings → Events delivery.
- Use Ajax when API is enabled, or when external_id’s are used. Keep this option active if you use a cache. Default on.
- Use Ajax for Static events when API is enabled. Default on.
Leave both on if you have any caching layer (WP Super Cache, LiteSpeed, Cloudflare Cache Everything, server cache).
Confirm IDs are unique
- Open a page in incognito. Inspect a fired event with Meta Pixel Helper. Note the Event ID.
- Refresh. Check the same event. The Event ID should be different.
If it’s the same, the cache is serving the inline ID. Turn on the Ajax toggles, purge the cache, retest.
Diagnostics warnings
Server Sending Invalid Match Key Parameters
Bots without usable cookies, IP, or user agent. Marginal volume. Ignore it. If the rate is high, restrict the Pixel to your domain in Events Manager → Settings → Traffic Permissions → Allow List.
Same Event ID Received for Many Event Instances
Two possible causes:
- Cache. Run the Event ID test above. If IDs repeat, turn on the Ajax toggles and purge the cache.
- Pixel served from other domains. Google Translate, Google’s cache, or scraper sites can re-broadcast your Pixel. Lock it down with an Allow List under Traffic Permissions.
New Domains Sending Data
Could be a new subdomain of yours or a third party re-serving the Pixel. Review the listed domains. Add an Allow List if any are unexpected.
Other warnings
Meta occasionally reports false positives — missing travel parameters on non-travel events, for example. Ignore warnings that don’t match anything your site does.
