Analytics & Tracking10 min readJuly 20, 2026

Facebook Pixel + Conversions API (CAPI) setup — Bangla complete guide 2026

iOS 14+ era-তে Bangladesh-এর eCommerce এবং service businesses-এর জন্য Meta Pixel + Conversions API (CAPI) setup complete guide — কেন লাগে, কীভাবে install করবেন, GTM/server-side deployment, এবং common mistakes।

KS
Kowser Shaki
Founder & CEO · Adfix Agency Ltd.
Isometric illustration of Facebook Pixel and Conversions API server-side tracking setup for Bangladesh businesses
On this page · 6 sections

iOS 14.5-এর App Tracking Transparency (ATT) update এর পর থেকে Facebook Pixel-এর accuracy 40-60% drop হয়েছে — মানে যে conversion actually হচ্ছে, Facebook সেটার অর্ধেকও track করতে পারছে না। Result: Meta algorithm optimization ভুল data-এর উপর করছে, cost per conversion inflated দেখাচ্ছে, এবং ROAS reporting unreliable। Solution: Conversions API (CAPI) — server-side event tracking যা browser-based Pixel-কে supplement করে এবং tracking accuracy 90%+ recover করে। এই guide-এ Bangladesh-এর জন্য practical, step-by-step CAPI setup coverage করব — from beginner to production-grade।

Share

Pixel vs CAPI — difference এবং কেন দুটোই দরকার#

Facebook Pixel = browser-based JavaScript tracking। User browser-এ যা action করে (page view, add to cart, purchase), Pixel সেটা directly Facebook-এ পাঠায়। Problem: iOS Safari, Firefox, ad blockers এসব block করে — মানে 40-60% events lost।

Conversions API (CAPI) = server-side tracking। Website-এর server directly Facebook API-এ event data পাঠায়। Browser bypass, ad blocker bypass, iOS restriction bypass — data loss minimal (5-10%)। Meta officially recommends: Pixel + CAPI hybrid setup (both parallel) — Pixel real-time signals দেয়, CAPI accuracy ensure করে।

  • Pixel only: 40-60% event loss on iOS/Safari — Meta algorithm underperforms
  • CAPI only: browser context missing (user agent, IP), Meta matching accuracy কমে
  • Pixel + CAPI (hybrid): 90-95% accuracy, best-in-class attribution
  • Deduplication critical: same event Pixel + CAPI দিয়ে পাঠালে event ID match করতে হবে (otherwise double-counting)

Meta Pixel basic setup (browser-side)#

Bangladesh-এর জন্য Pixel setup 3 উপায়ে করা যায়: (1) direct code install (advanced developer needed), (2) Google Tag Manager (GTM)-এর মাধ্যমে (recommended, tech-friendly), (3) Shopify/WooCommerce plugin (easiest, non-tech)।

GTM route best-of-both-worlds: no-code trigger management + full customization + version control + preview mode debugging। Shopify Facebook integration one-click install করে দেয় কিন্তু customization limited।

  • Meta Events Manager → Data Sources → Create Pixel → Pixel ID copy
  • GTM: Tag → Custom HTML → Meta Pixel base code paste → Trigger: All Pages
  • Standard events add: PageView, ViewContent, AddToCart, InitiateCheckout, Purchase, Lead
  • Test Events tool দিয়ে verify করুন — 5-10 mins-এ events show হচ্ছে কি না check করুন
  • Facebook Pixel Helper Chrome extension install করুন — real-time debug

Conversions API (CAPI) setup — 3 methods#

CAPI implement করার 3টা path আছে difficulty অনুযায়ী: (a) Meta's Conversions API Gateway (easiest, paid tool), (b) Server-side GTM (moderate, most flexible), (c) Direct server-to-Meta API call (developer-heavy, most control)।

Bangladesh-এর জন্য practical recommendation: Shopify/WooCommerce brands → Conversions API Gateway বা platform-native integration (Shopify has native CAPI toggle)। Custom sites/SaaS → Server-side GTM (BDT 500-2000/month hosting cost, but scalable)। Enterprise → direct API implementation।

  • Shopify native CAPI: Settings → Apps → Facebook & Instagram → enable Conversions API (1-click)
  • WooCommerce: Facebook for WooCommerce plugin → CAPI toggle enable
  • Server-side GTM: Google Cloud Run হোস্টেড ($5-15/month), Meta CAPI tag deploy
  • Custom implementation: POST request to Meta Graph API, event data + access token + test event code
  • Event Match Quality (EMQ) score check করুন — 8/10+ target

Deduplication এবং Event ID — double-counting এড়ানো#

Pixel + CAPI দুটোই একই event পাঠালে Meta double count করবে (Purchase 100 hoyeche, Meta 200 dekhabe)। Solution: প্রতিটা event-এ unique Event ID পাঠাতে হবে, Meta match করে deduplicate করবে।

Implementation: Pixel event fire করার সময় Event ID generate করুন (timestamp + random hash), same Event ID CAPI event-এও পাঠান। Meta same Event ID-র duplicate events single count করবে। GTM-এ variable configuration দিয়ে এটা easy করা যায়।

  • Event ID format: uuid v4 বা timestamp + user identifier hash
  • Pixel-এ eventID parameter add করুন: fbq('track', 'Purchase', {...}, {eventID: 'abc123'})
  • CAPI-এ event_id field সেই same value পাঠান
  • Meta Events Manager → Overview → Deduplication এ check করুন (green = properly deduped)
  • Test period 48-72 hours: production run-এর আগে proper debug

