Install the Facebook pixel

Last updated: September 11, 2018

Applies to:

Marketing Hub
Basic, Professional, Enterprise

You can add the Facebook pixel in your ads settings to show targeted ads to your visitors on Facebook and Instagram. In order to install the Facebook pixel in HubSpot, you must first create a pixel in your connected Facebook account.

Install the Facebook pixel base code

  • In your HubSpot account, click the settings icon settings in the main navigation bar.
  • In the left sidebar menu, navigate to Website Pages.
  • Scroll to the Site header HTML section and paste the Facebook pixel base code. Do not include the <noscript> portion of the pixel code here.

  • In the Site footer HTML section, paste the <noscript> portion of the pixel code.

Please note: the <noscript> section at the end of your Facebook pixel code must be pasted into the footer HTML to avoid invalid HTML from being generated on the page.

  • Click Save to apply your changes.
  • Once the code has been added, check that your pixel is working by navigating to the Pixels tab in your Facebook Ads Manager, then clicking Send Test Traffic. If your status reads Active, your base code has been installed correctly. This can take several minutes to update.

Was this article helpful?

If you still need help you can get answers from the , or to contact support.