Skip to content

How to Set Up a Facebook Pixel Event for Your Ecommerce Site

Learn to set up Facebook Pixel events for ecommerce. Measure activity, boost conversions, and grow your business. Read the guide now.

Summer Osborne
By Summer Osborne   |  

 Aug 13, 2020

If you’re a veteran of ecommerce, the chances are you’ve been creating and maintaining successful Instagram and Facebook ad campaigns for a while now. You know your relevancy score from your cost per results, and you understand how to properly target your audiences and speak to them in a way that is highly engaging. Even the most successful Facebook campaigns can fall short, however, if you’re not aware of all the features Facebook has to offer.

While we find many businesses know what a Facebook Pixel is, we also see a lot of underutilization when it comes to the Facebook Pixel’s special custom features. These features can really boost your reporting, and even help with retargeting. Let’s take a look at how you can better harness the power of Facebook Pixels for your ad campaigns today.

What is a Facebook Pixel?

Facebook Pixel is an analytics tool intended to give you an accurate view of the effectiveness of your ad campaigns by measuring behavior on your website. It’s also super useful for retargeting, and you can create a Custom Audience based on website visits (we sometimes call these "pixel fires"). At its most basic, this pixel tracks actions taken on your website after viewing a post or ad and collects information like user location, browser, device, and so on.











How to Create a Facebook Pixel

Before you start, let’s go over the basics of what you need in order to use a Facebook Pixel. All you need is a website and access to your website code (this one is sometimes a sticking point, but if you have a website you should have access to a developer or directly to the site).

To create a Facebook pixel:

  • Navigate to the Business Settings page in Business Manager and select your business
  • Click Data Sources on the left-hand side
  • Go to the Pixels tab and then hit the Add button
  • Add a name and your website URL if you like, and then hit Continue
  • Select how you would like to install your pixel. You can either add code using a Facebook partner site such as WordPress or Shopify, manually install the code on your site, or you can email instructions to a developer if you do not have direct access to your site's code. 

Facebook is going to ask you if you want to track events as well. Many ecommerce sites skip this step, favoring the simple pixel that can track website visits, but tracking events on your site is going to lead to much more accurate data. Put simply, events are actions that happen on your site. Much like with Google Tag Manager, you can track these and link them directly back to advertising campaigns on Facebook.

How to Set Up Facebook Pixel Events

To set up events:

  • Select your pixel in Events Manager

  • Select Manually install the code yourself

  • Launch the Event Setup Tool. It will then prompt you to type in your site's URL, and it will open up your site.

  • Select Track Event on page load or Track event on inline action from the options. On page load is for when you only care if somebody lands on a certain page (such as a "thank you" page after checkout), whereas inline is for when you need a person to click on a specific button (such as "buy now").   

  • Add event parameters. By this, we mean the conversion value and currency of the action. It’s up to you what value you place on an event.

  • Now just copy the event code and paste it into the relevant page of your website. This code is different from the pixel code. For page load events, paste the code just before the closing header section (this is probably just before the <body> tag of your site). For inline events, add the code in-between the script tags of the action you want to track. Note, if you want this to fire only on specific button clicks, you need to update the code to tie an event to an action.

Custom Events & Conversions using Facebook Pixel

You can also track custom events. To do this, go to your Custom Conversions section in Events Manager beneath "Data Sources" on the left-hand side, and click Create Custom Conversions. You can create custom conversions for Facebook ads from URLs, events and actions. You might use this for tracking product categories, for example, which are not standard events.

Tracking Offline Conversions

For retailers with storefronts, you can also set up offline conversion tracking. To do this, you need to create an offline event set in the Events Manager. In order to connect this to offline data, you’ll need to upload this data to Facebook. You can automate this through the offline conversions API or partner integration.

Manually, you can upload a CSV file that includes the event name, time and as much information as possible about your customers. Facebook provides an example CSV file when you click Upload offline events.

Offline Conversions Facebook

