How to install the Meta Pixel and Conversions API

This guide covers installing the Meta Pixel on your website, adding the Conversions API so server events back it up, and checking that events arrive in Events Manager. When you finish, Meta can see the sales or leads your ads drive.

BeginnerAbout 1 hourReviewed October 2026

The Meta Pixel is a piece of JavaScript on your website that reports what visitors do, such as viewing a page or completing a purchase. The Conversions API sends the same kinds of events from your server or platform directly to Meta, which helps when browsers or ad blockers stop the pixel. Both feed the same dataset in Events Manager.

Meta recommends sending events through both and deduplicating them, so each real purchase counts once. If you run a store on a platform like Shopify, the official integration can handle most of this for you.

Choose your install method

Open Events Manager from Ads Manager and connect a new web data source if you do not have a pixel yet. Then decide how to install it. A platform integration such as Shopify or WooCommerce is usually the most reliable. Otherwise you can use a tag manager or add code to your site. Meta’s Ads Data Advisor browser extension can also guide setup on supported platforms.

TipUse one pixel for your website and the same pixel ID for browser and server events.

On Shopify, use the Facebook & Instagram app

In your Shopify admin, go to Sales channels > Facebook & Instagram and open Settings, then the data sharing settings. Turn on customer data sharing and choose Standard, Enhanced, or Maximum. Enhanced and Maximum add the Conversions API to the pixel. Select your pixel and click Connect, or Create new, then Confirm.

Watch outRemove any Meta pixel code previously pasted into your theme first, or events will be duplicated.

Or add the base code manually

Copy your pixel’s base code from Events Manager. Paste it between the opening and closing head tags on every page you want to track, usually in a site-wide header so it loads everywhere. Leave the PageView call in the code intact. If your mobile site is separate from your desktop site, install the pixel on both.

Track the actions that matter

PageView fires automatically. Add standard events for your key actions, such as Purchase on the order confirmation, Lead on a form thank-you page, or AddToCart. A Purchase event needs a value, and you should send the currency too. Use Meta’s standard event names where possible. You can also create custom conversions in Events Manager from URL rules, up to 100 per ad account.

Add the Conversions API

Pick the route that fits. Platform integrations like the Shopify app set it up for you. Meta’s documentation also describes an option in Events Manager for sending website events without hosting anything, and the Conversions API Gateway, which runs in your own AWS or Google Cloud account. For a direct integration, a developer generates an access token under Settings in Events Manager.

Set up deduplication

When the same event is sent by the pixel and the Conversions API, Meta needs to know it is one event. The recommended method is to send the same event name and a matching event ID from both: eventID in the pixel and event_id on the server. Meta only deduplicates events received within 48 hours of the first one with that ID. Platform integrations usually handle this automatically.

Test with Test Events

In Events Manager, select your pixel and open Test Events. Load your site, perform the actions you are tracking, and confirm each event appears. Disable ad blockers while testing. The Meta Ads Data Advisor extension, formerly Meta Pixel Helper, also shows which pixel events fire on each page. Server events can be checked with a test event code.

Watch outRemove any test event code from your live server setup once testing is done.

Check event quality on the Overview tab

Within about 20 minutes of sending events, they should appear on the Overview tab for your pixel. Open Event Details for an event and check the Event Deduplication tab to confirm browser and server events are merging. Meta also shows an Event Match Quality score from 1 to 10 and recommends 6.0 or higher.

Verify your domain

In your business portfolio settings, verify the website domain your ads link to, using either a DNS TXT record or an HTML file uploaded to your site’s root folder. Domain verification proves you own the site and controls who can edit link previews that point to it. It is a quick task worth completing even if Meta does not require it for your setup.

Before you move on

  • Only one copy of your pixel loads on each page
  • Key events appear in Test Events when you perform them
  • Purchase events include a value and currency
  • Server events are arriving and the deduplication tab shows them merging
  • Your domain is verified in the business portfolio

Official resources

Ad platforms update their tools often. This guide was last reviewed against the official documentation above in October 2026. If your screen looks different, the official help pages have the latest steps.

At a glance

Level
Beginner
Time
About 1 hour
What you need
  • Admin access to your Meta business portfolio and ad account
  • Access to your website platform or code, or your developer
  • A list of the actions you want to track, such as purchases or form submissions
  • Google Chrome or Microsoft Edge for Meta's browser extension

Where DIY setups go wrong

The most common problems with self-built Meta Ads setups, and what they cost.

Installing the pixel twice

Pasting code into a theme and also connecting a platform app loads two pixels, which duplicates events and inflates reported conversions.

Browser only tracking

Pixel events can be blocked by browsers and ad blockers. Without the Conversions API, Meta sees fewer of your real conversions and optimizes on incomplete data.

Missing or mismatched event IDs

If the pixel and server send the same purchase without matching IDs, Meta counts it twice. Reports look better than reality, and decisions follow.

Sending data Meta restricts

Meta can restrict custom conversions it flags, and flagged ones cannot be used for new campaigns. Keep sensitive details, such as health information, out of URLs and event parameters.

Testing with an ad blocker on

Blockers stop the pixel from firing, which makes a working install look broken and sends people chasing the wrong fix.

What this guide doesn't cover

Getting events to appear is the first step. What drives results is the quality of that data: complete customer information for matching, correct values, proper consent handling, and server events that agree with your store or CRM.

ADM sets up deduplicated Pixel and Conversions API tracking for every Meta account we manage, because bidding and budget decisions are only as good as the data behind them.

  • Improving Event Match Quality with customer information
  • Consent and privacy settings by region
  • Offline and CRM conversions for lead generation
  • Value tracking for profit based optimization
  • Attribution windows and reconciling with your store
  • Ongoing monitoring when sites or apps change

Common questions

Is the Meta Pixel enough on its own?

It works, but Meta recommends pairing it with the Conversions API. Server events fill gaps when browsers block the pixel, and deduplication keeps counts accurate.

What happened to Meta Pixel Helper?

Meta replaced it with Meta Ads Data Advisor, a free Chrome and Edge extension. Existing Pixel Helper users were updated, and the diagnostic features are still there.

How long until events show up?

Test Events shows them as you trigger them. On the Overview tab, Meta says events should be verifiable within about 20 minutes.

Do I need a developer?

Not always. Platform integrations like Shopify's Facebook & Instagram app handle the pixel and Conversions API. Custom sites or server integrations usually need one.

Rather have it built right the first time?

If your business does $25,000+ a month in revenue, apply and Mitch will review your accounts personally. Earlier than that? An ad account audit gives you a senior-level fix list you can work through yourself.