Meta Pixel

If you run Facebook or Instagram ads for an online store, Meta Pixel is the single most important piece of code on your website. Without it, you are advertising blind — spending money on ads with no way to know who saw them, who bought, and which audiences are worth pursuing.

Meta Pixel (formerly called Facebook Pixel or FB Pixel) is a small snippet of JavaScript code you install on your website. Once installed, it fires invisibly in the background every time a visitor lands on your site, tracking what they do: which pages they view, what they add to cart, and whether they complete a purchase.

This guide covers everything you need to know: what Meta Pixel is, how it works, how to install it on Shopify and WooCommerce, how to test it, how to troubleshoot common problems, and how it differs from the Conversions API.

Quick answer: Meta Pixel is the tracking code that connects your website to Facebook and Instagram Ads Manager, letting you measure conversions, build retargeting audiences, and optimise campaigns for real purchase events.

Meta Pixel Definition

Meta Pixel is an analytics and tracking tool provided by Meta (the parent company of Facebook and Instagram). It is a piece of JavaScript code — typically around 30–40 lines — that you embed in the head section of every page on your website.

Once installed, the pixel communicates with Meta's servers every time a user visits your website and triggers one of the tracked events. This information flows into your Ads Manager and Events Manager, where you can use it to:

  • Measure which ads are actually driving sales
  • Create retargeting audiences of people who visited your site but did not buy
  • Build lookalike audiences of people who resemble your existing customers
  • Optimise ad delivery toward users most likely to purchase

What Is Meta Pixel Used For?

With Meta Pixel, you can:

  • Retargeting (Remarketing): Advertise to people who have already visited your website — one of the highest-ROAS tactics in digital advertising
  • Prospecting: Target new customers who share characteristics with your existing buyers
  • Conversion tracking: Measure exactly which ads and audiences are driving real purchases

Meta Pixel Standard Events: The Complete List

Meta Pixel tracks specific actions called "events." There are 17 standard events that Meta recognises:

  • Purchase — a person has bought something from your online store
  • AddToCart — a person has added a product to the cart
  • InitiateCheckout — a person has begun a checkout process
  • AddPaymentInfo — a person has filled in payment details
  • ViewContent — a person has visited a specific page (e.g. a product page)
  • Search — a person has used a search field on your website
  • Lead — a person signs up for a free trial, submits their email, etc.
  • CompleteRegistration — a person has completed a registration form
  • AddToWishlist — a person adds a product to the wishlist
  • Contact — a person has contacted your business
  • CustomizeProduct — a person has requested a modified version of your product
  • Donate — a person has donated to your initiative
  • FindLocation — a person has searched for the address of your location
  • Schedule — a person has scheduled a meeting
  • StartTrial — a person has begun a trial period
  • SubmitApplication — a person has submitted an application
  • Subscribe — a person has subscribed to your product or service

For most eCommerce stores, the five events that matter most are: Purchase, AddToCart, InitiateCheckout, ViewContent, and Search.

iOS 14 note: Apple's App Tracking Transparency framework means you can only optimise your Meta campaigns for up to 8 events per domain. You must verify your domain and prioritise events in Events Manager — Purchase should always be your top priority.

How to Install Meta Pixel on Shopify (Step-by-Step)

Option 1: Connect Through Facebook and Instagram Sales Channel (Recommended)

  1. In your Shopify admin, go to Settings > Apps and sales channels
  2. Search for and install the Facebook and Instagram sales channel (official Meta app)
  3. Open the app and click Connect account
  4. Log in to your Facebook account and grant permissions
  5. Under Setup, click Set up Meta Pixel
  6. Select the Facebook Business Manager account and the Pixel you want to use
  7. Enable Customer Data Sharing and set it to Maximum for best performance
  8. Click Save to complete the connection

Once connected, your Pixel will automatically track ViewContent, AddToCart, InitiateCheckout, and Purchase events across your entire store — no manual code installation needed.

Option 2: Add Meta Pixel Code Manually

  1. Get your Pixel base code from Meta Events Manager > your Pixel > Set Up > Install Code Manually
  2. In Shopify admin, go to Online Store > Themes > Edit code
  3. Open theme.liquid
  4. Paste the full Pixel base code immediately after the opening head tag
  5. Click Save
  6. For accurate purchase tracking, also add the Purchase event to the order confirmation page via Shopify's Additional Scripts under Checkout settings

