Meta Business Help Centre

How to set up and install a Meta pixel

318,165 views

If you've already set up your Meta pixel using IMG tags or plan to do so, we recommend that you follow our developer documentation. Learn more.

In this article, we'll cover how to set up and install a Meta pixel on your website. To learn more about the pixel before getting started, take a look at the benefits of installing a Meta pixel.

If you've already created a Meta pixel and want to find your pixel base code, skip to section 2, How to install the Meta pixel on your website. Follow the instructions to Manually add the pixel code to website.

Before you begin

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

How to set up a Meta pixel

  1. Go to Events Manager.
  2. Click Connect data sources and select Web.
  3. Select Meta pixel and click Connect.
  4. Add your Pixel name.
  5. Enter your website URL to check for easy setup options.
  6. Click Continue.

How to install the Meta pixel on your website

Once you've created your Meta pixel, you'll be ready to put the 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. Click the Data sources icon on the left-hand side of the Page.
  3. Select the pixel that you want to set up.
  4. Click Continue pixel setup.
  5. Select Meta pixel and click Connect.
  6. Select Install code manually.
  7. Copy the pixel base code.
  8. Find the header of your website, or locate the header template in your CMS or web platform.
  9. Paste the base code at the bottom of the header section, just above the closing head tag.
  10. Click Continue.
  11. Optional: Toggle on Automatic advanced matching and verify the customer information that you want to send.
  12. Click Continue.
  13. Add events using the Event setup tool or by manually adding code to your website.
  14. Event setup tool
    • Click Open Event setup tool to add events and parameters without additional coding.
    • Follow the on-screen instructions to add events to your website.
  15. Click Done.

Use a partner integration

  1. Go to Events Manager.
  2. Click the Data sources icon on the left-hand side of the Page.
  3. Select the pixel that you want to set up.
  4. Click Continue pixel setup.
  5. Click Use a partner.
  6. Select a partner from the list.
  7. Follow the on-screen setup instructions.

You can also set up your Meta pixel on your website by going to the Partner integrations page in Events Manager, selecting your partner and following the on-screen instructions. Learn more about the benefits of using partner integrations to set up your Meta pixel.

If you can't see your platform, use one of the other two ways to set up your pixel.

Email instructions

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

  1. Go to Events Manager.
  2. Click the Data sources tab on the left-hand side of the Page.
  3. Select the pixel that you want to set up.
  4. Click Continue pixel setup.
  5. Click Email instructions.
  6. Enter the recipient's email address.
  7. Click Send at the bottom of the Page.

Set up events

After you've added the pixel base code to your website, you can set up events to measure the actions that you care about, such as 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.

You can use one pixel across your whole website, including multiple pages of your website.

If you use your pixel to share events with Meta, we recommend that you also use the Conversions API. The Conversions API works with your Meta pixel to help improve the performance and measurement of your Meta ad campaigns. Learn more about the Conversions API.

Note: Apple's iOS 14 changes require apps in the App Store that engage in what Apple defines as "tracking" to show a prompt to iOS 14.5 and later users in accordance with their AppTrackingTransparency framework. These changes affect how Meta receives and processes events from tools such as the Meta pixel. If you optimise, target or report on web events from pixel or any of our other business tools, you can take steps to update your event setup and manage these changes. Learn more.

PermalinkShare
Was this information helpful?

More in this section: EVENTS

EVENTS |

Meta pixel