Share event and website data with Facebook via the Conversions API
Last updated: January 17, 2023
Applies to:
Marketing Hub Professional, Enterprise |
After you connect your Facebook ad account to HubSpot, you can use an existing Facebook pixel to enable Facebook's Conversions API to sync your website data and conversion events with Facebook.
By sharing this data with Facebook, you'll have better visibility into how customers interact with your brand, which will allow you to improve your ad's optimization.
Please note: if you're sharing data with Facebook via the Conversions API, you must install the Facebook pixel via HubSpot, to send the same external ID server side that the pixel sends and allow Facebook to deduplicate events. If you have previously included the pixel code in your website's header or footer HTML, you must remove the manually installed code. Otherwise, the pixel will fire twice and lead to inconsistent data in your reporting.
To enable Facebook's Conversions API:
- In your HubSpot account, click the settings settings icon in the main navigation bar.
- In the left sidebar menu, navigate to the Tools section. Then, click Marketing > Ads.
- Click the Pixels tab.
- If you haven't added a pixel:
- In the top right, click Add pixel.
- In the dialog box, select Facebook.
- Click the Facebook pixel dropdown menu, then select the pixel you want to install.
- Toggle the Sync data directly from HubSpot to Facebook's Conversion API switch on.
- If you have an existing pixel installed:
- Hover over the pixel name and click Edit.
-
- Toggle the Sync data directly from HubSpot to Facebook's Conversion API switch on.
- Click Continue to Facebook to open a new browser window to authorize your Facebook ad account and business manager from within Facebook.
- After you log in to your Facebook account, click Continue as [User].
- Click Continue to confirm the Facebook permissions.
- Confirm the account details and data preferences:
- Select the Business Manager, Facebook page, and Pixel that you want to use and send your HubSpot conversion data and website visitor data to.
- To better match your website visitors to users on Facebook, you can click to toggle the Automatic Advanced Matching switch on. Learn more about how advanced matching works in Facebook's Help Center.
- To control which visitor properties you send to Facebook, click Show customer information parameters.
- Scroll down and review the available properties you can send to Facebook, then click to toggle the associated property's switch on or off.
- Click Continue.
- Click Next to grant HubSpot the required Manage business extension permission.
- After the connection process is complete, click Done.
- Navigate back to HubSpot, under Choose which data to sync to Facebook, click the Select visitor data to share dropdown menu and select the checkboxes next to any additional parameters to send to Facebook. The User Agent, Action Sources, and Event Source URL fields are required and cannot be changed.
- Select the radio button that corresponds to how you're managing cookies on your website.
- HubSpot can only sync consent data with Facebook if you've configured a cookie policy in HubSpot that allows your website users the choice to opt in.
- If you select I'm using the HubSpot cookie banner to tell visitors that my site uses cookies and you later disable your cookie banner, HubSpot will stop sending visitor data to Facebook.
- Click Add pixel or Update pixel.
Please note: to limit Facebook's use of data from California residents, you'll need to navigate to the Ad accounts tab after adding the pixel, locate the ad account associated with your pixel, and toggle the Limit Data use switch on.
Related content
-
Troubleshoot issues when syncing leads from your LinkedIn Ads accounts to HubSpot
After connecting your LinkedIn Ads account to HubSpot, your existing LinkedIn Lead Gen ads will automatically...
Knowledge Base -
Report on ad campaigns using the custom report builder
You can analyze the performance of ad campaigns from your connected Google, Facebook, and LinkedIn ad...
Knowledge Base -
Understand HubSpot Ads contact attribution and ad network conversions
You may notice that the way HubSpot attributes contacts to your Google, Facebook, and LinkedIn ads differs...
Knowledge Base