1. Home
  2. Guides
  3. Meta and Social Ads
  4. Meta Pixel and Conversions API: Setup and Deduplication
Meta and Social Ads

Meta Pixel and Conversions API: Setup and Deduplication

By Marketing Ruler Editorial TeamChhaviReviewed by ChhaviUpdated 3 min read
Quick answer

The Meta Pixel is browser code that records website actions, while the Conversions API sends the same events from your server. Running both, with matching event IDs for deduplication, gives Meta more complete and reliable conversion data. That improves optimisation and reporting, especially when browsers or ad blockers drop pixel events.

Key takeaways

  • Pixel and Conversions API work best together, not as alternatives.
  • Deduplication relies on matching event names and event IDs.
  • Event match quality improves when you send hashed customer details with consent.
  • Test every event in Events Manager before spending serious budget.

Why do you need both Pixel and Conversions API?

Browser tracking loses events. Ad blockers, privacy settings, slow page loads, cookie restrictions and in-app browsers all cause missed pixel fires. The Conversions API sends events from your server or e-commerce platform instead, so it captures many of the purchases and leads that the browser pixel quietly fails to record.

Sending both gives redundancy. Meta then removes duplicates and keeps one record per action. The result is a fuller picture of conversions, which feeds better optimisation and more trustworthy reporting. It also protects you when a theme update or plugin conflict breaks the pixel without anyone noticing for a week.

How do you set them up?

Most Indian D2C stores on Shopify, WooCommerce or similar platforms can connect both through a native integration or Meta's partner setup flow in Events Manager. Custom sites can use the Conversions API Gateway or a server-side tag manager container. Developers can also call the API directly from the backend when an order is confirmed.

Whatever the method, map the standard events you need and pass value and currency with every purchase. Use standard event names rather than inventing custom ones where a standard event exists, because Meta's optimisation and reporting understand standard events best and they travel cleanly into campaign setup.

  • Install the pixel base code on every page
  • Fire standard events: ViewContent, AddToCart, InitiateCheckout, Purchase, Lead
  • Connect Conversions API through partner integration, Gateway or server code
  • Send value and currency (INR) with Purchase
  • Verify your domain in Business settings

How does deduplication work?

When the same purchase arrives from both the pixel and the server, Meta needs a way to know it is one event, not two. It looks at the event name and an event ID. If both match within a short window, Meta keeps one record and discards the other, so your reported purchases stay accurate.

Generate the event ID once, typically from the order ID, and pass the same value to both the pixel call and the server call. Mismatched or missing IDs cause double counting, which inflates reported conversions, makes ROAS look better than it is and misleads the bidding system into chasing phantom results.

FormulaDeduplicated if: event_name (pixel) = event_name (server) AND event_id (pixel) = event_id (server)

How do you improve event match quality and stay compliant?

Event match quality reflects how well Meta can link an event to a person's account. Sending hashed email, phone number, name and city, along with the click ID and browser ID, usually raises it. Many integrations hash data automatically before sending, but confirm how your setup handles this rather than assuming.

Under the Digital Personal Data Protection Act 2023, collect clear consent before sharing personal data for advertising purposes. Update your privacy notice, record consent, and only send customer details where you have a lawful basis. Rules and their implementation continue to develop, so seek legal advice for your specific data flows.

How do you test the setup?

Use the Test Events tool in Events Manager. Place a test order and confirm both browser and server events arrive, carry the same event ID and display as deduplicated. Then check the Diagnostics tab for warnings about missing parameters, invalid currency codes or events arriving with unusual delays.

Next, compare a week of Meta-reported purchases with your store's actual orders. A gap is normal because of attribution windows and privacy limits, but a large or growing gap points to tracking issues worth fixing. Repeat this check after any website redesign, checkout change, payment gateway switch or app update.

Frequently asked questions

Can I use only Conversions API without the Pixel?

You can, but Meta generally recommends using both. The pixel captures browser signals such as page views and browser IDs that help matching, while the server captures events the browser misses. Running both with deduplication gives the most complete data for most websites.

What is a good event match quality score?

Meta shows a score out of ten for each event. Higher is better, but there is no universal target to chase. Focus on sending more customer parameters with consent, such as email and phone, and watch the score trend upward. Purchase and Lead events matter most.

Does Conversions API help with offline or WhatsApp sales?

Yes. You can send offline or chat-based conversions through the Conversions API, for example when a lead from an instant form becomes a paying customer in your CRM. This helps Meta learn which leads are valuable, not just which people fill forms.

Related guides

From other topics