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

Filter by Category
Filter by Category
Back

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 you 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.

FB Audiences

Updating the Pixel in 2018

Facebook recently announced that as of October 24 they will be rolling out a first-party cookie option for the Facebook Pixel. What does this mean? They’ll be asking you to share data from your website’s first-party cookies, rather than just installing Facebook third-party cookies. Services like Safari and many ad blockers already block third-party cookies, so this is a workaround for Facebook that’s meant to better enable you to track conversions. 

How to Create a Facebook Pixel

Before you start let’s go over the basics of what you need to use a Facebook Pixel. There are just two things: you need a website and you need 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 Events Manager in Business Manager or in your personal ad account
  • Go to the Pixels tab
  • Click Create a Pixel then hit Create
  • Select how you would to install your pixel, you can either
    • Copy and paste code and manually install the code on your site
    • Send code to your developer via an auto-generated email
    • Use Google Tag Manager or another ecommerce integration like Magento

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 so don’t ignore this option. 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:

  • Go to the Pixels tab in Events Manager
  • Click Set Up Pixel
  • Select Manually install the code yourself
  • Click Continue
  • Click Install Events
  • Choose from the toggles Facebook offers, which include
    • Purchase
    • Lead
    • Add to cart
    • Complete Registration
    • Add Payment Info
    • Add to Wishlist
    • Initiate checkout
    • Search
    • View Content
    • Contact
    • Customize Product
    • Donate
    • Find Location
    • Schedule
    • Start Trial
    • Submit Application
    • Subscribe
  • 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 (think 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. Don’t touch the pixel code you should already have installed on the site, this code is different.
    • 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 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 necessarily 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 and not 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 ‘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 

Calling in The Experts

Facebook Pixels and SDKs can revolutionize your reporting and retargeting when they’re implemented correctly. If you need help setting up Facebook Pixels or customizing events, get in touch with us today for a free consultation.

Turn social media strangers into loyal customers social media management button

We have over 100 years combined experience in inbound and digital marketing, and better yet we’re experts in complex custom ecommerce integrations and tracking. When it comes to your ecommerce site, you’re in safe hands.

Using Facebook and Instagram to Increase Sales Over the Holidays
Magento 2 – Is It Worth the Update?

About Author

Amy Hayward
Amy Hayward

Amy Hayward is an Inbound Marketing Specialist with certifications in HubSpot Inbound Marketing, HubSpot Email Marketing, and Google AdWords. Amy has moved on to new opportunities, but her content was so awesome that it will live on forever on our blogs.

Related Posts
Using Facebook and Instagram to Increase Sales Over the Holidays
Using Facebook and Instagram to Increase Sales Over the Holidays
Reducing Abandoned Carts on Your Ecommerce Site
Reducing Abandoned Carts on Your Ecommerce Site
Leveraging Magento for True Holiday Marketing Success
Leveraging Magento for True Holiday Marketing Success

Comment