Install pixels from external ad networks
Last updated: March 23, 2023
Available with any of the following subscriptions, except where noted:
|
When you install a pixel or tag in HubSpot, the pixel code will fire alongside the HubSpot tracking code. This will apply to all HubSpot-hosted or external pages where the tracking code is installed. If you choose not to install a pixel, HubSpot's tracking code will still work and attribute contacts to your ads.
Before you get started
Before getting started, please note the following:
- 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.
- To install a pixel or tag such as the Facebook pixel, Google conversion tracking tag, and LinkedIn Insight Tag, the corresponding Facebook Ads, Google Ads, or LinkedIn Ads account must be first connected to HubSpot.
- When installing a Facebook pixel:
- Only the user who connected the Facebook Ads account can install the Facebook pixel in HubSpot. Both the user and the connected Facebook Ads account must be assigned the pixel.
- Facebook custom event codes are not supported if you install the pixel through HubSpot.
- When you install your pixel through HubSpot, it will automatically be included on every page where you have the tracking code installed.
- If you want to limit your pixel to specific pages of your site, or you don't want to create a website visitors audience using the HubSpot ads tool, you should manually include your pixel code in the page's header or footer HTML.
- If you manually include the pixel code in your website's header or footer HTML, you should not install the pixel through HubSpot. Otherwise, the pixel will fire twice and may lead to inconsistent data.
Install your pixel
To automatically install a pixel on every page where the HubSpot tracking code is installed:- In your HubSpot account, click the settings settings icon 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, select Facebook, Google ads, or LinkedIn.
- Click the Pixel dropdown menu and select the pixel you want to install.
- Click Add pixel. The pixel will be automatically added to all your HubSpot pages or external pages where your tracking code is installed.
Please note: after installing a Facebook pixel through HubSpot, you may notice an alert titled "New Domain Sending Data" under the Diagnostics tab in the Facebook Events Manager. If the alert lists hubspot.com, you can safely ignore it. Learn more about pixel traffic permissions in Facebook's Business Help Center.
Necessary disclosure: HubSpot will receive the pixel or tag identification from the selected ad network you selected as part of connecting your account to that network. HubSpot will automatically place the pixel or tag on your website pages where the HubSpot tracking code is present. This pixel or tag sends and tracks information about your website visitors back to the network, enabling conversion tracking and website audience creation.
Limit data use to comply with the CCPA
If your company falls under the CCPA, or you want any of your California customers to be under Limited Data Use with Facebook, you should enable Limited Data Use for any of your ad accounts with a pixel that you've installed through HubSpot. Learn more about Facebook's Limited Data Use.
Please note: While these features are in HubSpot, your legal team is the best resource to give you compliance advice for your specific situation.
To enable Limited Data Use for an ad account:
- In your HubSpot account, click the settings settings icon in the main navigation bar.
- In the left sidebar menu, navigate to Marketing > Ads.
- On the Ad accounts tab, locate the Facebook Ads account. Then, toggle the Limited Data Use switch on to limit data usage for that ad account.
- Under the Facebook, toggle the Limited Data Use switch on to limit data usage for that ad account.
Related content
-
Connect your Google Ads account to HubSpot
Connect your Google Ads account to HubSpot to manage your Google ads in HubSpot's ads tool. Once your Google...
Knowledge Base -
Create and sync ad conversion events with your Google Ads account
After connecting your Google Ads account, you can create events to sync your CRM lifecycle stage changes from...
Knowledge Base -
Troubleshoot ad tracking issues
After connecting your ad account to HubSpot and toggling auto-tracking on, HubSpot will attempt to apply...
Knowledge Base