Using Adwisely? If your store runs Adwisely for automated Facebook, Instagram, or Google ads, Adwisely handles the Pixel connection automatically as part of onboarding. You do not need to do any manual setup.

How to Install Meta Pixel on WooCommerce

For WooCommerce stores, the simplest route is to use a dedicated Meta Pixel plugin:

  • PixelYourSite — widely used, free tier available, supports all standard events
  • Facebook for WooCommerce (official Meta plugin) — install from WordPress.org

With PixelYourSite: install the plugin, enter your Pixel ID in Settings > PixelYourSite, enable WooCommerce events (AddToCart, InitiateCheckout, Purchase), and save. The plugin handles all event tracking automatically.

How to Verify Meta Pixel Is Working

1. Meta Pixel Helper (Chrome Extension)

The Meta Pixel Helper is a free Chrome browser extension that shows you in real time whether the Pixel on any webpage is loading and firing correctly. Install it from the Chrome Web Store, visit your website, and click the extension icon — you will see immediately whether events are firing and whether there are any errors.

2. Meta Events Manager Test Events

Go to Meta Events Manager > your Pixel > Test Events. Enter your website URL, perform actions on your site (view a product, add to cart), and watch events appear in real time. This method shows exactly what Meta's servers are receiving.

3. Check Events Manager for Recent Activity

Once your Pixel has been running for a few hours, go to Events Manager > your Pixel. Under the Overview tab you will see a chart of recent event activity. If you see events appearing, your Pixel is working. If the chart is flat, there is likely an installation problem.

Meta Pixel vs Conversions API: What is the Difference?

The Conversions API (CAPI) is a newer Meta tracking technology that works alongside the Pixel — not instead of it. Meta Pixel tracks events through the visitor's browser (client-side). The Conversions API tracks events from your server directly to Meta (server-side), bypassing iOS 14 restrictions and ad blockers.

Meta recommends using both together for the most complete and accurate conversion data. For most Shopify and WooCommerce stores, starting with Meta Pixel alone is the right approach — then layer on the Conversions API once the Pixel is verified and working.

Using Meta Pixel for Retargeting and Custom Audiences

The most powerful use of Meta Pixel is building Custom Audiences — lists of people who have already interacted with your store — and targeting them with highly relevant ads. This strategy is called retargeting.

Common retargeting audiences you can build with Pixel data:

  • All website visitors in the last 30, 60, or 90 days
  • People who viewed a specific product page but did not add to cart
  • People who added to cart but did not complete checkout
  • People who initiated checkout but did not purchase
  • Existing customers (to encourage repeat purchases)

You can also use Pixel data to create Lookalike Audiences — Meta finds people who share similar characteristics to your existing customers. These are among the most effective prospecting audiences available on the platform.

How to Troubleshoot Meta Pixel Problems

Pixel Is Not Firing

  • Check that the Pixel code is in the head section of every page, not just the homepage
  • Check that the Pixel ID in the code matches the ID in Events Manager
  • If using a plugin, make sure it is activated and configured with your correct Pixel ID
  • Clear your browser cache and check again with Pixel Helper

Events Are Not Being Tracked

  • For Shopify: ensure the Facebook and Instagram sales channel has Customer Data Sharing enabled (set to Maximum)
  • For WooCommerce: if installed manually, WooCommerce-specific event code must be added separately from the base code
  • Use the Test Events tool in Events Manager to simulate events and confirm they are being received

Duplicate Pixel Events

  • You likely have the Pixel installed in multiple places (e.g., both via a plugin and manually in theme.liquid)
  • Check your theme code, any pixel plugins, and the Shopify Facebook channel for duplicate installations
  • Remove all but one installation source

How Do I Create a Meta Pixel?

You create Meta Pixel in Meta Business Manager. Before you begin, you may need to create a Facebook Business Manager at business.facebook.com.

  1. In Business Manager, open Business Settings
  2. Click Data Sources, then Pixels
  3. Click the + Add button
  4. Write in the name for the Pixel
  5. Optional: enter the URL of your website
  6. Click Continue
  7. Click Set up the Pixel Now to install

How Do I Find My Existing Meta Pixel?

  1. Go to business.facebook.com and log in
  2. Click Business Settings
  3. Click Data Sources, then Pixels
  4. All Pixels associated with your Business Manager are listed here — your Pixel ID appears in parentheses beneath each name

Does Meta Pixel Work with Instagram?

