Przejdź do treści

Meta Conversions API for Ecommerce: Setup Routes, Deduplication and Checks

10 min czytania
PR

Priya Raghunathan

E-commerce Performance Manager

The Meta Conversions API sends your store's events, such as purchases and add to carts, from a server straight to Meta, alongside the Meta pixel that runs in the shopper's browser. Meta recommends sending the same events through both and deduplicating them with a shared event ID. For most stores, setup is a setting in a platform integration, not a coding project.

Quick answer: Keep the pixel, then add the Conversions API through the simplest route that fits: your store platform's Meta integration (on Shopify, the Enhanced or Maximum data sharing level), Conversions API with Meta in Events Manager, the Conversions API Gateway, or a direct integration. Make sure every event carries the same event name and event ID on both routes, then check the Event Deduplication tab in Events Manager after a test order.

This guide is the Meta deep dive. If your store runs on Shopify and you want the cross-platform picture, with TikTok, Google and Snapchat too, read our guide to Shopify server-side tracking. For the score Meta gives the customer details you send, see Event Match Quality.

What is the Meta Conversions API?

The Meta Conversions API is a server-to-server connection that lets a business send marketing events to Meta from its own systems rather than only from the browser. Meta's Conversions API overview says it is "designed to create a connection between an advertiser's marketing data" and Meta's systems, and that server events "are linked to a dataset ID and are processed like events sent using the Meta Pixel".

The dataset wording matters when you look around Events Manager. The pixel and the server connection feed the same dataset, so a Purchase sent from the browser and a Purchase sent from your server land in one place, and Meta decides whether they are the same purchase.

For a store, the events are the familiar standard ones: ViewContent, AddToCart, InitiateCheckout and Purchase. Custom conversions built on top of those events, covered in our guide to Meta custom conversions, work the same whichever route the event took.

Why do ecommerce stores add it next to the pixel?

Ecommerce stores add the Conversions API because a pixel depends on the shopper's browser, and browsers lose events. Meta's end-to-end implementation guide says data sharing through the API "may be more reliable than browser-based methods alone", is "less susceptible to issues like a browser crash or connectivity problems", and notes that "new industry data transmission restrictions may limit the efficacy of cookies and Pixel tracking".

Ad blockers are the other reason. Shopify's Meta data sharing page puts it plainly: "A browser-based ad blocker can prevent the Meta pixel from sharing data", while "data sent from server to server can't be blocked by browser-based ad blockers."

Meta's answer is not to replace the pixel. Its best practices page says: "Use the Conversions API in addition to the Meta Pixel, and share the same events using both tools", which Meta calls a redundant event setup. The implementation guide compares three options:

SetupWhat it meansMeta's view
RedundantAll events through both the pixel and the API"comparable to or better than" the pixel alone
SplitDifferent events through each route"not as optimal as a redundant setup"
Server onlyEvents only through the APIPossible, but not the default Meta recommends

For a store, redundant is the sensible default: the pixel catches on-site behaviour as it happens, and the server sends the purchases a browser might have dropped.

Which setup routes can a store use?

A store can reach the Conversions API through four routes as of November 2026, and the right one depends on your platform and how much control you need. Each sends server events into the same dataset as your pixel; they differ in who builds and runs the connection.

Meta Conversions API setup routes compared: partner integration, Conversions API with Meta, Conversions API Gateway and direct integration
Four routes to the Meta Conversions API

Partner integration through your store platform

Most store platforms have a Meta integration that adds server events for you, and on Shopify it is the Facebook & Instagram app. Shopify's Meta data sharing page lists three levels:

  • Standard: the Meta pixel only.
  • Enhanced: the Conversions API with the Meta pixel, sending the purchase event server to server and sharing customer details to match users.
  • Maximum: the Conversions API and the Meta pixel, "updated with Facebook's latest advertising technology", with the same customer details.

