Digital Marketing

How to capture UTM parameters and marketing attribution data in HubSpot

Track the source of every form submission, from campaign to keyword, so you can understand which ads are driving leads and customers.
Start capturing attribution →
Attribution is broken

Why use Madlitics with HubSpot to capture UTM and attribution data

See which channels, campaigns, and content actually drive pipeline and revenue.

Automation icon indicating hands-free marketing attribution and data flow.

Turn attribution into decisions
Move beyond “Direct/Unknown” sources. Capture accurate attribution data to understand what's driving conversions, pipeline, and revenue.

Analytics report icon, indicating data insights and reporting.

Spot top channels
Break down leads by channel such as Organic, Paid Search, Paid Social, and referrals. Identify what is working and shift budget toward top performers.

Impact measurement icon, symbolizing marketing effectiveness.

Find campaigns that convert
Track performance by campaign, source, medium, and landing page. See which efforts generate qualified leads and customers, not just form fills.

Personalization icon, representing customization features.

Persistent attribution tracking
Keep UTM and session data attached to each lead, even if they return later or convert on a different page.

HubSpot makes it easy to capture leads through forms, landing pages, and chat, while automatically syncing those contacts into your CRM, marketing tools, and automation workflows. When it comes to marketing attribution, though, HubSpot setups can still fall short with UTM parameters often missing, overwritten by subsequent visits, or inconsistently captured, leading to contacts being labeled as “Direct traffic” or lacking meaningful source data altogether.

Madlitics solves this by capturing attribution data the moment a visitor first arrives and persistently storing it through to conversion. Rather than relying on form submissions or HubSpot’s default tracking alone, it ensures that every new contact in HubSpot is enriched with accurate UTM parameters, source, medium, campaign, and landing page data.

In this guide, you will learn how to use Madlitics with HubSpot to capture complete, reliable attribution data on every form submission and sync it directly into your CRM. With this foundation in place, you can build more precise workflows, segment contacts based on true acquisition source, and clearly understand which channels and campaigns are driving leads, pipeline, and revenue in HubSpot.

Set up UTM & attribution tracking in HubSpot

Accurate marketing attribution starts with capturing where leads come from. Madlitics works with HubSpot to automatically capture UTM parameters, channel data, and first-touch attribution, then writes it into every form submission for your reporting workflows.

Madlitics multi-channel attribution visualization, showing marketing platforms like TikTok, Instagram, Google, and Facebook. The graphic highlights how different sources contribute to high-performing marketing channels.

Add UTM parameters to your traffic sources

Add UTM parameters to every marketing link you use, including paid ads, email, social, and organic search. Madlitics captures UTM parameters and marketing context automatically, then writes that data into every webform submission so HubSpot receives complete lead records.

Use our URL Builder and install Madlitics on your website so attribution data can be captured automatically and attached to every ActiveCampaign form submission.

An example URL with UTMs:
yoursite.com/hubspot-form?utm_source=google &utm_medium=cpc &utm_campaign=demo-q2 &utm_content=hero-ad

Setup GuideInstall Madlitics on your Website ->

Configure HubSpot to capture attribution data

Once your links include UTM parameters, the next step is installing Madlitics on your site and connecting your HubSpot form fields for attribution capture. Madlitics automatically collects campaign and session data behind the scenes, then passes it into fields at submission time so every lead includes complete marketing context.

  • Channel (e.g., Paid Search, Organic Social, Direct)
  • Segment(s) 1-4 (Platform, Campaign, Ad Goup, Creative Variation, etc.)
  • Landing page/group (Tracking & first-touch attribution)


Setup GuideConfigure HubSpot to collect UTM parameters ->
Setup Guide
Configure HubSpot-hosted Sites->

UTM parameters and attribution data are captured in HubSpot

When a visitor submits a HubSpot form, Madlitics automatically writes the captured UTM parameters and attribution data into the hidden fields you configured. This turns each submission into a complete record that includes both customer details and the full marketing context in one place.

  • Which channel and campaign generated the lead
  • Which landing page or content converted the visitor
  • Which source and medium drove the submission
  • Which efforts are generating qualified leads and customers, not just clicks

Use your HubSpot data in your tools

When a lead completes a submission, HubSpot captures customer details plus full UTM and attribution data for analytics, marketing automation platform, spreadsheets, or BI tools just like any other lead record. With attribution connected directly to submissions, you can finally see which channels, campaigns, and pages are driving real pipeline and revenue.

  • Create reports showing which channels and campaigns generate leads, customers, and revenue
  • Compare performance across channels, offers, and landing pages
  • Give sales teams clear context on how each lead found you
  • Analyze customer acquisition performance inside tools like ActiveCampaign, HubSpot, Zoho, and more
