How To Set Up and Use Meta Pixel (Formerly Facebook Pixel) (2024) – Shopify
Start your businessBuild your brandCreate your websiteOnline store editorCustomize your storeStore themesFind business appsShopify app storeOwn your site domainDomains
Start your business
Build your brand
Create your website
Online store editor
Customize your store
Store themes
Find business apps
Shopify app store
Own your site domain
Domains & hosting
Explore free business tools
Tools to run your business
Sell your products
Sell online or in person
Check out customers
World-class checkout
Sell online
Grow your business online
Sell across channels
Reach millions of shoppers and boost sales
Sell in person
Point of Sale (POS)
Sell globally
International sales
Sell wholesale & direct
Business-to-business (B2B)
Accept online payments
Set up forms of payment
Market your business
Reach & retain customers
Market across social
Social media integrations
Chat with customers
Shopify Inbox
Nurture customers
Shopify Email
Know your audience
Gain customer insights
Manage your business
Track sales, orders & analytics
Measure your performance
Analytics and Reporting
Ship orders faster
Shopify Shipping
Manage your stock & orders
Inventory & order management
Outsource fulfillment & returns
Shopify Fulfillment Network
Get paid faster
Shopify Balance
Secure business funding
Shopify Capital
Automate your business
Shopify Flow
Shopify Developers
Build with Shopify's powerful APIs
Plus
A commerce solution for growing digital brands
Enterprise
The composable stack for enterprise retail
All Products
Explore all Shopify products & features
Help and support
Get 24/7 support
How-to guides
Read in-depth business guides
Business Courses
Learn from proven experts
Shopify blog
Business strategy tips
What is Shopify?
How our commerce platform works
Shopify Editions
New, innovative Shopify products
Founder Stories
Learn from successful merchants
Branding
Build your brand from scratch
Marketing
Build a marketing plan
Ecommerce SEO
Improve your search ranking
Social media strategy
Turn social into sales
Business growth
Scale your business
Business name generator
Logo maker
Stock photography
Business Plan Template
Link in bio tool
QR code generator
Changelog
Your source for recent updates
Winter ’24 Edition
The latest 100+ product updates
All Editions
Archive of past Shopify Editions
Newsroom
All company news and press releases
Start selling with Shopify today
Start your free trial with Shopify today—then use these resources to guide you through every step of the process.
Facebook pixels help you advertise to people who have visited your website and track how well those ads are performing. This kind of information can be used to make your advertising campaigns more effective.
Start your online business today.
For free.
If you find Facebook advertising confusing, know that you’re not alone.
All its features make it a very powerful advertising platform, but they also add complexity. One of the most confusing features is Meta pixels.
Pixels are common across most advertising platforms. They’re used to track visitors on your website so you can advertise to them later. This is called sequential retargeting. Once you advertise to past website visitors, the Meta pixel can also be used to track their behavior when they return. In February 2022, the Facebook Pixel’s name was changed to the Meta pixel and can be used for both Facebook and Instagram advertising.
Use this guide to learn more about what the Meta pixel is, how to create a pixel, and different ways to use a pixel to improve conversions and drive ROI for your ads.
The Meta pixel is an analytics tool that helps you measure how effective your Facebook ad campaigns are by monitoring the actions people take on your website.
The Meta pixel is a piece of code that tracks events on:
The Meta pixel helps you optimize your ads and make sure they’re shown to the right audience. You can also use the pixel to improve your Facebook retargeting and remarket to people who have visited a specific page or taken a desired action on your website.
In short, the Meta pixel helps you better understand the impact of your ads by understanding what people do after they see them. So you can reach people more likely to take meaningful action, like purchasing a product.
In 2020, the iOS 14 update made it so you are required to request permission to track iOS users’ data. The iOS 15 update continues this practice and has made a few more changes.
The Meta pixel used to allow you to see a 28-day click-through window and a seven-day view window. Now it only offers data for actions that have been taken within seven days of a click or within one day of viewing your ad.
The aggregated event measurement system has also been tweaked a bit. The Meta pixel now limits you to eight events you can track per domain, which are automatically assigned, but can be customized.
The new iOS update has made data collection a bit trickier, but the Meta pixel can still get you the data you need.
💡 TIP: Want better ad performance? Use Shopify Audiences to find relevant buyers and lower advertising costs with custom audience lists—powered by Shopify’s unique insights from commerce data.
Facebook used to have a custom audience pixel for retargeting website visitors and conversion pixels for tracking website conversions such as sales. While each advertising account had only one custom audience pixel, you could create many conversion pixels—one for each web page you wanted to track conversions on.
Although Meta pixels can be confusing, they make advertising on Facebook much more effective. Not only do they tell you exactly who you’re advertising to, they give you a better understanding of how your Facebook ads are performing. You can use them to make your messaging much more effective, leading to a better return on your advertising dollars.
The Meta pixel works in six steps:
The current Meta pixel works similarly to the old custom audience pixel. It needs to be in the head section of your index page so that it appears on every page of your website. No matter which page is loaded, the pixel will fire and track where the visitor is.
First, if you haven’t already, you’ll need to create your pixel. Start by visiting Events Manager.
Clickto Connect a New Data Source. Then select your data source.
After choosing your data source, click Connect. Then name your pixel.
Next, you’ll be asked to check for a partner integration. Enter your website and click Check.
If you’re eligible for an integration, you’ll choose how to connect your website to Facebook. Meta recommends the Conversions API and Meta pixel option.
Next, choose how you’ll set up Conversions API. The easiest way is through your partner integration. Choose “Set up with partner integration” then click Next.
Select Shopify, then follow the prompts to connect your Shopify store to Facebook, if you haven’t yet already.
For more information on connecting the Meta pixel to your Shopify store, read our help guide.
The Meta pixel offers five core functions to help you get a better return on investment:
Custom Audiences from your website are how Facebook helps you retarget website visitors. If you have the Meta pixel installed, it will track the movements of any visitors on your website who are simultaneously logged into Facebook.
The pixel will track activities such as:
Using this data, you can advertise to very targeted groups of people. You can also use this data to create lookalike audiences and reach customers likely to buy your products. It’s also helpful to exclude specific groups, so you don’t keep targeting users who may have converted or are not highly engaged.
To be clear, when advertising on Facebook, you can’t choose a specific website visitor and advertise to them. Instead, you can advertise to groups of users (Custom Audiences from your website) based on shared behavior. A few examples include:
You can define Custom Audiences from your website based on which pages they did or did not visit and by when they visited your website. You can choose a timeframe between one and 180 days.
Audiences are created independently from ads. Once an audience is created you can choose when to advertise to it and which ads to use. Or you can let it percolate for future use.
One of the most exciting parts of the Meta pixel is the ability to create custom conversions similar to how you create Custom Audiences. A custom conversion is created by selecting a completion page and naming the conversion. Typically, the completion page is some kind of thank-you page.
For example:
This means you can create custom conversions independently of your Facebook ads and then choose when to use them in the future.
Because the tracking pixel already fires on all your website pages, it can easily track when someone visits a completion page—especially people who have clicked on your Facebook ads.
You can also choose the category for the conversion and add a monetary value. For example, if you create a custom conversion that tracks visitors to an ebook download page, you can include the cost of the ebook. This feature will help you figure out if your ad campaigns are profitable. If you charge $20 for your ebook, but you’re spending $25 for every purchase that comes from Facebook ads, you’ll probably want to make some changes to that campaign.
The custom conversion categories that you can choose from include:
The interesting thing about custom conversions when advertising on Facebook is that once it’s created, it’ll be tracked for all of your ads, whether you choose to optimize for it or not.
All of your custom conversions are always being tracked. At any time, you can create a report for one of your Facebook ads that will show the conversion rate for any of your custom conversions.
You’re limited to 100 custom conversions per ad account, and you can delete custom conversions at any time (at one point, the limit was 20, and you couldn’t delete any).
When someone takes an action on your site, the Meta pixel logs it as an event. You can use the pixel to track two different types of events:
There are 17 standard Meta pixel events you can use by copying and pasting a simple event code:
Standard events also support parameters, which let you include additional information about an event, such as:
Say you want to track events such as scroll depth from a specific category on your website, instead of all pages. You can separate audiences based on their conversion-related activities on your site and further define any Custom Audiences you create.
While custom conversions are tied to a URL (usually for some kind of thank you or completion page), custom events don’t need to be. Instead, conversions can be tracked by adding an additional snippet of code to the page of interest.
Custom events are commonly used to collect more data than a standard event can provide.
If you run an ecommerce site, you can use the Meta pixel to run dynamic ads. These ads, also referred to as catalog sales in your ad account, automatically show products from your catalog based on your target audience.
If your business has thousands of products, creating individual ads based on specific pages visited and actions taken may not be an efficient option. Instead, you can create dynamic ad templates so that what a potential customer sees will depend on their behavior.
Take Lumin for example. The men’s skin care brand wanted to add Mexico to its market so it could start expanding internationally and boost cross-border sales.
To achieve this, it looked at data gathered from the Meta pixel and used that data to run a split test. The test had one set of ads that were only shown outside of Mexico and an identical set of ads that were shown outside and inside of Mexico.
The ads showcased several of Lumin’s skin care products in video and photo ads and both had a Shop Now button on them that linked to Lumin’s website. It then showed those ads to Spanish-speaking males aged 21 and over, excluding a custom audience who had made a purchase with Lumin in the past 180 days.
Lumin ran their campaign from Nov. 1 to Dec. 22, and reported these results:
All thanks to the Meta pixel.
Despite the iOS updates that have limited some Meta pixel features, it still has a number of features that will help you expand your customer base and get the type of interactions you want.
Getting your ads in front of your target audience is just the first step in improving your ROI. The next step is getting your ads in front of the people who are more likely to respond positively to your calls to action. The Meta pixel collects user data that will help you get your ads seen by these people.
The Meta pixel allows you to see how your audience is responding to your ads. It will track whether people are interacting with your website, and if your audience is switching devices (i.e., desktop to mobile). Having this information can help you tweak your Facebook ad strategy so you can get the interactions you want.
The Meta pixel’s retargeting data allows you to show ads to people who have already interacted with your website. This feature creates almost personalized ads that allow you to target what people have already shown interest in. For example, you can even show someone an ad for a specific product that they abandoned in their shopping card or put on their wishlist.
You can use Facebook’s targeting data to create lookalike audiences. These audiences will have interests, likes, and demographic stats similar to the people who are already engaging with your website and ads. This will help you expand your customer base and maybe even help you find an unexpected customer demographic.
If you want to get the most out of your social media advertising dollars, you want to use the Meta pixel. With this one snippet of code, you can measure, optimize, and build highly targeted audiences for your ad campaigns, resulting in more conversions, more revenue, and better ROI for your business.
You can create a Meta pixel by following these six steps:
Keep up with the latest from Shopify
Get free ecommerce tips, inspiration, and resources delivered directly to your inbox.
By entering your email, you agree to receive marketing emails from Shopify.
popular posts
The point of sale for every sale.
popular posts
Nov 8, 2023
Sep 1, 2023
Dec 5, 2023
Nov 9, 2023
Sep 20, 2023
Nov 23, 2023
Dec 2, 2023
Nov 6, 2023
Subscribe to our blog and get free ecommerce tips, inspiration, and resources delivered directly to your inbox.
Unsubscribe anytime. By entering your email, you agree to receive marketing emails from Shopify.
Mar 13, 2024
Mar 12, 2024
Mar 11, 2024
Mar 11, 2024
Mar 11, 2024
Mar 11, 2024
Mar 7, 2024
Mar 6, 2024
Learn on the go. Try Shopify for free, and explore all the tools you need to start, run, and grow your business.
Try Shopify for free, no credit card required.