Meta Pixel and Conversions API Setup for E-commerce

| বাংলায় পড়ুন

Quick answer

The Meta Pixel tracks shopper actions in the browser, and the Conversions API sends the same events from your server so they are not lost to ad blockers or browser limits. Track PageView, ViewContent, AddToCart, InitiateCheckout, and Purchase with value and currency, and deduplicate browser and server events with a shared event ID.

Why tracking decides ad performance

Facebook's ad system learns from conversions. If it cannot see who buys, it optimises for clicks and messages from people who never order. Good tracking is how your ads find real buyers.

Pixel vs Conversions API

  • Meta Pixel: a script in the browser that sends events when a visitor views a product, adds to cart, or buys.
  • Conversions API (CAPI): your server sends the same events directly to Meta. It is not blocked by ad blockers or lost when a browser restricts cookies.

Use both, and deduplicate them by sending the same event ID from the browser and the server.

The events every store should send

  1. PageView on every page
  2. ViewContent on product pages, with product ID and price
  3. AddToCart
  4. InitiateCheckout
  5. Purchase on the order success page, with order value and currency (BDT)

For Messenger-heavy shops, also track Contact or Lead when someone clicks a WhatsApp or Messenger button.

Setting it up with Google Tag Manager

  1. Create a Meta Pixel in Events Manager.
  2. In Google Tag Manager, add the Pixel base code to fire on all pages.
  3. Push e-commerce events to the dataLayer from your store, then fire matching Pixel events from those triggers.
  4. Set up CAPI through your platform, a partner integration, or a server-side container.
  5. Pass the same event ID to both for deduplication.

Our guide to GA4 and GTM e-commerce tracking uses the same dataLayer events, so you set them up once.

Check that it works

  • Use Events Manager > Test Events while placing a test order.
  • Check that Purchase shows the correct value and currency.
  • Look at Event Match Quality and improve it by sending hashed email and phone when you have consent.

Cash on delivery and offline orders

A COD order is a purchase intent, not cash yet. Some shops send Purchase at checkout and later upload confirmed or delivered orders as offline events. Whatever you choose, be consistent so ad results are comparable.

Privacy

Tell customers in your privacy policy that you use advertising pixels, send only the data you need, and hash personal data before sending.

Frequently asked questions

Do I need both Meta Pixel and Conversions API?

Yes, ideally. The Pixel tracks in the browser, and CAPI sends server-side events that survive ad blockers and cookie limits. Deduplicate them with a shared event ID.

Which currency should I send for Bangladesh orders?

Send BDT as the currency and the order total as the value on Purchase events.

How do I test my Pixel?

Use Test Events in Meta Events Manager while you place a test order, and confirm each event appears with the right parameters.

Keep reading