Graph showing new customer growth from TikTok, Instagram, Snapchat, and Google over time, with social media icons surrounding the chart and a callout for social revenue impact.

Use HubSpot attribution data in your reports

When HubSpot forms send complete UTM and attribution data into your CRM, you can finally report on more than just submission counts. You can analyze which forms, traffic sources, and campaigns drive your best leads and customers, then double down on the workflows and pages that move the needle.

Stacked bar chart showing lead generation by marketing channel over time, comparing sources like Paid Search, Paid Social, Organic Search, Direct, and Email. Helps visualize which channels drive the most traffic.

Leads by channel
Compare lead generation across Paid Search, Paid Social, Organic Search, Email, Referral, and Direct traffic. This makes it easy to see how each channel contributes to pipeline and revenue so you can prioritize the ones that perform best.

Stacked bar chart illustrating lead volume across different marketing campaigns, including Black Friday, Retargeted, Spring Promo, Referral, and SEO. Highlights trends in campaign effectiveness.

Leads by campaign
Track which campaigns generate the highest volume of qualified leads using UTM parameters from your HubSpot forms. Campaign-level reporting helps you compare audiences, offers, and messaging across all channels, not just a single ad platform.

Line chart displaying lead-to-customer conversion rates by channel, comparing Google Ads, Facebook Ads, LinkedIn Ads, Organic Search, and Email. Shows how different sources drive qualified leads over time.

Conversion rate by channel
Measure which traffic sources convert leads into customers most effectively using the channel data captured in HubSpot submissions. Some channels may drive lots of form fills but low-quality leads, while others consistently produce higher-value customers and stronger revenue.

Line chart showing revenue performance by marketing campaign, comparing Google Ads, Facebook Ads, and LinkedIn Ads. Helps identify top-performing and underperforming campaigns.

Revenue by campaign
Connect HubSpot attribution data to customers and revenue to see which campaigns are driving real business impact. This makes it easier to optimize budget, scale the campaigns that perform best, and reduce spend on efforts that fail to turn leads into revenue.

Use HubSpot as your attribution engine

HubSpot is a fast, flexible way to capture leads across your site, from demo requests to content downloads and surveys. It fits naturally into a modern marketing stack where teams ship new forms quickly and optimize for completion rates, not just pageviews.

Madlitics adds the missing attribution layer by turning every HubSpot submission into a complete record with UTM parameters, channel, campaign, and landing page data tied to each lead. Instead of guessing which forms and traffic sources are working, you get clear insight into what actually drives pipeline and revenue inside your CRM and reporting tools.

Start today by connecting Madlitics to your site and HubSpot forms, then use your new attribution data to build reports, refine campaigns, and invest more confidently in what works. Sign up for a free Madlitics trial and make your HubSpot forms a reliable source of marketing attribution.

Register for a free Madlitics trial account, today -> 

Related articles to get you started with Madlitics

Frequently asked questions

Answers to common questions about UTM tracking with Madlitics and HubSpot

Everything you need for reliable lead attribution
Accurate, persistent, and automated tracking — so your campaigns perform at their best.
Performance icon symbolizing marketing campaign effectiveness and results tracking.
Outperforms basic UTM tracking
Madlitics captures, categorizes, and persists attribution data across sessions, giving you a complete, structured view of what’s working in your marketing. Say goodbye to losing attribution when users navigate your site, struggling with formatting inconsistencies, and ingored non-UTM traffic.
Capture icon indicating data collection from various marketing channels and sources.
Capture all traffic
Madlitics categorizes all inbound leads — whether they have UTM parameters or not — so every conversion is accounted for, and you won't miss out on Organic Search, Organic Social, and Referral traffic.
Routing icon representing the flow of marketing data and attribution pathways.
Attribution across pages and sessions
A LinkedIn ad click should be attributed correctly—even if the visitor signs up on a different page later. If someone clicks an ad, browses multiple pages, then submits a form later, Madlitics persists attribution data across sessions, ensuring your reports reflect true performance.
List icon representing structured marketing data, reports, or campaign breakdowns.
Cleaner, more reliable data
Duplicate UTMs and inconsistent formatting break reports and mislead teams. Madlitics cleans and organizes attribution data before sending it to your CRM, giving you accurate insights.
Target icon symbolizing precise audience targeting and marketing campaign focus
See which content converts
Attribution isn’t just about where visitors came from—it’s about what convinced them to convert. By capturing landing page data alongside UTM parameters, Madlitics shows you which blog posts, case studies, or pricing pages drive the most revenue, helping you scale content that works.
Action icon representing campaign execution, optimization, and engagement.
Transform form submissions into actionable insights
Madlitics connects marketing touchpoints to lead generation, ensuring every form submission is fully attributed — optimize ad spend by identifying high-ROI channels, refine messaging based on what content drives engagement, make data-driven decisions with clean, structured reports, and more.