You change it under Sales channels > Facebook & Instagram > Settings > Data sharing settings, in the Choose level section. Our Shopify Facebook & Instagram app setup guide covers the connection itself, and the Shopify server-side guide covers consent settings.

If your store runs on another platform, look for that platform's own Meta integration first: it is usually the route with the least to maintain.

Conversions API with Meta in Events Manager

Meta also offers a route it runs itself. Its overview page says that if you have a Meta pixel on your website, "you can also set up Conversions API with Meta for website events in one click" from Events Manager, with no code. Meta's gateway page describes the same option as one that works "without you having to host or maintain anything".

It suits stores on platforms without a strong Meta integration, or custom builds where nobody wants to own a server. Meta's pages describe it for website events; check in Events Manager which options your dataset shows, because Meta changes these screens often.

Conversions API Gateway

The Conversions API Gateway is "a self-serve configuration option in Events Manager" that runs a server in a cloud account your business owns and sends web events from the pixel and the API as a redundant setup. Meta says it can run on AWS EKS, AWS ECS Express or GCP, and that "the only cost of the Conversions API Gateway is the associated cloud resource or partner fees".

No coding is needed, but someone has to provision and look after cloud infrastructure. That makes it a fit for stores or agencies with a technical marketer and a reason to keep the setup in their own account.

Direct integration

A direct integration means your developers send events from your servers to Meta's endpoint. Meta's get started page says you need a pixel ID, a Meta Business Suite account and an access token. The token is generated in Events Manager: choose the pixel, open Settings, then in the Conversions API section select Generate access token under Set up manually. Meta notes the link only shows to people with developer privileges for the business.

This is the route with the most control: you choose every event, every parameter and how IDs are generated. It is also the most to maintain, so it makes sense for custom checkouts, subscriptions or events the platform integration does not send.

How does deduplication work with event_id and event_name?

Deduplication is how Meta counts a purchase once when it arrives from both the pixel and the server. Meta's deduplication guide says: "We determine if events are identical based on their ID and name." In practice:

  • The pixel's eventID must match the Conversions API's event_id.
  • The pixel's event must match the Conversions API's event_name, for example Purchase on both sides.
  • Events are only deduplicated "if they are received within 48 hours of when we receive the first event".
  • When two events match, Meta "generally" prefers the one received first.

On the pixel, the ID goes in the fourth argument of the call, for example fbq('track', 'Purchase', {value: 49.90, currency: 'EUR'}, {eventID: 'order-1043'}), and the server event for the same order sends event_id: 'order-1043'. The implementation guide adds that each event needs its own persistent ID, and that the ID "should not be shared with other events". An order number works for Purchase; for add to cart or page views you need an ID generated per event.

Meta also documents a fallback that matches on event_name with fbp or external_id. Meta says it generally only works when the browser event arrives first and the server event follows, so treat it as a backup, not the plan.

The usual cause of double counts on a store is not the integration itself but a second copy: pixel code pasted into the theme before the app was installed, or a tag manager firing its own Purchase with a different ID. Our guide to platforms double counting conversions covers the separate problem of several ad platforms claiming one order.

Which parameters does a website event need?

A website server event needs four required fields plus two that Meta requires for website events specifically. Meta's server event parameters page marks event_name, event_time, user_data and action_source as required, and says event_source_url is required for website events. The customer information parameters page adds that client_user_agent is required for website events too.

Three rules catch stores out:

  1. Hash the right fields. Contact fields such as em (email), ph (phone), fn, ln, ct, zp and country must be hashed with SHA256. client_ip_address, client_user_agent, fbc and fbp must not be hashed.
  2. Send events promptly. Meta's API usage page recommends sending events "as soon as they occur and ideally within an hour". The event_time can be up to 7 days before you send it; if one event in a request is older, Meta returns an error for the whole request and processes none of it.
  3. Batch within the limit. You can send up to 1,000 events in one request.

For a Purchase, also send value and currency in the custom data, or Meta has nothing to calculate purchase value and ROAS from.

