Engineering Note · October 9, 2026

Meta Pixel and CAPI Event Deduplication Explained

Implementing Meta Pixel alongside Meta Conversions API (CAPI) can provide browser-side and server-side event delivery for the same website interactions. However, when both systems report the same customer action, the events must be configured correctly to avoid double-counting conversions.

For example, a WooCommerce purchase might be sent by the browser Pixel when the customer reaches the order confirmation page and by a Cloudflare Worker after receiving the same purchase event from the server.

Without correct deduplication, Meta may process these as two separate events instead of recognizing them as two reports of the same purchase.

Meta’s recommended deduplication approach uses a matching event name and event identifier across the browser and server events.

This guide explains how deduplication works, how to implement it correctly, and how to troubleshoot common problems in WordPress, WooCommerce, Google Tag Manager, and Cloudflare Workers.

1. What Is Meta Event Deduplication?

Event deduplication is the process of identifying multiple reports of the same customer action and preventing them from being counted as separate events.

When a website uses both Meta Pixel and CAPI, the same event can arrive through two different channels:

  • Browser event: Sent by Meta Pixel through the customer’s browser.
  • Server event: Sent by the website backend or a server-side tracking gateway.

Both events can be valid representations of one customer action. Deduplication helps Meta recognize the overlap.

Example: A WooCommerce purchase

Suppose a customer completes an order worth $100.

The browser sends:

  • Event name: Purchase
  • Event ID: purchase_12345

The server sends:

  • Event name: Purchase
  • Event ID: purchase_12345

Because the event names and identifiers match, Meta can recognize the two reports as duplicates when they satisfy its deduplication rules.

The intended outcome is one logical purchase event rather than two independently counted purchases.

2. How Meta Pixel and CAPI Deduplication Works

The recommended approach relies on two matching fields.

Browser PixelMeta CAPIRequirement
Event nameevent_nameMust match
eventIDevent_idMust match
Pixel data sourceCAPI destinationMust refer to the same data source
Event timingevent_timeMust represent the actual event appropriately

The browser-side option is named eventID, while the server-side field is named event_id.

The different spelling matters because each integration uses its own event format.

Deduplication time window

Meta’s documented deduplication behaviour includes a 48-hour matching window for eligible browser and server events. This is not a reason to delay event delivery: send events promptly and verify the current rules in Meta’s documentation.

When the required matching conditions are satisfied, Meta can recognize the duplicate event and avoid treating both reports as separate conversions.

Important: Matching customer information such as email, phone number, _fbp, or _fbc serves customer matching and attribution purposes. Those fields do not replace the recommended shared eventID/event_id method.

Reference: Meta Conversions API Documentation

3. Why Is Event ID So Important?

The event identifier connects the browser report and server report to the same underlying action.

If each system generates its own identifier independently, Meta may not recognize the events as duplicates.

For example:

ParameterBrowserServer
Event namePurchasePurchase
Event IDpurchase_12345purchase_98765
Expected resultNo reliable ID matchDuplicate may be counted separately

Even though both events describe the same purchase, the mismatched identifiers prevent the recommended deduplication method from working as intended.

Recommended event ID strategy

Generate one stable identifier per event occurrence and share it across all delivery paths.

For WooCommerce purchases, an order-based identifier can work when it is unique within the relevant event and data-source scope.

For other events, such as AddToCart or InitiateCheckout, use an identifier that distinguishes individual occurrences rather than reusing one generic ID for every event of that type.

The same event ID must survive page refreshes, retries, and repeated delivery attempts for the same action.

4. Implement Deduplication in Meta Pixel

Meta Pixel supports passing an event identifier through the event options object.

For example:

fbq(
  'track',
  'Purchase',
  {
    value: 100.00,
    currency: 'USD'
  },
  {
    eventID: 'purchase_12345'
  }
);

In this example:

  • Purchase is the browser event name.
  • value and currency describe the purchase.
  • eventID identifies the specific event occurrence.

The identifier must also be available to the server-side implementation.

Do not generate a new random ID on every page load if the server event is intended to represent the same purchase. Both paths must use the same stable value.

If a tag manager or plugin already generates event IDs, inspect the existing implementation before adding another generator.

5. Implement the Matching Event in Meta CAPI

The corresponding server-side event must use the same event name and identifier.

For example, the relevant part of a CAPI event payload can look like this:

{
  "data": [
    {
      "event_name": "Purchase",
      "event_id": "purchase_12345",
      "event_time": 1791560000,
      "action_source": "website",
      "event_source_url": "https://example.com/checkout/order-received/12345/",
      "user_data": {
        "client_user_agent": "Example browser user agent"
      },
      "custom_data": {
        "currency": "USD",
        "value": 100.00
      }
    }
  ]
}

This is an illustrative payload, not a complete production request. A real CAPI integration must provide valid event data, appropriate customer matching information, and any other required fields according to Meta’s current API specification.

The event_id must match the browser’s eventID exactly. Do not generate an unrelated server-side ID for the same purchase.

6. Build a Reliable Event ID Flow with Cloudflare Workers

