Facebook Pixel – all you need to know to create + install it

Facebook Pixel 101

How to create, install and utilize the power of the pixel.

The Facebook Pixel is an absolutely pivotal integration that will seriously increase the firepower and effectiveness of your digital ad campaigns.

Installing a Facebook Pixel will allow you to retarget your own web traffic, and enable a certain amount of site tracking which is useful in accurately counting your conversions. 

BUT! Besides the added benefits of tracking, the Facebook Pixel allows you to leverage the power of all that data Facebook has been collecting through the creation of what are called “lookalike audiences” where you can not just retarget your own website traffic from the last 180 days but make a separate lookalike audience of highly likely customers based on the demographics of your exact audience – which is insane.

SOURCE

Create and Install a Facebook Pixel

We’re gradually introducing a new version of Events Manager. This article reflects the new version. If the new version is available to you, you can toggle between versions using the button at the top of Events Manager

In this article, we’ll cover how to create and install a pixel on your website. To learn more about the pixel before getting started, check out the benefits of installing a Facebook pixel.

If you already created a pixel and want to find your pixel base code, skip to section 2, Add the Facebook pixel to your website. Follow the instructions to Manually add pixel code to website.

Before you begin

  • You need a website for your business.
  • You must be able to update your website’s code.

Create a Facebook pixel

  1. Go to Events Manager.
  2. Click Connect Data Sources and select Web.
  3. Click Get Started.
  4. Select Facebook Pixel and click Connect.
  5. Read how the pixel works, then click Continue.
  6. Add your Pixel Name.
  7. Enter your website URL to check for easy setup options.
  8. Click Continue

Add the Facebook pixel to your website

Once you’ve created your pixel, you’re ready to put the Facebook pixel code on your website. For instructions on how to do this, choose your setup option:

Manually add pixel code to website
    1. Go to Events Manager.
    2. Select the pixel you want to set up.
    3. Click Continue Pixel Setup.
    4. Select Install code manually.
    5. Copy the pixel base code.
    6. Find the header of your website, or locate the header template in your CMS or web platform.
    7. Paste the base code at the bottom of the header section, just above the closing head tag.

    1. Click Continue.
    2. Optional: Toggle on Automatic Advanced Matching and verify the customer information you want to send.
    3. Click Continue.
    4. Add events using the Event Setup Tool or by manually adding code to your website.
Event Setup Tool
  • Click Launch Event Setup Tool to add events and parameters without additional coding.
  • Follow the onscreen instructions to add events to your website.
Manual setup
  • Optional: Select a business category to see recommended events.
  • Select an event.
  • Select Track Event on Page Load or Track Event on Inline Action.

    • Track Event on Page Load: Choose this option if the action takes the user to a specific landing page, like a confirmation page after completing a purchase. 
    • Track Event on Inline Action: Choose this option if the action requires someone to click something, like an add to cart or purchase button.

    Note: If you’d like your Facebook pixel to fire on specific button clicks, you’ll have to update the code to tie an event to an action. Learn more on Facebook for Developers, under the Track In-Page Events section.

  • Add event parameters, like conversion value or currency, to measure additional information about your event (recommended). 
  • Copy this event code and paste it on the relevant page of your site. Be sure not to modify the pixel code you’ve already placed in the header of your website. 

    • For page load events: Place the code just below the closing header section of the page. For many websites, this will be right after the opening <body> tag.
    • For inline action events: Add the event code between script tags next to the action you want to set up, like a button.
  • Repeat those steps for any other events you want to set up on your website.
  • Click Go to Test Events to verify your event setup in real time and troubleshoot any issues in Events Manager. 
  • Click Done.

Don’t see the event you want to add? 

If you want to set up events not listed here, then learn how to use custom events

  1. Click Done.
Use a partner integration
  1. Go to Events Manager.
  2. Select the pixel you want to set up.
  3. Click Continue Pixel Setup.
  4. Click Use a partner.
  5. Select a partner from the list.
  6. Follow the onscreen setup instructions.

You can also set up your Facebook pixel on your website by going to the Partner Integrations page, selecting your partner and following the onscreen instructions. Learn more about the benefits of using partner integrations to set up your pixel

If you don’t see your platform, use 1 of the other 2 ways to set up your pixel.

Email instructions

If someone else updates the code on your website, follow these steps to email them your Facebook pixel setup instructions.

  1. Go to Events Manager.
  2. Select the pixel you want to set up.
  3. Click Continue Pixel Setup.
  4. Click Email Instructions.
  5. Enter the recipient’s email address.
  6. Click Send at the bottom of the page.

Set up events

After you add the pixel base code to your website you can set up events to measure the actions you care about, like making a purchase. You can do this by manually installing the code or by using the point-and-click Event Setup Tool. Then, make sure that your pixel is working correctly

Note: You can use one pixel across your whole website, including multiple pages of your website. However, there may be a need to use two pixels on one website. For example, if two different agencies run ads for your business, they may each need to set up a separate pixel on your website. Learn more about setting up multiple pixels on Facebook for Developers.

 
 

Guide to installing Facebook Pixel

Need more help setting up your pixel?

Check out this 5-minute step-by-step guide to installing your pixel. 

 

See Guide

 
 

Leave a Reply