Reports

How does tracking work in the Ads Add-on?

Last updated: July 31, 2017

Available For:

Marketing: Basic, Pro, Enterprise
Sales: N/A
Add-Ons: Ads

Learn how your Google Adwords and Facebook ads are tracked within HubSpot's Ads add-on. 

Google AdWords

HubSpot uses a tracking template that is inserted on the account level in Google AdWords. Assuming that there is no tracking applied on the Campaign, Adgroup, or Ad level, our template will be used by Google to fill in the tracking parameters. You can learn more about this here.

Here’s the template we use:

{lpurl}?ads_cmpid={campaignid}&ads_adid={adgroupid}&ads_matchtype={matchtype}&ads_network={network}&ads_creative={creative}&utm_term={keyword}&ads_targetid={targetid}&utm_campaign={_utmcampaign}&utm_source=adwords&utm_medium=ppc&ttv=2

The template incorporates utm_source, utm_medium, utm_campaign and utm_term so that all visits are correctly categorized in the Sources Report within HubSpot if a visit happens to be the visitor’s first interaction with you. This will bucket the visit under “Paid Search” as well as categorizing it by campaign and term.

The campaign parameter is set by custom parameters to correctly populate the utm_campaign on the Campaign level in Adwords. You can learn more about this here.

With our tracking template in place, you should be all set to go, but sometimes other tracking may interfere. There is a common scenario that may cause the tracking template to not work as expected:

  • A similar tracking template is used at a lower level than the account. For example, you may have a tracking template like this one set at the campaign level, which would overwrite our account-level template: {lpurl}&trkid={trkId}_{adgroupId}_{targetId}_{placement}_{creative}_{network}_{device}_{adType}_{target}.

Learn how to create a Google AdWords campaign in the Ads tool here

Facebook

HubSpot automatically adds URL parameters, in which the unique ID numbers will correspond to your ad_id or campaign_id, to each of your Facebook ads:

hs_fb_account_id=1730722573909720&hs_fb_campaign_id=23842554594101695&hs_fb_adset_id=23842554954050695&hs_fb_ad_id=23842650512290695&hs_parent_creative_id=28342560512210695&source=[SITE_SOURCE_NAME]&utm_source=facebook&utm_medium=paid

This happens as soon as your Facebook account is connected. The tool then updates multiple times a day thereafter to ensure new ads are being tracked. If these parameters are modified by the user, HubSpot will overwrite them; these parameters cannot be changed while the account is connected. Any other parameters, like “utm_campaign=New+Product+Promotion” will be left in place and function normally.

In order for tracking to work, we will also “unwrap” shortened links. For example, if the Website URL link is originally http://bit.ly/2lEb9qV, we will unwrap it and reset the field to http://example.com/?form=subscription.

You can also track your Facebook Lead ads in HubSpot. Find out more here

LinkedIn

As of July 31, 2017, the LinkedIn Ads integration has been removed from HubSpot. Any LinkedIn campaigns originally created in HubSpot will continue to run in LinkedIn Ads. To manage your existing campaigns, navigate here to access the native LinkedIn Ads manager. You can learn more about this change here

Was this article helpful?