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, which you can use to target your ads at specific visitors. Pixels also collect data that can help optimize ads and measure your ads' results.
After connecting your Facebook Ads, Google Ads, or LinkedIn Ads account to HubSpot, you can install a pixel from the external ad network, 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. Once you install your pixel, you can create a website visitors audience directly in the HubSpot ads tool.
When you install a pixel according to the instructions below, the pixel code will fire along with the HubSpot tracking code. If you choose not to install a pixel, HubSpot's tracking code will still work and attribute contacts to your ads.
Please note:
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.