ads

Install pixels from external ad networks

Last updated: November 19, 2019

After connecting your Facebook Ads, Google Ads, or LinkedIn Ads account to HubSpot, you can install pixels from external ad networks, such as the Facebook pixel, Google conversion tracking tag, and LinkedIn Insight Tag, on all your HubSpot-hosted pages or external pages where your tracking code is installed.

Pixels from external ad networks work similarly to the HubSpot tracking code. Once installed on your site, the pixel detect visits to your pages. This data is the basis for creating ad audiences. These ad audiences to target ads can be used to target your ads at specific visitors. Pixels also collect data that can help optimize ads and measure your ads' results.

When you install pixels according to the instructions below, the pixel codes will fire along with the HubSpot tracking code. This allows you to create ad audiences directly in the HubSpot ads tool.

Please note:

  • When you install a pixel or tag on your website, you'll need to make sure that you follow any relevant government or service-specific policies. For example, Google provides a specific EU user consent policy for advertisers. Your legal team is the best resource to give you compliance advice for your situation.
  • In order for the user who connected a Facebook Ads account to install a Facebook pixel in HubSpot, both the user and the connected Facebook Ads account must be assigned the pixel.
  • In your HubSpot account, click the settings icon settings in the main navigation bar.
  • In the left sidebar menu, navigate to Marketing > Ads.
  • Click the Pixels tab.
  • Click Add pixel.
  • In the dialog box, click the Select a pixel dropdown menu and select the pixel you want to install, then click Add pixel.

The pixel will now be automatically added to all your HubSpot pages or external pages where your tracking code is installed.

Please note: if you install your pixel according to the instructions in this article, do not manually install the pixel code in your site header or footer HTML. This will cause your pixel to fire twice on your pages and may result in unexpected or inaccurate data.