The Meta Pixel connects your Shopify store to your Instagram and Facebook ad campaigns. Without it, you're running ads with no visibility into what's actually converting. Here's how to set it up correctly.
---
Why Install a Pixel on Your Shopify Store
A pixel turns your ad account from a guessing game into a feedback loop.
Track customer behavior and purchases
The Meta Pixel fires on every page visit, product view, add-to-cart, and purchase. Per Meta's developer documentation, those tracked conversions appear directly inside Ads Manager. Once the pixel is connected via Shopify's native integration, Shopify logs ecommerce events automatically. No extra setup required.
Measure ad campaign effectiveness
Without pixel data, you can't see which ads drove sales and which ones just burned budget. The pixel ties every ad click to a real purchase event, so cost per conversion becomes a real number you can act on.
Build custom audiences for retargeting
Pixel data powers audience lists built from real behavior. Target people who viewed a product but didn't buy. Exclude people who already purchased. These lists update automatically as new visitors hit your store.
---
Method 1: Install Pixel via Shopify's Native Integration (Recommended)
Shopify's built-in integration handles the pixel code for you. No copy-pasting, no theme editing.
Step 1: Access Facebook & Instagram Sales Channel
In your Shopify admin, go to Sales Channels. Add the Facebook & Instagram channel if it isn't installed yet. Click the channel to open its settings.
Step 2: Enable Data Sharing
Inside the channel settings, find the Data Sharing section. Toggle data sharing on. Per Shopify's Help Center, you must explicitly select a sharing level before the pixel activates. There is no automatic default.
Step 3: Choose Your Data-Sharing Level
Shopify offers three levels:
- Standard — behavioral events only (page views, add-to-cart, purchases).
- Enhanced — adds customer name, location, and email to event data.
- Maximum — sends all available customer data with each event.
Choose based on your privacy policy and market. Enhanced and Maximum levels carry additional obligations under GDPR and CCPA. When in doubt, start with Standard.
Step 4: Connect or Create Your Meta Pixel
Click Connect account and follow the prompts to link your Facebook Business account. Then select an existing pixel or create a new one. Shopify injects the pixel base code across your store automatically.
Step 5: Verify Installation with Pixel Helper
Install the free Meta Pixel Helper Chrome extension. Open your store in a browser tab. The extension shows which pixels are active and which events are firing on each page. A green checkmark confirms the pixel is working correctly.
---
Method 2: Manual Pixel Installation (If Needed)
Only use this method if Shopify's native integration isn't available for your specific setup.
Find your Pixel ID in Ads Manager
Go to Meta Ads Manager, then open Events Manager. Locate your pixel and copy the Pixel ID.
Copy the base code
In Events Manager, click Set up, then choose Install code manually. Copy the full base code snippet that appears.
Add code to your theme
In Shopify admin, go to Online Store, then Themes. Click Edit code and open `theme.liquid`. Paste the base code between the `
` and `` tags. Per Meta's developer documentation, the base code must live inside the `` tags on every page where you want to track activity.---
Important: Remove Duplicate Pixel Code
Duplicate pixels are one of the most common tracking errors on Shopify stores.
Why duplicate pixels break tracking
If you connected the pixel through Shopify's native integration and also added the base code manually to your theme, both will fire at the same time. Every event gets counted twice. Your conversion totals, audience sizes, and campaign optimization signals all become unreliable.
How to check for and remove old pixel code
Open Pixel Helper on your store. If it shows two instances of the same Pixel ID firing on a single page, you have a duplicate. Go to `theme.liquid` in your theme editor, find the manually added snippet, and delete it. Keep only the native integration active.
---
Next: Monitor Your Pixel with Coinis Advertise
Installing the pixel is step one. Making sense of what it collects is step two. The Coinis Advertise page surfaces real-time performance data from your Meta campaigns, so you can see which ads are driving purchases, spot underperforming ad sets before they drain your budget, and track results across every active campaign from one dashboard.
---
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
Do I need separate pixels for Instagram and Facebook?
No. One Meta Pixel covers both Instagram and Facebook ads. Meta unified them into a single pixel, so one installation tracks activity across both platforms.
What happens if I don't choose a data-sharing level in Shopify?
The pixel won't activate. Per Shopify's Help Center, you must explicitly select Standard, Enhanced, or Maximum before data sharing turns on. There is no default selection applied automatically.
Can I switch data-sharing levels after the pixel is already live?
Yes. Go back to the Facebook & Instagram sales channel settings in Shopify and change the level at any time. The change takes effect immediately on new events.