Key Takeaways
- 1In Shopify’s Facebook & Instagram sales channel, install Meta Pixel: open Settings, then Share data settings, enable data-sharing, choose Standard, Enhanced, or Maximum, select your pixel, and click Confirm.
- 2End testing with Clear activity rather than waiting 24 hours for test information to disappear, without deleting activity from Ads Reporting, Audience Creation results, or Meta Events Manager.
Install Meta Pixel through Shopify's official Facebook and Instagram by Meta channel, choose your data-sharing level, and check your store's events.
Meta Pixel is website code for measuring Meta advertising through website actions. On Shopify, install it through Facebook and Instagram by Meta.
According to Meta, before you begin, you need:
- A Shopify online store on the Basic Shopify plan or higher, without password protection.
- A Facebook Page for your business.
- A Meta business portfolio that owns your business's Facebook Page, with admin permissions for that portfolio.
To create Facebook ads, Shopify says you need to connect a Facebook ad account.
Before activating tracking, check the consent, notice, and data-sharing opt-out requirements that apply in the regions you serve. Review your store's privacy policy, cookie banner, and data sharing opt-out page. Shopify instructs you to set consent regions in the Shopify admin. Test your privacy controls before sharing personal information with Meta.
How do I install the Meta pixel?
Install Meta Pixel on Shopify through Facebook and Instagram by Meta: click Settings, then Share data settings, enable data sharing, and select your pixel.
To install Meta Pixel on Shopify:
- Go to Sales channels > Facebook & Instagram from your Shopify admin.
- Click Settings, and then click Share data settings.
- Click the Enable data-sharing toggle in the Customer data-sharing section.
- Select Standard, Enhanced, or Maximum in the Choose data-sharing level section.
- Select your pixel from the list.
- Click Confirm.
Hypothetical setup note: “Pixel: Oak Trail Store; data-sharing level: Enhanced.” Replace the sample name with your selected pixel.

How do I connect my Shopify to Meta?
Connect Shopify to Meta through the Facebook and Instagram Shopify app to set up commerce, ads, and Meta Pixel. Follow Meta's setup procedure:
To connect Shopify to Facebook and Instagram:
- Install the Facebook and Instagram Shopify app.
- Go to your Shopify account.
- Click Sales channels.
- Select Facebook and Instagram and click Add app.
- Click Add sales channel to complete installation.
- Click Start setup.
- Click Next.
- Click Login with Facebook and sign into your account.
- Follow the prompts to install features for commerce, ads and Meta Pixel setup.
- Accept the terms and conditions.
- Click Submit.
Find the channel by searching for Facebook in the Shopify App Store, following Shopify's setup instructions.
Create your Meta pixel and find its ID
Create your Meta pixel in Events Manager using Meta's pixel setup procedure:
- Go to Events Manager.
- Click Connect data.
- Select Web.
- Enter a name for your pixel.
- Click Create pixel.
Choose your customer data-sharing level
Choose Standard, Enhanced, or Maximum in Shopify's data-sharing settings. Enhanced and Maximum use Conversions API, which sends the purchase event between Shopify and Facebook servers.
Browser-based ad blockers cannot block server-to-server data.
| Level | What it uses |
|---|---|
| Standard | Meta pixel collects customer browsing behavior; browser-based ad blockers can prevent sharing. |
| Enhanced | Uses Facebook's Conversions API as well as the Meta pixel. |
| Maximum | Uses Facebook's Conversions API, Meta pixel, and is updated with Facebook's latest advertising technology. |
Standard sends only customer behavior. Enhanced and Maximum send additional customer information, including name, location, and email address.

