A step-by-step guide to installing Meta Pixel and Conversions API on your website. Covers Events Manager setup, Google Tag Manager installation, standard events, custom conversions, and server-side tracking. Built for marketers running Facebook and Instagram ads.
Last updated: March 2026 · Reading time: 11 min
“We’ve audited Meta ad accounts where the pixel was technically installed but misconfigured. Events firing on the wrong pages, no Conversions API, duplicate event IDs missing. These accounts were hemorrhaging 30-40% of their conversion data. A proper pixel setup isn’t a technical chore. It’s the foundation that every dollar of ad spend depends on.”
Hardik Shah, Founder of ScaleGrowth.Digital
When someone clicks your Facebook or Instagram ad and lands on your website, the pixel fires and records what they do: pages viewed, products added to cart, forms submitted, purchases completed. That data feeds back into Meta’s machine learning system, which uses it to find more people like your converters and show your ads to them. Without the pixel, Meta’s algorithm operates on click data alone. It knows someone clicked your ad but has no idea what happened next. With the pixel, the algorithm sees the full picture and optimizes for actual outcomes, not just clicks. Advertisers using properly configured pixel tracking see 20-30% better cost-per-acquisition compared to those relying on click optimization alone, according to Shopify’s Meta Pixel guide (2026). Meta rebranded Facebook Pixel to Meta Pixel in 2022, but the functionality is the same. You’ll see both names used interchangeably across Meta’s own documentation. The pixel ID, the code, and the Events Manager interface all carry the Meta branding now.Meta Pixel is a piece of JavaScript code that you place on your website to track visitor actions, build retargeting audiences, and send conversion data back to Meta’s ad algorithm for optimization.
| Requirement | Where to Get It | Why It’s Needed |
|---|---|---|
| Meta Business Suite account | business.facebook.com | Pixels live inside Business Manager, not personal accounts |
| Admin access to your website | Your CMS or hosting provider | You’ll add code to the <head> section of every page |
| Ad account connected to Business Manager | Business Suite > Settings > Ad Accounts | The pixel must be linked to an ad account for optimization |
| Website with HTTPS | Your hosting provider | Meta won’t fire the pixel on non-secure (HTTP) pages |
<head> and </head> tags of every page. The code must load on every page, not just your homepage or landing pages.
If your site uses a templating system (like a header.php file in WordPress themes), paste the code into the shared header template so it loads site-wide from a single file.
| Event Name | When to Fire | Key Parameters |
|---|---|---|
| PageView | Every page load (fires automatically from base code) | None required |
| ViewContent | Product page or key content page viewed | content_name, content_ids, value, currency |
| AddToCart | Item added to shopping cart | content_ids, content_type, value, currency |
| InitiateCheckout | Checkout process started | value, currency, num_items |
| Purchase | Order confirmation / thank-you page | value, currency, content_ids (required) |
| Lead | Form submission (contact, demo request) | value, currency |
| CompleteRegistration | Account creation or sign-up | value, currency, status |
| Subscribe | Subscription started (SaaS, newsletter) | value, currency, predicted_ltv |
fbq('track', 'Purchase', {value: 49.99, currency: 'USD'});. Place it below the base code on the target page, or fire it via a GTM trigger when the relevant action happens.
Running pixel-only tracking in 2026 means you’re losing data on every iOS user who opted out of tracking (roughly 75-85% of iOS users), every visitor using an ad blocker (30-40% of desktop users), and every user who declines cookie consent. CAPI fills those gaps by transmitting events server-to-server. The setup depends on your platform:Conversions API (CAPI) is Meta’s server-side tracking method that sends conversion data directly from your server to Meta’s servers, bypassing browser-based limitations like ad blockers, cookie restrictions, and iOS privacy controls.
https://graph.facebook.com/v19.0/{PIXEL_ID}/events.event_name, event_time (Unix timestamp), user_data (hashed email, phone, or other identifiers), and action_source (“website”).event_name and event_id within a 48-hour window. You must send the same event_id from both the pixel and CAPI for each action. Without deduplication, your conversion counts will double, and your cost-per-acquisition data becomes meaningless.
Pass real purchase values with your Purchase events instead of using flat conversion values. Meta’s algorithm can then optimize for highest-value customers, not just the most conversions. We’ve seen clients cut cost-per-acquisition by 25% after switching from flat to dynamic values.
Track intermediate steps like scroll depth, time on page, and video views as custom events. These give Meta’s algorithm more signals to optimize around, especially during the learning phase when you have few purchases or leads.
Use consistent naming: “[Brand] – [Site] – [Purpose]”. When you manage 5+ pixels across clients, clear naming prevents the wrong pixel from being assigned to the wrong ad account.
Schedule a monthly check of Events Manager Diagnostics. Site updates, plugin changes, and CMS upgrades can break pixel installations silently. Catching a broken pixel in 3 days versus 30 days saves thousands in wasted ad spend.
Running Google Ads alongside Meta? Our audit checklist covers conversion tracking, audience setup, and bid strategy review across both platforms. Get Checklist →
Calculate your return on ad spend for Meta campaigns once your pixel is tracking purchases with revenue values. Use Calculator →
The full Google Tag Manager setup checklist for marketing teams managing multiple tracking codes, including Meta Pixel, GA4, and LinkedIn Insight Tag. Get Checklist →
Yes. Meta rebranded Facebook Pixel to Meta Pixel in 2022 when the company changed its name from Facebook to Meta. The functionality, code structure, and Events Manager interface are identical. You’ll see both terms used in documentation and marketing materials.
Each Business Manager can create up to 100 pixels. For most businesses, one pixel per website is sufficient. Only create multiple pixels if you have genuinely separate websites with distinct audiences and ad accounts. Using one pixel across related subdomains and paths is the standard best practice.
Yes, in 2026 you need both. The pixel alone misses conversions from iOS users who opted out of tracking, desktop users with ad blockers, and visitors who decline cookie consent. Meta’s own documentation recommends the “Meta Pixel and Conversions API” combination for the most complete tracking and best ad optimization results.
The pixel script adds roughly 50-80KB to page load and typically loads asynchronously, meaning it shouldn’t block page rendering. On a well-optimized site, the pixel adds less than 100ms to total load time. If you’re concerned about performance, load the pixel via Google Tag Manager with a “Window Loaded” trigger instead of “All Pages” for non-critical event tracking.
Events typically appear in the Test Events section within seconds. Standard reporting in Events Manager can take up to 20 minutes to update. Aggregated Event Measurement (AEM) reports for iOS data may take 24-72 hours due to Meta’s privacy-preserving aggregation process.
Our paid media team configures pixel + CAPI setups with proper deduplication, event mapping, and audience architecture. Get it right the first time. Talk to Our Paid Media Team →