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
- In Meta Events Manager, create or select your dataset (Pixel) under your business — not a personal account.
- Install the Pixel base code in the site head, or use your platform's official integration (Shopify, WooCommerce plugin, or Google Tag Manager).
- Add standard events with parameters: content_ids, value, currency, and num_items for e-commerce.
- Generate a Conversions API access token in Events Manager and send server events from your backend, a plugin, or the Conversions API Gateway.
- Use the same event_id for the browser and server copy of each event so Meta can deduplicate.
- Verify your domain in Business Settings → Brand Safety → Domains.
- Use Test Events to confirm both browser and server events arrive and are marked as deduplicated.
Which events to send
| Event | When to fire | Key parameters |
|---|---|---|
| ViewContent | Product or service page view | content_ids, content_type, value |
| AddToCart | Item added to cart | content_ids, value, currency |
| InitiateCheckout | Checkout page opened | value, num_items |
| Purchase | Payment succeeded or COD order confirmed | value, currency, order id as event_id |
| Lead | Form 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
- Meta for Developers — Meta Pixel
- Meta for Developers — Conversions API
- Meta for Developers — deduplicating Pixel and Conversions API events
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.
Related guides
- The Best AI Tools for Marketing Teams, and Where Humans Still Win
- Courier API Integration in Bangladesh: Automating Parcels from Order to COD
- How to Choose a Digital Marketing Agency in Bangladesh Without Wasting Your Budget
- E-commerce Website Development in Bangladesh: Platform, Payments and Delivery
- bKash Payment Gateway Integration: A Developer's Checklist
- Bulk SMS in Bangladesh: Masking vs Non-Masking, APIs and BTRC Rules
- All integration & e-commerce guides

