Home/Guides/Integration & E-commerce Guides
Integration & E-commerce Guides

Setting Up the Meta Pixel and Conversions API Correctly (with Deduplication).

Browser tracking alone misses conversions because of ad blockers, browser privacy features and slow mobile connections. Pixel plus Conversions API is the standard setup now.

Short answer

To set up Facebook (Meta) tracking properly, create a dataset/Pixel in Events Manager, install the Pixel base code on every page, fire standard events (ViewContent, AddToCart, InitiateCheckout, Purchase, Lead) with value and currency, and send the same events from your server through the Conversions API. Give each event the same event_name and a shared event_id in both browser and server calls so Meta deduplicates them. Verify your domain in Business Manager, send hashed customer information (email, phone) where you have consent, and test with the Test Events tool until event match quality is good. For cash-on-delivery stores, send the Purchase or a custom event when the order is confirmed or delivered, not just placed.

Step-by-step setup

  1. In Meta Events Manager, create or select your dataset (Pixel) under your business — not a personal account.
  2. Install the Pixel base code in the site head, or use your platform's official integration (Shopify, WooCommerce plugin, or Google Tag Manager).
  3. Add standard events with parameters: content_ids, value, currency, and num_items for e-commerce.
  4. Generate a Conversions API access token in Events Manager and send server events from your backend, a plugin, or the Conversions API Gateway.
  5. Use the same event_id for the browser and server copy of each event so Meta can deduplicate.
  6. Verify your domain in Business Settings → Brand Safety → Domains.
  7. Use Test Events to confirm both browser and server events arrive and are marked as deduplicated.

Which events to send

EventWhen to fireKey parameters
ViewContentProduct or service page viewcontent_ids, content_type, value
AddToCartItem added to cartcontent_ids, value, currency
InitiateCheckoutCheckout page openedvalue, num_items
PurchasePayment succeeded or COD order confirmedvalue, currency, order id as event_id
LeadForm submitted or WhatsApp click (for service businesses)content_name

Cash-on-delivery stores

Where most orders are cash on delivery, the browser Purchase event fires at order placement, including orders that are later cancelled or refused. A more honest signal is to send a server-side event when the order is confirmed by phone or delivered by the courier, using your order system or courier API status. Use a consistent event (for example Purchase only after confirmation) so the algorithm optimises toward real buyers.

Improving match quality and privacy

  • Customer information — send hashed email and phone (SHA-256, normalised) from the server when users have given consent.
  • fbp and fbc — pass the browser and click ID cookies to server events to improve attribution.
  • Consent — respect cookie consent where required and disclose tracking in your privacy policy.
  • Token security — keep the Conversions API access token on the server; never expose it in front-end code.

Common problems

  • Double counting — missing or mismatched event_id between browser and server events.
  • Wrong currency — sending value without currency, or the wrong currency code.
  • Events from plugins and GTM — two tools firing the same Pixel; keep one source.
  • Domain not verified — limits event configuration; verify the domain first.

Next steps

Once tracking is reliable, campaign decisions get much easier. If you work with an agency, ask them to show you deduplication in Events Manager — see choosing a digital marketing agency.

How DreamIT can help

DreamIT has integrated payments, messaging and e-commerce systems for Dream Group brands and client projects. If you need help with Facebook Pixel and Conversions API, we can scope the integration, test it end to end and hand it over with documentation. Contact DreamIT.

Frequently asked questions

Do I still need the Pixel if I use the Conversions API?

Meta recommends using both, with deduplication, for the most complete data.

What is event_id?

A unique ID for each event occurrence, sent with both browser and server events so Meta counts it once.

Can I set up the Conversions API without coding?

Yes, through partner integrations such as Shopify or WooCommerce plugins, or the Conversions API Gateway.

Why are my purchases higher in Ads Manager than in my store?

Common causes are double counting without deduplication, or counting placed COD orders that were later cancelled.

Sources and further reading

Editorial note: this guide is written for general information and reviewed by the DreamIT team. We do not publish prices or fees we cannot source; always confirm current pricing, fees and requirements with the provider before you decide. Last reviewed 4 Dec 2026.

Need help with Facebook Pixel and Conversions API?

Book a free 30-minute call with the DreamIT team. We will tell you honestly what we would do.