Combining ClickPatrol with HubSpot

In Tracking template · Updated (50 minutes ago)

HubSpot and ClickPatrol both use the Google Ads tracking template field. Without merging them, one will overwrite the other, and you'll lose either your lead attribution or your fraud protection. This guide walks you through combining them correctly.

HubSpot's ad tracking connects your Google Ads data directly to your CRM. It appends UTM and HSA parameters to your ad URLs so you can trace each click back to a real contact, deal, or customer in HubSpot.

Why use both?#

HubSpot shows you which ads produce real pipeline and revenue. ClickPatrol ensures the clicks behind that data are legitimate. Both modify the Google Ads tracking template field, so running them separately will cause one to silently overwrite the other. Merging is the only way to have both working at once.

Step 1: Disable Auto Tracking in HubSpot#

Important: HubSpot automatically pushes its tracking template to your Google Ads account at the campaign level. Turn this off first, otherwise it will overwrite your merged template.

  1. Log into HubSpot.
  2. Go to Marketing → Ads.
  3. Click on your connected Google Ads account.
  4. Find the Auto tracking toggle and switch it off.
  5. Click Save.

Note: Turning off auto tracking stops future overwrites — it does not remove the existing HubSpot parameters from your ads. Those stay in place until you replace them.

Step 2: Find Your HubSpot Tracking Template#

  1. In HubSpot, go to Marketing → Ads.
  2. Click on your connected Google Ads account.
  3. Click Edit tracking template.
  4. Copy the full template string.

Your HubSpot template will look something like this (with your Google Ads Account ID where the Xs are):

{lpurl}?utm_feeditemid={feeditemid}&utm_device={device}&utm_term={keyword}&utm_source=google&utm_medium=ppc&utm_campaign={_utmcampaign}&hsa_cam={campaignid}&hsa_grp={adgroupid}&hsa_mt={matchtype}&hsa_src={network}&hsa_ad={creative}&hsa_acc=XXXXXXXXXX&hsa_net=adwords&hsa_kw={keyword}&hsa_tgt={targetid}&hsa_ver=3

Note: The hsa_acc value must be your actual Google Ads Account ID — a 10-digit number, no dashes. HubSpot fills this in when you connect your account. Check it isn't showing placeholder text before copying.

Step 3: Find Your ClickPatrol Tracking Template#

  1. Log in to your ClickPatrol dashboard.
  2. In the left sidebar, click Integration.
  3. Click Tracker.
  4. Copy your ClickPatrol tracking template.

Step 4: Merge the Two Templates#

  1. Go to clickpatrol.com/trackingtemplate
  2. Paste your ClickPatrol tracking template into Step 1.
  3. Paste your HubSpot tracking template into Step 2.
  4. Click "Merge tracking templates."
  5. Copy the merged result.

Step 5: Remove Existing Campaign-Level Templates in Google Ads#

HubSpot's auto tracking places its template at the campaign level. Because campaign-level templates override account-level templates in Google Ads, you need to remove these first — otherwise your merged template won't take effect.

  1. Log into Google Ads.
  2. Go to Campaigns.
  3. Add the "Tracking template source" column to your view (Columns → Modify columns → Attributes → Tracking template source). This shows you which level is controlling the tracking template for each campaign.
  4. For every campaign where HubSpot placed a campaign-level template, go to Campaign settings → Additional settings → Campaign URL options.
  5. Clear the Tracking template field.
  6. Click Save.

Repeat this for any ad group-level or ad-level templates that HubSpot may have set. You can check this by looking at the tracking template source column at the ad group and ad level as well.

Step 6: Apply the Merged Template in Google Ads#

  1. In Google Ads, click Admin in the left-hand menu.
  2. Select Account Settings.
  3. Click Tracking.
  4. Paste the merged template into the Tracking template field.
  5. Click Test to verify it resolves correctly.
  6. Click Save.

Step 7: Verify It's Working#

After saving, confirm that the account-level merged template is actually being used across your campaigns:

  1. Go back to your campaign view.
  2. Check the "Tracking template source" column. It should show "Account" for all campaigns.
  3. If any campaign still shows "Campaign" or "Ad group" as the source, you missed a lower-level template — go back and clear it.

Things to Watch Out For#

  • If you re-enable auto tracking in HubSpot at any point, it will push its template back to Google Ads at the campaign level and overwrite the merged version. You'll need to redo Steps 1, 5, and 6.
  • The hsa_acc value must be a plain 10-digit number, no dashes, no curly brackets. An incorrect value will silently break HubSpot's lead attribution.
  • If you create new campaigns after this setup, they will automatically inherit the account-level merged template — no extra action needed, as long as HubSpot auto tracking stays off.
  • If you or anyone else sets a campaign-level, ad group-level, or ad-level tracking template in Google Ads for any reason, that will override the account-level template and may bypass ClickPatrol. Always check the "Tracking template source" column when troubleshooting.

Was this article helpful?

Let us know so we can improve our documentation

Thanks for your feedback!

Need Help?

If something isn't working or you have questions, our support team is here to help you.

Contact Support