The Meta Pixel is the foundation of every profitable Meta Ads campaign. Without it, Meta cannot optimise your ads for purchases, you cannot build retargeting audiences from website visitors, and you cannot accurately measure your ROAS. Setting it up correctly in 2026 is slightly different from previous years — iOS privacy changes mean you also need the Conversion API running alongside your pixel for accurate tracking. This step-by-step guide covers the complete setup for Indian businesses on Shopify, WordPress/WooCommerce, and custom websites.
What the Meta Pixel Actually Does

The Meta Pixel is a small piece of JavaScript code that you install on every page of your website. When visitors land on your site, the pixel fires and sends data back to Meta — which pages they visited, whether they added a product to cart, whether they completed a purchase, and what value that purchase was worth.
This data does three things for your ad campaigns:
- Optimisation: Meta uses purchase and conversion data to find more people like your buyers
- Retargeting: You can create audiences of people who visited specific pages, added to cart, or abandoned checkout
- Measurement: You can see exactly which ads, audiences, and creatives are driving purchases — and at what cost
Without a correctly firing pixel, you are running blind — spending money without knowing what is working.
Step 1: Create Your Pixel in Meta Events Manager
Start at business.facebook.com → Events Manager → Connect Data Sources → Web → Meta Pixel.
- Give your pixel a name (use your brand name — e.g., “ScaleWithKedar Pixel”)
- Enter your website URL and click Check
- Meta will confirm whether your site has a pixel installed already
- Click Continue → you will see your Pixel ID (a 15–16 digit number) — save this
Important: create only one pixel per website. Multiple pixels on the same site cause duplicate event tracking, which inflates your reported conversions and confuses Meta’s algorithm. If you see multiple pixels in Events Manager for the same domain, consolidate them.
Step 2: Install the Pixel on Your Website
For Shopify users (recommended method):
- In Shopify Admin → go to Sales Channels → Facebook & Instagram
- Connect your Meta Business Account
- Shopify will automatically install the pixel and standard events — no manual code needed
- Verify in Events Manager that Purchase, AddToCart, and InitiateCheckout events are firing
For WordPress / WooCommerce users:
- Install the official Meta for WordPress plugin (formerly Facebook for WordPress)
- Connect your Meta Business account through the plugin setup wizard
- The plugin automatically adds the pixel base code and WooCommerce purchase events
- Alternative: use PixelYourSite plugin for more granular event control and better CAPI integration
For custom websites (manual installation):
- Copy the pixel base code from Events Manager → your pixel → Set Up → Install Code Manually
- Paste the code between the <head> and </head> tags on every page of your site
- Add standard event code to specific pages: ViewContent on product pages, AddToCart on cart, InitiateCheckout on checkout start, Purchase on the order confirmation page
Step 3: Set Up the Conversion API (CAPI)
The browser-based pixel alone is no longer sufficient in 2026. Since Apple’s iOS 14 update, a significant portion of Indian iPhone users have opted out of tracking — meaning the pixel misses their conversions. The Conversion API (CAPI) sends conversion data directly from your server to Meta, bypassing browser restrictions.
Running both pixel + CAPI together (called “redundant” setup) gives Meta the most complete picture of your conversions, improves algorithm optimisation, and reduces the gap between Meta-reported ROAS and your actual Shopify/website revenue.

For Shopify: CAPI is automatically enabled when you use the native Facebook & Instagram Sales Channel — no additional setup needed.
For WordPress/WooCommerce: The PixelYourSite Pro plugin includes CAPI integration. Alternatively, use Meta’s partner integrations — in Events Manager → Settings → Conversions API → choose your platform.
For custom sites: Meta provides a CAPI gateway (no-code option) or a direct API integration for developers. The gateway option is easiest for most Indian businesses without a dedicated dev team — it routes server events through Meta’s own infrastructure.
Step 4: Verify Your Events Are Firing Correctly
This step is critical and skipped by most Indian advertisers — with expensive consequences. An incorrectly firing pixel can double-count purchases (inflating ROAS and wasting budget on optimisation signals Meta cannot use) or miss purchases entirely (causing campaigns to perpetually stay in learning phase).
Use the Meta Pixel Helper Chrome extension:
- Install Meta Pixel Helper from the Chrome Web Store
- Visit your website — the extension icon will show a green badge if a pixel is detected
- Navigate through a purchase flow (add to cart → checkout → order confirmation) and verify that AddToCart, InitiateCheckout, and Purchase events fire on the correct pages
- Check that the Purchase event includes a value parameter (the order value in INR) and currency: “INR”
Use Events Manager Test Events:
- In Events Manager → your pixel → Test Events
- Enter your website URL and click Open Website
- Complete a test purchase — Events Manager shows real-time event data as it fires
- Confirm all 4 key events appear: PageView, ViewContent, AddToCart, InitiateCheckout, Purchase
Step 5: Verify Domain and Configure Aggregated Event Measurement
Since iOS 14, Meta requires domain verification and Aggregated Event Measurement (AEM) configuration for all advertisers tracking website conversions. Without this, your campaigns may be restricted or under-delivering to iOS users.
- In Meta Business Settings → Brand Safety → Domains → Add your domain
- Verify domain ownership via DNS record, HTML file, or Meta tag method
- Once verified, go to Events Manager → your pixel → Aggregated Event Measurement → Configure Web Events
- Set your priority event order — Purchase should always be #1, followed by InitiateCheckout, AddToCart, ViewContent
- You can configure up to 8 events per domain under AEM
Common Pixel Mistakes Indian Advertisers Make
- 🚩 Multiple pixels on one website — causes duplicate events; use one pixel per domain only
- 🚩 Purchase event not firing on the order confirmation page — most common tracking gap; verify the thank-you/confirmation page specifically
- 🚩 Missing value parameter on Purchase event — Meta cannot accurately report ROAS without the purchase value
- 🚩 Currency not set to INR — leads to incorrect ROAS calculation in Meta reporting
- 🚩 No CAPI setup — missing a significant portion of iOS conversions in 2026
- 🚩 Domain not verified — campaigns may be delivery-restricted to iOS users
How Long Does It Take to See Data?
Once your pixel is correctly installed, you will start seeing PageView data immediately. Purchase events appear in Events Manager within minutes of a completed transaction during the test. In your actual campaigns, the Purchase event will start populating conversion data as soon as real customers complete purchases — typically within the first 24–48 hours of running a Sales campaign with a correctly set up pixel.
For Meta’s algorithm to properly optimise for purchases, your account needs a minimum of 50 purchase events per week across all campaigns. Below that threshold, consider optimising for a higher-volume event (AddToCart or InitiateCheckout) until your purchase volume builds. Most Indian D2C brands reach 50+ weekly purchases within the first 4–6 weeks of running well-funded campaigns.
Running ads and not getting results? Book a free 30-minute strategy call — I’ll audit your account for free.