Skip to main content

Can't pass the UTM from URL to the embed form in my website

  • Dec 22, 2022 10:54 AM UTC
  • 6 replies
  • 107 views

Hi,

 

I have a problem. I have already added transitiveSearchParams of utm in the embbed form already. Why I still can’t see the utm on my Google Analytics when I submit the form from my website?

 

PS. Form is already connected to my GA
 

 

6 replies

Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • Dec 22, 2022 3:12 PM UTC

@mathio may be able to help with this! 


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • Dec 22, 2022 3:24 PM UTC

Hi, can you show me a page or eg. CodeSandbox with this issue? Your code seems correct and transitive search params work eg. in our demo.


  • Author
  • Explorer
  • Dec 26, 2022 2:32 AM UTC

@mathio this form is attached to this website https://atlas.kitchen/


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • Dec 27, 2022 9:48 AM UTC

I tried to replicate the code in CodeSandbox and it works for me:

https://codesandbox.io/s/currying-meadow-wmn3rj?file=/src/App.js:226-370

If you add ?utm_source=123123 to the URL, you can see it is passed to the embedded form.

 

I dont know what the issue might be in your website.


  • Author
  • Explorer
  • Jan 4, 2023 8:05 AM UTC

@mathio Thank you very much or checking this for me. 

 

Do you have any recommendation for the website like what should we check?

I am not a developer myself but I’ll need to give the developer suggestion.

 

Thank you once again! 


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • Jan 4, 2023 10:25 AM UTC

From the top of my head:

  • ensure the query param is present in your page URL at the time the typeform renders
  • in past I have seen 3rd party JS scripts modify <iframe> src attribute before it loads
  • you could build the embed package locally and link a local dependency (via yarn link or yalc) and try to debug the issue (look into get-transitive-search-params.ts file)