What’s This For?
If you're planning to run Facebook or Instagram ads, you need a Meta Pixel to track who visits your store, what they do, and whether they buy. Even if you’re not running ads yet, setting this up now means you’ll have valuable data later.
In this guide, we’ll show you how to:
- Create a Meta Pixel inside Facebook
- Connect it to your Shopify store
- Confirm it’s working and ready for ads
For official documentation, see Shopify’s guide to the Meta Pixel.
Step 1: Set Up a Meta Business Account
Your Pixel needs to live inside a Meta Business Manager, not your personal Facebook profile.
- Visit: https://business.facebook.com
- Log in with your personal Facebook account (this is normal)
- Create a new Business called something like Your Store Name
- Add your Facebook Page for the store
- Invite yourself (via email) as an admin if needed
Step 2: Create a Pixel in Meta Events Manager
- Go to: Meta Events Manager
- Click + Connect Data Sources
- Select Web → Choose Meta Pixel
- Give your Pixel a name (e.g. Store Name Pixel)
- Enter your website URL (optional)
- Click Continue
You don’t need to install the code manually — Shopify will handle that for you.
Step 3: Add the Facebook & Instagram Sales Channel in Shopify
- From your Shopify Admin, go to Settings → Apps and sales channels
- Click Shopify App Store and search for Facebook & Instagram by Meta
- Click Install
- Once installed, open the Facebook & Instagram channel from your admin sidebar
Step 4: Connect Your Business Assets
Shopify will guide you through a setup flow. During that process, make sure to:
- Connect the correct Meta Business Manager
- Select the Facebook Page for your store
- Select the Pixel you just created (e.g. POS Layaway Pixel)
- Accept the data-sharing settings
Once connected, Shopify automatically adds your Pixel to your storefront and checkout pages. You don’t need to add any code manually.
Step 5: Confirm Your Pixel Is Working
- Install the Meta Pixel Helper Chrome extension
- Visit your Shopify storefront (e.g. home page or product page)
- Click the Pixel Helper icon to confirm it detects a PageView event from your Pixel
If the Pixel fires, you're good to go. Events like ViewContent, AddToCart and Purchase will be tracked automatically as customers interact with your store.
Step 6: Build Custom Audiences (Optional but Powerful)
Once your Pixel is collecting data, you can build powerful Custom Audiences in Facebook Ads Manager. For example:
- Visitors to a specific product page
- People who added to cart but didn’t buy
- All store visitors in the last 30 days
To create a Custom Audience, go to your Facebook Ads Manager → Audiences and create a Website Audience using your Pixel.
Summary
| Step | What You Do |
|---|---|
| 1 | Create a Meta Business account |
| 2 | Create a Pixel in Events Manager |
| 3 | Install the Facebook & Instagram Sales Channel in Shopify |
| 4 | Connect your Pixel via the Shopify setup flow |
| 5 | Use Meta Pixel Helper to confirm it's firing |
| 6 | Use the Pixel for Custom Audiences and future ads |
Also see: Connect Shopify to Facebook and Add a “Shop Now” Button