How to Configure Ad Tracking in Hubspot
Effective digital advertising depends on accurate data, and Hubspot gives you a complete view of how your ads perform across networks. By setting up tracking correctly, you can attribute contacts, leads, and revenue to the campaigns and keywords that drive real results.
This step-by-step guide explains how ad tracking works, which ads Hubspot can automatically track, when to use manual tracking, and how to troubleshoot common issues so your reports stay reliable.
How ad tracking works in Hubspot
When you connect an ad account, Hubspot automatically updates your ads with parameters that let the system track visits, contacts, and customers back to the correct campaigns. This is done by adding tracking parameters to your ad URLs when people click your ads.
For most supported ad types, the tool adds these parameters automatically and keeps them in sync with your campaigns and ad groups. This means you can see which ads generate new contacts and how those contacts move through your pipeline.
Supported ad networks and tracking behavior
Hubspot supports ad tracking for several major networks. Once the relevant account is connected, the tool attempts to add or manage tracking parameters according to the network and ad type.
- Google Ads: search, display, and some other formats can be automatically tracked when auto-tracking is enabled.
- Facebook and Instagram Ads: most campaign types support automatic tracking once the account is connected.
- LinkedIn Ads: supported ad types can also be automatically updated with tracking parameters.
For any ad type that cannot be automatically updated, you may need to add tracking parameters manually using your network’s URL builder or a custom tracking template.
Where Hubspot adds ad tracking parameters
To keep your analytics consistent, the tool adds tracking parameters to different fields depending on the ad network and settings. Understanding where these parameters live helps you make sure they are not accidentally removed or overwritten.
Google Ads tracking with Hubspot
For Google Ads, tracking can be handled either through auto-tagging with Google’s built-in feature or with manual parameters applied by Hubspot. The general behavior is:
- If auto-tagging is enabled in Google Ads, Google automatically adds GCLID parameters to your URLs.
- If auto-tagging is disabled and Hubspot ad tracking is turned on, the tool appends its own parameters to final URLs or tracking templates depending on your configuration.
You should avoid conflicting tracking templates between Google Ads and Hubspot. If a custom template is required, make sure it preserves Hubspot’s parameters.
Facebook and Instagram ad tracking in Hubspot
When you connect your Facebook Ads account, Hubspot attempts to update ad URLs or UTM parameters based on the ad format. This lets the tool identify sessions and attribute them to specific campaigns and ad sets.
If your team uses custom UTM structures, coordinate them with Hubspot tracking to avoid overwriting or duplicating parameters. In many cases, the built-in automatic tracking is sufficient for standard reporting.
LinkedIn ad tracking and Hubspot
LinkedIn Ads work similarly. When the LinkedIn ad account is connected, Hubspot updates your ad URLs with tracking parameters so clicks can be associated with campaigns, ad groups, and individual ads in your ads dashboard.
Always review any existing URL parameters in LinkedIn before enabling automatic tracking, especially if other analytics tools are in use.
Types of ads tracked by Hubspot
Not every ad type or campaign objective can be tracked automatically. The ads tool focuses on supported formats across Google, Facebook, Instagram, and LinkedIn that offer link clicks and landing page visits.
In general, ads that send traffic to a web page where the Hubspot tracking code is installed can be measured for:
- Sessions and page views
- New contacts created
- Lifecycle stage changes
- Deals and attributed revenue
Brand awareness or engagement-only formats that do not generate site visits may show limited data in the ads dashboard.
Setting up the Hubspot tracking code
The foundation for accurate ad reporting is the tracking code. Without it, clicks from your connected ad networks cannot be tied to contacts and deals in your CRM.
Install the Hubspot tracking code on your site
- Log in to your Hubspot account and navigate to your settings.
- Locate the tracking code section to copy your unique JavaScript snippet.
- Paste the code into the global header of your website, just before the closing head tag.
- Publish or deploy changes to your site.
If you use a content management system, you can typically add the tracking snippet through a theme or integration setting. Make sure the code appears on every page where ad traffic will land.
Verify the tracking code is working
Before investing heavily in ads, confirm that Hubspot is capturing visits and page views correctly:
- Visit a tracked page in an incognito or private browsing window.
- Check your analytics tools or real-time reports to see if the visit appears.
- Confirm that ad-related properties populate when clicks come from your connected networks.
If no data appears, double-check that the code is in the correct location and not blocked by tag managers, scripts, or cookie consent tools.
Connecting ad accounts to Hubspot
Once the tracking code is in place, connect your ad accounts so the tool can sync campaigns and apply tracking parameters where supported.
Connect Google Ads, Facebook, and LinkedIn to Hubspot
- Open the ads tool in your Hubspot portal.
- Click the option to connect a new ad account.
- Select Google Ads, Facebook, or LinkedIn, then sign in with the appropriate credentials.
- Grant the requested permissions so Hubspot can read campaigns and update tracking settings.
- Repeat for each additional ad account you want to track.
After connection, existing and future campaigns that meet the tool’s criteria will appear in your ads dashboard, along with performance data sourced from each network.
Enable and manage ad tracking settings
Within the ads tool, you can control whether Hubspot automatically applies tracking parameters to your campaigns. Review these settings for each network:
- Ensure automatic tracking is turned on if you want the system to add parameters to new ads.
- Disable conflicting tracking templates in the ad network if they could override Hubspot parameters.
- For advanced setups, coordinate with your analytics team to align UTM structure and reporting requirements.
Troubleshooting ad tracking in Hubspot
Occasionally, you may notice discrepancies between ad network metrics and your CRM data. Use the following checks to troubleshoot tracking issues.
Common tracking problems and fixes
- Clicks but no contacts: Confirm the Hubspot tracking code is installed on all landing pages used in your ads.
- Contacts not attributed to campaigns: Check that automatic ad tracking is enabled and that parameters are not being stripped or overwritten.
- Network data not syncing: Reconnect the ad account if permissions were revoked or changed.
- Duplicate parameters: Review any custom URL settings in the ad network that may conflict with Hubspot parameters.
If the issue persists, compare example URLs from active ads to what appears in your analytics tools, and adjust templates or settings as needed.
Using Hubspot ad data to optimize campaigns
Once tracking is configured correctly, the ads tool gives you a unified view of performance across networks, directly tied to contacts and deals in your CRM.
Measure full-funnel performance in Hubspot
Within your portal, you can evaluate:
- Which campaigns create the most new contacts
- How contacts from each ad source progress through lifecycle stages
- Which ads and keywords are associated with closed-won deals
- Return on ad spend based on real revenue, not just clicks
This allows you to shift budget to the most effective channels and pause underperforming campaigns based on complete, CRM-backed data.
Next steps and additional resources
After you have ad tracking in place, explore deeper reporting and automation by combining ad data with lists, workflows, and lifecycle properties inside your portal. To learn more about the underlying tracking behavior and supported ad types, review the official documentation on ad tracking in Hubspot.
If you want expert help implementing complex tracking strategies or integrating multiple channels, you can also consult specialists such as Consultevo for additional guidance.
With accurate ad tracking, Hubspot becomes a powerful hub for understanding how your paid efforts contribute to real business growth, ensuring every dollar spent is measured and optimized.
Need Help With Hubspot?
If you want expert help building, automating, or scaling your Hubspot , work with ConsultEvo, a team who has a decade of Hubspot experience.
“`
