Skip to main content
Answered

Transfer utm_source in Wordpress

  • March 22, 2021
  • 3 replies
  • 170 views

I’m using pop-up methid of invoking my Typform in Wordpress.

I’m using utm_source in advertising and want to transfer the utm_source value to the Typeform form so that it appears in Results.

Is there an easy way to do this?

Best answer by Liz

Hi @matchd-rb thanks for stopping by! Would the solution below work for you? :grinning:

 

 

3 replies

Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • Answer
  • March 22, 2021

Hi @matchd-rb thanks for stopping by! Would the solution below work for you? :grinning:

 

 


  • Author
  • Explorer
  • March 23, 2021

Thanks Liz, Yes that works.

 

Answer is to add:

data-transferable-url-parameters="utm_source, utm_medium”

Immediately after:

data-mode="your embed mode"

 


Forum|alt.badge.img+1
  • Explorer
  • July 10, 2026

Since it's a popup embedded on your WordPress site (not a hosted Typeform you're linking out to), this is actually straightforward using Typeform's own hidden fields.

Add a hidden field to your Typeform called utm_source, then make sure your ad links point to a page with `?utm_source=xxx` in the URL. When someone triggers the popup and submits, Typeform will pull that value straight from the URL into the field, and you'll see it in Results.

The one catch: this only works if the visitor is still on that same page (with the UTM still in the URL) when they submit. If they land on your homepage, then click through to another page before opening the popup, the UTM is gone and there's nothing for Typeform to grab.

If that's what's actually happening (worth checking first, since it's the most common reason this "stops working"), you'd need something to capture the UTM on arrival and hold onto it until the form is submitted, even if that happens several pages later. That's essentially what Attributer.io does, it stores the value in a cookie on landing and writes it into the hidden field whenever the popup is eventually completed (disclosure: I'm the founder). As a side effect it also fills in a source for visits with no UTM at all, like organic search or direct traffic, if that's useful to you.