How well Meta can match those customer details to accounts is what Event Match Quality scores. Which details lift the score, and how to read it, are in our Event Match Quality guide, so we will not repeat them here.

How do you check the Conversions API in Events Manager?

Checking takes one test event, one real order and a look at the dataset's Overview in Events Manager. Repeat it after every change to the store, the theme, the integration or the consent banner.

  1. Use Test Events first. Meta's API usage page says the Test Events tool generates a test ID that you send as a test_event_code parameter, so server events show in the Test Events window. Use it only for testing and remove it before going live.
  2. Place a real test order with a real email address and phone number.
  3. Open the Overview. Meta's verification guide says it shows events received, deduplicated, discarded or processed, with the channel under Connection method. Purchase should show both the browser and the server.
  4. Open Event Details for Purchase, then the Event Deduplication tab, to see the share of deduplicated events.
  5. Give it time. Meta says you should be able to verify events within 20 minutes after they were sent.

If Purchase shows from the server only, the pixel is not firing on the thank-you page. If it shows twice for one order, look for a second pixel or tag with its own IDs.

What does the Conversions API not fix?

The Conversions API helps Meta receive more of your events, but several common reporting gaps sit outside it. Knowing them keeps you from expecting the server connection to solve the wrong problem.

  • It does not make Meta match your store. Meta still reports conversions on its own attribution settings, so its totals will differ from your order list. Our guide to why Meta and Shopify numbers don't match explains the gap.
  • It does not replace consent. Sending events from a server does not change what your cookie banner and privacy policy must cover. Check how your integration treats server events when a visitor declines.
  • It does not subtract refunds. A purchase sent at checkout stays a purchase in Meta, even if the order is refunded a week later. Our guide to returns-adjusted ROAS covers that correction.
  • It does not fix bad data. A Purchase without value and currency, or with the wrong currency, is still wrong when it arrives from a server.
  • It does not tell you about profit. Meta receives revenue, not product costs, shipping or fees.

Where Wevion fits

Wevion does not set up the Conversions API, install pixels or send events to Meta: that stays with your store platform's integration, Meta's own options or your developers. It helps on the reading side, once the events are flowing.

Wevion connects Meta, Google, TikTok, Snapchat, Taboola and Outbrain ad accounts through each platform's official API and syncs data about every 15 minutes, so the purchases and ROAS each platform reports sit side by side in one view.

A sudden drop in Meta purchases after a theme or app change stands out against the other platforms, and automated rules can just notify you when a metric crosses your threshold, or pause ads and change budgets, with a cooldown and a daily cap on runs.

Wevion's Shopify app syncs orders, products, refunds and product costs for reporting. It does not send them to Meta. Profit and POAS next to ad spend sit in Profitability Analytics, in beta, the check on the gaps the Conversions API leaves open; our guide to Shopify marketing analytics shows how the pieces fit.

You can try it on your own ad accounts with 14 days free on any plan, no card.

Key takeaways

  • The Meta Conversions API sends store events from a server into the same dataset as your pixel; Meta recommends sending the same events through both.
  • Four routes exist: your store platform's integration, Conversions API with Meta, the Conversions API Gateway and a direct integration.
  • Deduplication needs the same event name and a unique, shared event ID on both routes, within 48 hours.
  • Website events need event_source_url and client_user_agent; contact fields are hashed, IP, user agent, fbc and fbp are not.
  • Send events within an hour where you can; events older than 7 days make Meta reject the whole request.
  • Check Test Events, Connection method and the Event Deduplication tab after every change to the store.
Wróć do bloga
Udostępnij

Najczęściej zadawane pytania

The Ad Signal

Cotygodniowe spostrzeżenia dla media buyerów, którzy odmawiają zgadywania. Jeden e-mail. Tylko konkrety.

Gotowy na automatyzację operacji reklamowych?

Zacznij uruchamiać kampanie masowo na wielu kontach. Wypróbuj Wevion za darmo przez 14 dni w każdym planie, bez karty.