Reports

Ad tracking in HubSpot

Last updated: December 10, 2018

free

Set up ad tracking in HubSpot and learn how HubSpot tracks which ads your contacts are clicking and converting on.

Auto tracking

To track ads in an ads account, ensure that auto-tracking is enabled.

  • In your HubSpot account, click the settings icon settings in the main navigation bar.
  • In the left sidebar menu, navigate to Marketing > Ads.
  • For each ad account, click to toggle the Auto tracking switch on.

 

Facebook Ads

HubSpot tracks Facebook ads by adding the following URL parameters to each ad:

hsa_acc={accountid}
hsa_cam={adcampaignid}
hsa_grp={adsetid}
hsa_ad={ad_id}
hsa_net={facebook}

hsa_src=[SOURCE_SITE_NAME] - set to Facebook or Instagram automatically
utm_source={facebook}
utm_medium={paid}
utm_campaign={Name of Ad campaign}
hsa_ver=3
hsa_la={true} - for lead ads, {false} or absent otherwise
hsa_ol=
{true} - for organic leads from lead ads, {false} or absent otherwise

These parameters are automatically added when your Facebook Ads account is connected to HubSpot. The unique ID numbers correspond to your ad_id or campaign_id of each of your Facebook ads. Any parameters specified on the Facebook ad within Facebook will not be overwritten by HubSpot. HubSpot's ads tool updates multiple times a day to ensure new ads are being tracked.

Requirements for tracking Facebook ads

  • The final URL in the Facebook ad must be a full URL and not shortened by a link shortener (e.g., bit.ly or hubs.ly). Link shorteners strip parameters from the end of the URL and prevents tracking.
  • Existing ads must have fewer than 20 engagements at the time you first connect your Facebook Ads account to HubSpot to be tracked. This prevents Facebook's ad optimization algorithm from being reset.

 

Google Ads (Marketing Hub Professional and Enterprise only)

HubSpot tracks Google ads by inserting a tracking template at the campaign level. Any parameters specified on the account or campaign level will be merged with the HubSpot parameters at the campaign level, and will not be overwritten by HubSpot. Google auto-tagging is also compatible with HubSpot's ad tracking template.

Please note: from October 2018, Google Ads requires parallel tracking in all Google Ads accounts. While this update does not interfere with HubSpot's ads tracking, you should not concurrently use an external click tracking service that uses redirects. HubSpot uses tracking templates that require any clicks on an ad to send visitors directly to the destination URL. External click tracking services that require redirects are not compatible with HubSpot's ad tracking template.

HubSpot adds the following URL parameters to each Google ad:

hsa_cam={campaignid}
hsa_grp={adgroupid}
hsa_mt={matchtype}
hsa_src={ad network}
hsa_ad={creative}
hsa_acc={ID of account/customer}
hsa_net={Ads}
hsa_kw={keyword}

utm_term={keyword}
hsa_tgt={targetid}
utm_campaign={_utmcampaign} - set by default to the name of the Ads campaign or, if you associate your ad with a HubSpot campaign, the HubSpot campaign name
utm_source={network}
utm_medium=ppc
hsa_ver=3

Requirements for tracking Google Ads

  • The destination URL in the Google ad must be a full URL and not shortened by a link shortener (e.g., bit.ly or hubs.ly). Link shorteners strip parameters from the end of the URL and prevents tracking.
  • Customized tracking parameters should not be added at the ad group or ad level, as HubSpot's parameters do not take precedence over them.

Was this article helpful?

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