Book a call

How do I set up the Meta Pixel on Shopify?

Updated

Install Shopify's Facebook & Instagram app, connect your Meta business portfolio, then turn on customer data sharing and choose your pixel. You don't need to paste any code into your theme.

The app adds the pixel to Settings, then Customer events, so it runs on your store pages and checkout. The data sharing level decides what it sends: Standard uses the browser pixel only, while Enhanced and Maximum add the Conversions API and customer details.

The common mistake is a second copy of the same pixel, pasted into the theme years ago or added by another app. Shopify warns that if you don't remove old pixel code, your store will have more than one pixel on it, and purchases can be counted twice.

Check it yourself

  1. 1

    Check you have admin access to a Meta business portfolio with your Facebook Page and ad account. You can create one during setup if you don't have one.

  2. 2

    Install the Facebook & Instagram app from the Shopify App Store and connect your Facebook account, business portfolio, Page and ad account.

  3. 3

    Go to Sales channels, then Facebook & Instagram, then Settings, then Data sharing settings. Turn on customer data sharing, choose a level and select the pixel your ads already use, or create a new one.

  4. 4

    Remove old pixel code: go to Online Store, then Themes, open Edit code on your live theme and look in theme.liquid for Meta pixel code in the head section. Also check the Meta pixel field in Online Store, then Preferences.

  5. 5

    In Meta Events Manager, open the pixel, go to Test events, then browse your store, add a product to the cart and place a test order. Each event should arrive once from each source.

When to ask for help

If an agency or another app already sends events to the same pixel, or you find pixel code you can't place, ask for help before you switch anything on. Two sources for the same purchase will inflate your results.

Book a call

Pick a time that suits you. The calendar only shows slots we're actually free, and you get an invite straight away.

Booking runs on Google Calendar. Open it in a new tab