Remove previous pixel code from your theme
If you edited your theme to add a Meta pixel, remove that code before adding a Meta pixel ID using Facebook and Instagram by Meta.
- Go to Online Store from your Shopify admin.
- Open Edit code in the Current theme section.
- Click the theme.liquid file to open the code editor.
- Delete the Meta pixel code.
What Meta Pixel tracks on Shopify
Meta Pixel is website code for measuring Meta advertising's effectiveness through the actions people take on your website, according to Meta.
Why install the Meta Pixel?
Meta Pixel matters for Shopify stores because it can help improve marketing capabilities and Facebook ad performance, according to Shopify. Adding it through Facebook and Instagram by Meta lets you track customer data and behavior on your Online Store.
After you add a Meta Pixel in Shopify, Shopify says it tracks certain events on your online store, such as when a customer views a certain page. For more information on customer data-sharing events, refer to Facebook data sharing:
| Event | When it happens |
|---|---|
| PageView | When a visitor views a page. |
| ViewContent | When a visitor views a product. |
| AddToCart | When a visitor adds a product to the shopping cart. |
| InitiateCheckout | When a visitor clicks the checkout button. |
| AddPaymentInfo | When a visitor enters payment information in the checkout. |
| Purchase | When a visitor completes a purchase and views the thank you page in the checkout. |
For targeting decisions, review the advertising options available for your connected pixel in your Meta account before planning your campaign. To investigate the effects of privacy updates on your store's tracking, compare your test events with your reporting and review the tracking controls in your connected accounts.
How to verify Shopify events in Events Manager
Verify pixel installation and event tracking on Shopify with Meta's test events tool, keeping the test events page open while checking website activity:
- Go to Events Manager.
- Click Data (an icon on the page)sources in the left menu.
- Select your data's name and ID.
- Click Test events.
- Find the browser events section (or website events if you selected a dataset).
- Enter your website URL and click Open website to open it in a new window or tab.
- Interact with your website to test your set-up events.
- Click Clear activity when finished testing.
Your interactions appear in the Test events tab. Test information remains for 24 hours or until cleared.
Clearing activity leaves it in Meta Events Manager, Ads Reporting, and Audience Creation results.
Fix missing or duplicate Shopify pixel events
Use the Diagnostics tab in Events Manager to find and resolve event setup problems, following Meta's setup guidance.
| Issue | What to check or fix |
|---|---|
| No browser events | Use the Diagnostics tab in Events Manager to find and resolve event setup problems. When using Meta's Data Advisor testing tool, deactivate your ad blocker for the website you are on for that test. |
| Duplicate or incorrect reports | Check for duplicate pixel code on your pages and remove old theme code. |
| No server-side purchase event | Check your sharing level: Enhanced and Maximum use Conversions API. |
Related reading: Facebook ads campaign setup and Facebook ad reporting.
To automate campaign work after setup, Crush, our ad platform, creates campaigns, scales winners, and kills losers. Automate your Facebook ads.
Frequently Asked Questions
Common questions about this topic
1How do I connect my Shopify to Meta?
2What is the Meta pixel (formerly Facebook pixel)?
About this article
This article was written with AI assistance and researched against the sources listed below. It was reviewed by our automated editorial checks before publishing.
Sources
- Set up and install the Meta Pixel | Meta Business Help Center (facebook.com)
- Meta pixel (help.shopify.com)
- Connect Shopify to Facebook and Instagram | Meta Business Help Center (facebook.com)
- Configuring customer privacy settings (help.shopify.com)
- Setting up Facebook and Instagram by Meta (help.shopify.com)
- Facebook data sharing (help.shopify.com)
- | Meta Business Help Center (facebook.com)
- Best practices for Meta Pixel setup | Meta Business Help Center (facebook.com)
- Meta Ads Data Advisor (developers.facebook.com)
Written by

Albertas Pocius
Co-founder, CMOAlbertas is the Co-Founder and CMO of TryCrush.ai, bringing elite-level performance marketing expertise to the platform. With over $50M+ in combined Facebook and TikTok ad spend, Albertas has launched and scaled dozens of projects from zero, driven by a deep obsession with data and experimentation. He has trained 20+ media buyers, consulted 100+ companies, and is widely recognized as one of Europe’s early TikTok pioneers, likely the first to scale campaigns beyond $100K per day. Today, he also teaches advertising strategy at two colleges, shaping the next generation of media buyers.
Stop Guessing.
Start Crushing.
AI Ad Manager trained by world-class media buyers to generate your creatives and optimize your ads 24/7.
Learn more
Related articles

How to Add Branding to Meta Ads That Actually Convert
Most advertisers ruin their return on ad spend by overcomplicating their visual identity. Here is how to integrate branding into your creatives to drive direct response.

Facebook App Campaigns: Installation & Engagement Strategies
Building an app is hard; getting users is harder. Discover how to master Facebook App Campaigns, from SDK setup and AEO bidding to high-converting Advantage+ creative strategies.

Facebook Ads 101: The Comprehensive Beginner’s Guide
Don't let the Ads Manager interface scare you. This guide breaks down the structure of Facebook ads and provides a clear playbook to launch your first sales campaign effectively.

Scaling Dropshipping Shopify Stores: 2026 Ad Data
Most guides just show you pretty storefronts. We analyze the actual Facebook ad data that successful Shopify dropshipping stores use to scale profitability in 2026.