Facebook Pixel Troubleshooting & Tips

  • You may have heard the term Facebook SDK thrown around too — this is similar to a pixel, but is used on your business’s mobile app. If you have an app rather than a website, you can use an SDK to track user behavior.
  • Download and install the Facebook Pixel Helper. This will save you time. Open up a browser in Chrome (it has to be Chrome), navigate to your site, and you can use this tool to troubleshoot your pixel.
  • An easy way to know whether the pixel is working is to check the status in your Ads Manager. It should be labelled "active."
  • The currency setting must use the standard 3-letter ISO currency code (for example, USD)
  • If you have multiple values that you want to track, you can make the value dynamic. This will typically require some work by your developer.
  • The most common issues we see are with custom events. Custom events or conversions don’t always work with dynamic ads.
  • Avoid accidentally installing your pixel multiple times. This will result in the pixel firing more than it should and counting one conversion as several.
  • You can also view the data from your Pixel in Facebook analytics. You’ll be able to drill down into the events you set up as well as traffic sources to your site and top landing pages.
Facebook Analytics Pixel Dashboard 

Why use Facebook Pixel?

Facebook Pixel is a powerful tool for tracking conversions, measuring campaign efficiency, and retargeting website visitors. It gives you vital insights into your audience's behavior, allowing you to create bespoke audiences and optimize ad spend for a higher return on investment. Use it to boost your marketing approach and reach out to specific demographics.

1. Accurate Tracking and Analytics

The Facebook Pixel allows for the precise tracking of user interactions on your website, resulting in rich analytics and insights into user behavior, preferences, and conversions. This data assists you in better understanding your audience and making data-driven decisions to maximize your marketing efforts.

2. Custom Audience Creation

You can establish unique audiences using Facebook Pixel depending on certain actions done by people on your website. You can, for example, target users who added things to their cart but did not finish a transaction, allowing you to provide targeted adverts or promotions to re-engage them and boost conversions.

3. Dynamic Retargeting

Pixel events give you the ability to create dynamic retargeting campaigns. You can display tailored adverts to individuals highlighting the specific things they were interested in by tracking user behaviors such as product views or add-to-cart actions. This extremely relevant and tailored strategy raises conversion rates dramatically.

4. Conversion Tracking and Optimization

Facebook Pixel allows you to track and measure the success of your advertising campaigns by tracking particular conversion events like purchases, form submissions, and newsletter sign-ups. This data allows you to evaluate the performance of your ads, optimize targeting and bidding tactics, and properly allocate your advertising budget.

5. Improved Ad Campaign Optimization

Facebook Pixel data can be used to optimize your ad campaigns further. By analyzing the performance of different ad sets, you can identify which ones are generating the highest conversions or engagement. This information helps you refine your targeting, ad creative, and bidding strategies to achieve better results and higher return on investment (ROI).

Maximizing ROI with Facebook Retargeting

Retargeting ads are a great way to increase your revenue through Facebook advertising. They allow you to reach out to potential clients who have already visited your ecommerce site. Conversions can be increased by customizing audiences depending on user behavior and delivering personalized content with dynamic product advertisements. For the greatest results, constantly tune ad expenditure and evaluate success.

Calling in The Experts

Utilizing Facebook Pixel provides ecommerce businesses with invaluable data, precise tracking, and optimization capabilities. By leveraging these features, you can improve audience targeting, increase conversions, and optimize your advertising campaigns for better ROI.

To know more about how you can leverage Facebook Pixel for your ecommerce success, reach out to our expert today!

Summer Osborne

Summer Osborne

Inbound Marketing Expert - Summer contributes a wealth of expertise garnered from years of experience within the marketing agency domain. Her passion lies in the art of content creation, meticulous optimization, and empowering clients to effectively communicate their stories.

Latest Articles

Red, White, and Social: Crafting Patriotic 4th of July Social Media Posts to Ignite Celebration

Red, White, and Social: Crafting Patriotic 4th of July Social Media Posts to Ignite Celebration

Ignite celebration with our guide to crafting red, white, and social 4th of July posts.

Honoring the Heroes: Crafting Thoughtful Memorial Day Social Media Posts

Honoring the Heroes: Crafting Thoughtful Memorial Day Social Media Posts

Honor the heroes and express gratitude with our guide to crafting thoughtful Memorial Day social media posts.

Moments of Love: Crafting Heartwarming Mother's Day Social Media Posts to Celebrate Moms

Moments of Love: Crafting Heartwarming Mother's Day Social Media Posts to Celebrate Moms

Spread love and warmth with our guide to crafting heartwarming Mother's Day social media posts.