A Cloudflare Worker can act as the server-side processing layer between the website and Meta CAPI.

A suitable architecture is:

WooCommerce
↓
Event ID Generation or Retrieval
↓
Browser Pixel + Server Event Source
↓         ↓
Meta Pixel    Cloudflare Worker
         ↓
       Meta CAPI
         ↓
      Meta Deduplication

The critical requirement is not that both channels use Cloudflare Workers. It is that both channels use the same identifier for the same action.

Recommended implementation pattern

  1. Identify the customer action.
  2. Generate or retrieve a stable event ID.
  3. Pass the ID to the browser Pixel event.
  4. Include the same ID in the server-side event.
  5. Preserve the ID across retries.
  6. Verify both events in Meta Events Manager.

For a WooCommerce purchase, the order record can be a reliable source of the transaction identifier. For events that do not have a persistent order record, the event-generation layer must provide a stable identifier that is shared by both delivery paths.

A Worker cannot reliably reconstruct a browser-generated event ID unless that identifier is explicitly included in the incoming request or stored in a shared system.

7. Common Deduplication Problems

Problem 1: Different event IDs

Cause: The browser and server generate independent identifiers.

Solution: Generate the ID once and pass the same value through both paths.

Problem 2: Different event names

Cause: The browser sends Purchase, while the server sends a differently named event.

Solution: Use consistent event names for the same customer action and follow Meta’s standard event naming requirements.

Problem 3: Missing browser event ID

Cause: The Pixel fires without an eventID while CAPI includes an event_id.

Solution: Inspect the Pixel implementation and ensure the event options contain the correct ID.

Problem 4: Duplicate purchase events from multiple plugins

Cause: Several plugins, custom scripts, or GTM tags send the same browser event, or multiple server integrations send the same purchase.

Solution: Audit every event source. Deduplication between Pixel and CAPI does not automatically fix every duplicate generated by multiple browser tags or multiple server systems.

Problem 5: Event IDs change on retries

Cause: A retry creates a new identifier instead of reusing the original ID.

Solution: Persist or reconstruct the same event ID for the same underlying action.

Problem 6: Confusing Event Match Quality with deduplication

Cause: The implementation focuses on improving email, phone, or browser identifiers but leaves the event IDs mismatched.

Solution: Treat customer matching and event deduplication as separate implementation requirements.

8. Event Deduplication vs. Event Match Quality

These two concepts serve different purposes.

AreaEvent deduplicationEvent Match Quality
Primary goalIdentify duplicate event reportsHelp match events to Meta users
Key inputsMatching event name and event IDEligible customer matching information
Example parameterseventID, event_idem, ph, fbp, fbc, external_id
Main benefitReduce duplicate conversion reportingImprove event-to-user matching where possible

A setup can have strong customer matching but poor deduplication if its event IDs do not match.

Likewise, correctly deduplicated events can still have limited customer matching if appropriate identifiers are unavailable.

Both should be tested independently.

9. How to Test Deduplication in Events Manager

Use Meta Events Manager to confirm that browser and server events are received and deduplicated as expected.

Testing workflow

  1. Open Events Manager and select the correct data source.
  2. Navigate to the test-event tools.
  3. Trigger a controlled test action on the website.
  4. Confirm that the browser Pixel event is received.
  5. Confirm that the corresponding server event is received.
  6. Inspect the event name and event identifiers.
  7. Review the available event deduplication diagnostics.
  8. Repeat with a test purchase and verify that the same order does not generate unintended duplicate conversions.

Test Events may display the incoming browser and server events separately to help diagnose the integration. Seeing both reports is not, by itself, proof that deduplication has failed.

Also inspect the event diagnostics and processed-event reporting rather than relying exclusively on the number of entries visible during testing.

10. WooCommerce Deduplication Checklist

Before deploying Meta Pixel and CAPI together, verify the following:

  • The browser Pixel and server event use the same data source.
  • Event names match for the same customer action.
  • Browser eventID matches server event_id.
  • Purchase identifiers remain stable across page reloads and retries.
  • Only the intended browser and server integrations send each event.
  • Order-status changes do not unintentionally create new purchase events.
  • Customer matching fields are configured separately from deduplication.
  • Test Events and event diagnostics confirm the expected behaviour.
  • Consent requirements are applied consistently to browser and server delivery.
  • Server logs do not expose API credentials or unnecessary personal data.

Conclusion

Meta Pixel and Conversions API can work together to provide browser-side and server-side event delivery, but the integration must correctly identify duplicate reports of the same customer action.

The recommended deduplication approach uses the same event name and shared event identifier across both channels. In a WooCommerce implementation, this requires a reliable event ID strategy, consistent event naming, controlled event sources, and careful handling of retries.

Cloudflare Workers can provide a useful server-side processing layer for validating and forwarding events, but it cannot automatically deduplicate browser events unless the necessary identifiers and delivery logic are implemented correctly.

The most reliable approach is to generate or retrieve one stable event identifier per action, share it between the browser and server paths, and verify the result in Meta Events Manager before relying on the data for campaign optimization or conversion reporting.