> 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.
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.