GA4 - Difficulty with Passing Through Source, Medium, Campaign with Embedded Typeform | Community
Skip to main content
Question

GA4 - Difficulty with Passing Through Source, Medium, Campaign with Embedded Typeform

  • September 26, 2024
  • 8 replies
  • 95 views

I have followed instructions from previous community posts, but have not been able to pass through source/medium parameters from GA4 into typeform. Currently our typeform submits are showing in GA4 as self-referral. I would love to get it to a place where we can see source/medium data from where users are arriving at the site. 

When I took a look in developer tools it looks like we are getting an error that the shareGAinstance feature is not finding the Google Analytics object. 

We have our GA4 measurement ID set up through GTM, which could be causing an issue. I am seeing the cookie pass through the client ID and measurement ID. 

 

 

We also have hidden fields defined for passing through UTM parameters to hubspot, which could be conflicting. 
 

Would it help if we defined the GA4 measurement ID in the share-GA instance or is there other areas in set up where we’ve failed. Thank you!

8 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14960 replies
  • September 26, 2024

Hi @blakec Do you mind sharing the URL where the form is embedded so we can take a look? Thanks in advance!


  • Author
  • Explorer
  • 3 replies
  • September 26, 2024

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14960 replies
  • September 27, 2024

Thank you!! @mathio do you happen to know if there is anything in the embed that would be preventing the hidden fields from passing into the typeform correctly? 


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • September 30, 2024

Hello @blakec 

I see the data-tf-hidden attribute passes empty values to the hidden fields. Try removing that (you can do this on Typeform share page by disabling the “Set custom values” setting).

 


  • Author
  • Explorer
  • 3 replies
  • September 30, 2024

Hi @mathio - I disabled the set custom values setting. I will see if that helps. Thank you. 


  • Author
  • Explorer
  • 3 replies
  • October 1, 2024

@mathio - I disabled the setting, but still having issues. Should I disable the hubspot hidden fields as well, or is there anything else I should check? Thanks!

 

 


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14960 replies
  • October 3, 2024

Tagging @mathio in case he missed the reply!


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • October 3, 2024

Are you using Hubspot integration? If not, please disable it.

How are you passing the UTM params to your page? Is it via query params in URL?

 

I am sorry but I have overlooked the console error about Google Analytics in your original console - this looks like your GA is not loaded at the time when your embedded typeform is loaded. Do you ahve GA in your page? Is it possible there is some race condition? You might need to embed via JS (using window.tf.createWidget method) and make sure the JS is executed after your GA code is loaded.

 

PS: @Liz thanks, I missed the last reply.


Reply