Can't pass the UTM from URL to the embed form in my website | Community
Skip to main content

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

  • December 22, 2022
  • 6 replies
  • 80 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
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15035 replies
  • December 22, 2022

@mathio may be able to help with this! 


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • December 22, 2022

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
  • 2 replies
  • December 26, 2022

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


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • December 27, 2022

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
  • 2 replies
  • January 4, 2023

@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
  • 888 replies
  • January 4, 2023

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)

 


Reply