Bangladesh-specific PII এবং privacy considerations#

CAPI-তে user data (email, phone, IP address) হাশ্ড ভাবে পাঠাতে হয় — Meta matching-এর জন্য। Bangladesh-এ +880 country code সহ phone number hash করে পাঠাতে হবে (raw +8801xxxxxxxxx → SHA-256 hash)। Email lowercase-এ hash করুন। Wrong format-এ পাঠালে Event Match Quality drop হবে (matching poor)।

Privacy compliance: users-দের privacy policy-তে explicitly mention করুন যে server-side tracking হচ্ছে। GDPR/CCPA না apply করলেও Bangladesh Personal Data Protection Act 2023 এসেছে — consent-based tracking recommended।

  • Phone number: +880 prefix + full number, lowercase, hash SHA-256
  • Email: lowercase, trim whitespace, hash SHA-256
  • IP address: raw pass (Meta hash করে nিজে থেকে)
  • External ID (user_id): hashed customer ID পাঠান — matching boost দেয়
  • Never send raw PII — Meta reject করবে এবং privacy violation হবে

Common Bangladesh setup mistakes#

আমাদের ঢাকার eCommerce ক্লায়েন্টদের audits করে যেসব mistake সবচেয়ে বেশি দেখেছি:

  • Pixel + CAPI setup আছে কিন্তু event ID match না — double counting (attribution inflated)
  • Purchase event value pass না করা — Meta 'Purchase হচ্ছে কিন্তু value কত' না জানলে ROAS optimize করতে পারে না
  • Currency pass না করা (BDT/USD) — reporting messed up
  • Test Events দিয়ে verify না করে production launch — 2 সপ্তাহ পর discovery হয় events fire হচ্ছে না
  • Deduplication check না করে dual sending — 30-50% event inflation
  • Bangladesh phone number wrong format-এ hash — EMQ 3/10
The takeaway

iOS 14+ era-তে Bangladesh eCommerce এবং service businesses-এর জন্য Meta Pixel + Conversions API hybrid setup non-negotiable — না থাকলে ad budget 30-50% waste হচ্ছে wrong data-এর কারণে। Proper implementation: Shopify/WooCommerce brands native integration ইউজ করুন, custom sites-এর জন্য server-side GTM setup করুন, এবং Event Match Quality (EMQ) 8/10+ maintain করুন। ৭২ hours proper testing production launch-এর আগে।

KS
Written by
Kowser Shaki
Founder & CEO · Adfix Agency Ltd.

Kowser leads growth strategy for Dhaka-based and global brands — SEO, paid media, and conversion systems that scale. This playbook is drawn from live client engagements, not theory.

Frequently asked

Questions Dhaka founders ask us

Conversions API set up করলে সত্যিই ROAS বাড়ে?

Direct ROAS 'বাড়ে' না — actual ROAS-ই accurate reporting হয়। মানে Pixel-only setup-এ Meta 5x ROAS দেখাচ্ছিল কিন্তু actually 8x ছিল (event miss হচ্ছিল), CAPI-এর পর proper 8x report হচ্ছে। এই accurate data-র উপর Meta algorithm optimization ভালো হয়, cost per conversion 15-30% কমে, এবং scaling decision confident-এ নেয়া যায়।

Server-side GTM Bangladesh-এ setup করতে কি extra hosting cost লাগে?

Yes, monthly $5-15 (BDT 550-1,700) Google Cloud Run বা other cloud hosting-এ। এই cost 90%+ Bangladesh brands-এর জন্য justified — Meta Ads spend BDT 30,000+/month হলে proper attribution-এর ROI hundred-fold। Cheaper alternative: Stape.io ($20/month managed server-side GTM) — no cloud setup lagbe।

Shopify native CAPI enough, নাকি extra setup দরকার?

Basic eCommerce-এর জন্য Shopify native CAPI enough (99% brands)। Advanced use cases (custom events, subscription business, multi-domain tracking, offline conversion import) এর জন্য server-side GTM বা direct API implementation দরকার। Small-medium Shopify brands-এর জন্য native integration best-effort/cost tradeoff।

Event Match Quality (EMQ) কী এবং কেন important?

EMQ = Meta কতটা accurately event-এর সাথে user match করতে পারছে (0-10 scale)। High EMQ (8+) = Meta algorithm সঠিকভাবে জানে কে convert করেছে → optimization better → cost per conversion lower। Low EMQ (below 5) = Meta guessing → algorithm underperforms → ROAS drops। Improve করার উপায়: proper hashed PII (email, phone, external ID) পাঠান, more parameters send করুন (fbc, fbp cookies)।

GDPR/privacy-এর জন্য কি user consent-এর আগে events fire করা যাবে?

Bangladesh-এ GDPR strict apply না, কিন্তু Personal Data Protection Act 2023 এসেছে। Best practice: cookie consent banner add করুন, consent-এর আগে PageView-এর মতো non-sensitive events fire করুন, sensitive events (Purchase, Lead) consent-এর পর। Meta Advanced Matching-এ PII hashing bydefault হয়, কিন্তু transparency এবং user trust-এর জন্য consent-based approach recommend করা হয়।

#Facebook Pixel#CAPI#Meta#Tracking

Want us to run this for you?

Get a free 24-hour audit and a 90-day plan tailored to your brand.

Get a proposal →