Skip to main content
Answer

Storing the source of leads from UTM parameters in the URL

  • May 26, 2022
  • 7 replies
  • 216 views

Hey there,

I’m trying to see if there’s a way to store the source of leads from a form by pulling the UTMs from the URL.

I found the documentation that we can manually create hidden fields, but what I’d like to do is add the UTMs to the end of my form link like this: 

accct.typeform.com/to/IXwFkyu1/?utm_source=dynamic-source&utm_medium=social-media&utm_campaign=campaign-name&utm_term=dynamic-term&utm_content=dynamic-content

And have the UTMs stored with the form submission.

What’s the best way to do this?

Best answer by mathio-tf

Hi @breezy19 

you can use transitive search params feature of the embed SDK. Just list which params should be copied from your host page URL.

7 replies

mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • Answer
  • May 26, 2022

Hi @breezy19 

you can use transitive search params feature of the embed SDK. Just list which params should be copied from your host page URL.


Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • June 3, 2022

Hi @breezy19 Were you able to set this up? Let us know how it went!


Sun.Park
Typeform
Forum|alt.badge.img+1
  • Typeform
  • June 4, 2024

Hi @breezy19, I'm Sun and I'm a product manager here at Typeform working on Insights and I'd love to better understand how you use UTMs and hidden fields to track the success of your forms and customer outreach efforts. If you're free to chat, I'd love to talk - to make things easier, you can find time with me here.


  • Navigating the Land
  • November 11, 2025

If anyone is still having issues there’s tools out there, like Madlitics, that capture leads from Typeform by pulling the UTMs from the URL, and store those values so they can be written into your Typeform hidden fields anywhere on your site. Keeping both lead data and campaign data together, without another silo or platform to log into.

Along with UTMs, Madlitics captures additional information like visitors from organic channels (search, social, shopping, video), Google ClickIDs, Meta ClickIDs, Microsoft ClickIDs (as well as LinkedIn, TikTok, Snap, etc.), landing pages, groups, etc…


  • Navigating the Land
  • November 11, 2025

He is on to it


  • Navigating the Land
  • November 11, 2025

Hi @breezy19 Were you able to set this up? Let us know how it went!

I’m trying to see if there’s a way to store the source of leads from a form by pulling the UTMs from the URL.

I found the documentation that we can manually create hidden fields, but what I’d like to do is ad


Forum|alt.badge.img+1
  • Navigating the Land
  • November 23, 2025

If you are looking for a no-code way to do this, there are tools available (like Attributer.io, Lead Sources, etc). https://www.typeform.com/connect/attributer

They will capture the UTM parameters from the URL and store them in the user’s browser (that way they don’t get lost if a user browses around your site before completing a form).

Then when they do eventually fill out a form, it writes the data into hidden fields you add to your form and it is captured with the form submission. You can then see the data in the Results table, include it in email notifications, send it to your CRM, etc.

Some of them also pass through data on leads that come from organic channels (i.e. Organic Search, Organic Social, etc). This means you can see where all your leads are coming from, not just those from your paid ads.