How-To Guide · Analytics & Tracking

How to Install Facebook Pixel on Shopify

Add the Meta pixel to your Shopify store in four steps using the native Facebook and Instagram sales channel. No code required. Track purchases, build audiences, and optimize ads.

TL;DR Add the Facebook and Instagram by Meta sales channel in Shopify. Enable data sharing in Settings. Choose Standard, Enhanced, or Maximum sharing level. Connect your pixel. Shopify installs the code automatically, no theme editing required.

4 min read By Updated 0 steps

Originally published .

> Quick answer: Go to Shopify Settings > Apps and sales channels, add Facebook and Instagram by Meta, enable data sharing, choose a level, and connect your pixel. Shopify installs the code for you.

The Meta pixel connects your Shopify store to Facebook and Instagram ads. Without it, you're running campaigns without knowing what shoppers actually do after they click.

What is a Meta Pixel and Why You Need It

The Meta pixel is a tracking tool that reports shopper behavior back to Facebook. It takes minutes to set up and makes every ad dollar work harder.

Tracks customer actions across your store

The pixel fires on seven key events: PageView, ViewContent, Search, AddToCart, InitiateCheckout, AddPaymentInfo, and Purchase. Every step of the buying journey gets recorded and sent to Facebook.

Powers Facebook and Instagram ad optimization

Facebook uses pixel data to find new buyers who behave like your existing customers. No pixel means no signal. No signal means Facebook is guessing who to show your ads to.

Enables conversion measurement and audience building

See exactly which ads drove purchases. Build retargeting audiences from shoppers who added to cart but never completed checkout. The pixel makes both possible.

Install Meta Pixel on Shopify: Step-by-Step

Shopify's native integration handles all the code. You never need to touch your theme files for a fresh install.

Step 1: Add the Facebook and Instagram sales channel

In your Shopify admin, go to Settings > Apps and sales channels. Search for and add Facebook and Instagram by Meta. Follow the on-screen prompts to connect your Meta Business account and grant the required permissions.

Step 2: Enable data sharing

Inside the Facebook and Instagram sales channel, navigate to Settings > Share data settings. Toggle data sharing on. This is the step most store owners miss.

Step 3: Choose your data-sharing level

Pick Standard, Enhanced, or Maximum. Your choice controls how much customer data flows to Facebook. Each level is explained in the section below.

Step 4: Create or connect a Meta pixel

Select an existing pixel from your Meta Business account or create a new one from scratch. Shopify places the pixel on every page of your store automatically. No code editing required.

Understanding Data-Sharing Levels

Per the Shopify Help Center, each level controls the volume and method of data sent to Facebook. Update your store's privacy policy to disclose whichever level you choose. That disclosure is required.

Standard: Browsing behavior only

Sends shopping actions via the browser. Straightforward to set up. The downside: ad blockers can intercept browser-based data before it reaches Facebook.

Enhanced: Adds customer personal data and Conversions API

Sends customer name, email, phone number, and location using Facebook's Conversions API alongside the browser pixel. Server-to-server delivery bypasses ad blockers. Better match rates and more accurate reporting.

Maximum: Latest Facebook technology and Conversions API

Applies the most advanced Facebook matching technology on top of the Conversions API. Recommended for stores with significant ad spend and high transaction volume.

Verify Your Pixel Is Working

Check pixel status in Facebook Ads Manager

Per Meta's Business Help Center, open Events Manager inside Facebook Ads Manager. Your pixel should show as Active within a few minutes of completing setup.

Review automatic events being tracked

Shopify reports all seven standard events automatically. You don't need to configure individual events or write any custom code.

Test with a test purchase

Place a small test order in your store. Return to Events Manager and check for a Purchase event. If it appears, your pixel is live and firing correctly on real transactions.

Remove Old Pixel Code (If Applicable)

If you previously installed the pixel by pasting code into your theme, remove it before using the native integration.

Why duplicate pixels cause problems

A duplicate pixel fires twice on every event. This doubles your reported conversions and sends conflicting signals to Facebook's bidding algorithm. Campaign performance suffers as a result.

How to find and delete manual pixel code

Go to Online Store > Themes > Edit code. Search your theme files for your pixel ID. Delete the entire manual script block before launching any campaigns through the new integration.

Next Steps: Use Pixel Data for Ads

Your pixel is live. Now put that data to work.

Track conversions with accurate data

Purchase and checkout events flow directly into your campaign reports. You'll know which ads drove real revenue, not just clicks.

Build audiences for retargeting

Create custom audiences from AddToCart or InitiateCheckout visitors who didn't buy. These shoppers already know your brand and convert at higher rates than cold audiences.

Optimize campaigns with Coinis

Coinis Campaign Launcher connects to your Meta account and uses your pixel data for targeting and optimization. Build AI-generated creatives, set your audience, choose your budget, and launch directly to Facebook and Instagram. The Advertise reporting page shows real conversion data so you always know which creatives are earning their spend.

Or let Coinis do it.

From a product URL to a live Meta campaign. AI-generated creatives. On-brand copy. Direct publish to Facebook and Instagram. Real performance reporting. All in one platform.

Start free. Upgrade when you're ready.

Start free →

15 AI tokens a month. No credit card.

Frequently Asked Questions

Does Shopify install the Meta pixel automatically?

Yes, once you add the Facebook and Instagram by Meta sales channel and enable data sharing, Shopify places the pixel on every page of your store automatically. You don't need to edit any theme code.

Which data-sharing level should I choose?

Enhanced or Maximum are recommended for most stores running active ad campaigns. Both use Facebook's Conversions API for server-to-server data delivery, which ad blockers cannot intercept. Standard is fine for light tracking needs but is more vulnerable to data loss from browser-based ad blockers.

What happens if I have an old pixel already installed in my theme?

Remove it before setting up the native integration. A duplicate pixel fires twice on every event, doubling your reported conversions and confusing Facebook's optimization. Find the old code in Online Store > Themes > Edit code and delete the manual script block.

How do I know if my pixel is working after setup?

Open Events Manager inside Facebook Ads Manager. Your pixel should show as Active within a few minutes. Place a test order in your store and check for a Purchase event to confirm end-to-end tracking is working.

Stop hustling

You just read the manual way. Coinis does it all.

Every step above takes hours of manual work. Coinis automates it. Free to start. No credit card. Pay only when you need more volume.

Steps 1–2

Goal + Audience

AI analyzes your brand from a URL. Targets the right buyers automatically.

Steps 3–4

Channels + Budget

One-click launch to Meta. Smart budget allocation out of the box.

Step 5

Ad Creatives

Paste a link. Get dozens of professional ads in minutes.

Steps 6–7

Launch + Track

Live dashboard. Real ROAS. AI suggests what to optimize next.

15 credits day one
No credit card
Free forever tier
Pay only for volume
Start free

You just learned the hard way. Here's the easy way.

Coinis generates ad creatives, launches campaigns, and tracks results. One platform. One click. No ad expertise required.

Try Coinis free