Yes. Because Facebook and Instagram ads are both managed through Meta Ads Manager, a single Meta Pixel covers both platforms. You do not need a separate Pixel for Instagram.

What Is a Meta Pixel ID?

Your Meta Pixel ID is a unique 15-16 digit number that identifies your specific Pixel. You will need it when installing the Pixel manually, connecting a third-party app like Adwisely, or troubleshooting issues. To find it: Business Settings > Data Sources > Pixels — the ID appears in parentheses next to the Pixel name.

How Much Does Meta Pixel Cost?

Meta Pixel is completely free. There is no charge to create, install, or use a Pixel. You pay for the ad campaigns that use Pixel data, but the tracking tool itself costs nothing.

Frequently Asked Questions About Meta Pixel

Is Meta Pixel the same as Facebook Pixel?

Yes. Facebook Pixel was renamed to Meta Pixel in 2021. They are the same tool. Documentation referring to "Facebook Pixel" or "FB Pixel" means the same thing.

Can I have multiple Meta Pixels on one website?

Not recommended. Multiple Pixels on the same site cause duplicate event tracking, inflating your conversion numbers. Best practice is one Pixel per domain.

How long does it take for Meta Pixel data to appear?

Pixel data typically appears in Events Manager within a few minutes. Campaign reporting can take up to 24 hours to update.

Does Meta Pixel work after iOS 14?

Yes, but with limitations. Apple's App Tracking Transparency framework means browser-based Pixel tracking now misses approximately 20-30% of iOS conversion events. Using the Conversions API alongside your Pixel helps recover this lost signal.

Is Meta Pixel GDPR compliant?

Meta Pixel can be GDPR compliant if you obtain user consent before loading it. Implement a cookie consent banner and only activate the Pixel after consent is given. Consult a legal professional for advice specific to your situation.

Why is my Meta Pixel showing 0 events?

This usually means the Pixel is installed but not firing. Check that the code is on every page, the Pixel ID matches Events Manager, and you are visiting the live site not a staging environment. Use the Meta Pixel Helper Chrome extension to diagnose.

You do not have to be a marketing guru with a sky-high ad budget to boost sales for your eCommerce store. Install Adwisely to set up ads on Facebook, Instagram, and Google in under 10 minutes. Get the app to automate your campaigns and enjoy 600% ROAS on average.

Meta Pixel on Shopify: Installation, Dual Tracking, and Shopify Audiences

Shopify merchants have a streamlined path to Meta Pixel setup — and access to tracking capabilities beyond what a standard pixel installation provides.

How to install Meta Pixel on Shopify. The recommended method is through the Facebook & Instagram app (by Meta) in the Shopify App Store. Installing this app automatically adds the Meta Pixel to every page of your store and configures standard events (PageView, ViewContent, AddToCart, InitiateCheckout, Purchase) without requiring any manual code. It also sets up the Conversions API connection automatically, giving you server-side event tracking out of the box.

Dual tracking: browser pixel + Conversions API. This is the most important thing to understand about Meta Pixel on Shopify. The Facebook & Instagram app implements both browser-side pixel tracking AND server-side Conversions API (CAPI) tracking simultaneously. When a customer completes a purchase, the Purchase event fires in the browser (from the pixel) AND from Shopify's servers (via CAPI). Meta deduplicates these using an event ID to avoid double-counting. The result: purchase events are captured even when a customer has an ad blocker, uses Safari with ITP, or has restricted ATT tracking on iOS. This significantly improves the quality of your retargeting audiences, lookalike seeds, and conversion attribution.

Shopify Pixel vs. manually installed pixel. If you install the Meta Pixel manually via Shopify's theme code or a third-party tag manager, you only get browser-side tracking — no CAPI. For most Shopify stores, using the official Facebook & Instagram app is the better choice because of the automatic CAPI integration. The only scenario where manual installation is preferable is if you need fine-grained control over which events fire and when, or if you're implementing a custom Shopify Web Pixel via the Pixel API.

Shopify Audiences and the Meta Pixel. Shopify Audiences (available on Advanced and Plus plans) complements your Meta Pixel by providing a higher-quality audience signal for prospecting campaigns. While the Meta Pixel powers your retargeting audiences from your own visitors, Shopify Audiences draws on aggregated purchase data from across the Shopify merchant network to create prospecting audiences that go beyond what a single store's pixel can generate. Both work together: pixel data for retargeting, Shopify Audiences for cold prospecting.