Please can you help me to get this code right so I can start tracking via typeform.
I’m using Zapier to pull the information from typeform, but all I ever get is this
Any help is appreciated.
Thanks,
Murray
Best answer by picsoung
Hey @Murray If I understand correctly you want to pass to the embedded typeform the unique gclid value, is that correct?
Because this value is generated by Google Analytics code for each visitor we would need a way to extract it and pass it to the embedded typeform.
To do so we can’t just use the embed code provided in the Share panel or the Typeform Wordpress Plugin, we would need to create something custom using the Typeform Embed SDK.
I want the valuable from my google ad gclid as it passes through, so potentially I wouldn’t provide the value in here, otherwise it would be static (gclid - as per above)?
Could I leave it blank, would that pass through the dynamic valiable?
Been trying to work this out for about a week now but I haven’t found the instructions clear.
Hi @Murray You’ll want to leave that hidden field blank. Google Analytics and Google Ads should be filling in that data for you, so in this case, if you remove the “gclid” after the equals sign, it should automatically fill in the data for you.
Though, what you’re missing is the = sign after the “glicd.” You can remove the x’s, but you’ll need that equal sign to pass information. Let me know if that doesn’t work!
Hey @Murray If I understand correctly you want to pass to the embedded typeform the unique gclid value, is that correct?
Because this value is generated by Google Analytics code for each visitor we would need a way to extract it and pass it to the embedded typeform.
To do so we can’t just use the embed code provided in the Share panel or the Typeform Wordpress Plugin, we would need to create something custom using the Typeform Embed SDK.
Reading through the comments above, there seems to be a misunderstanding. The GCLID is not generated by Google Analytics. It is generated by Google Ads when auto-tagging is turned on and then appended to the URL the user is directed to after they click the ad (in the same way UTM parameters are).
I suspect your issue is that the GCLID isn’t being stored as visitors browse around your site. So if someone clicks your ad, lands on your Homepage, and then clicks over to your Contact Us page and fills out a form there, the GCLID is no longer in the URL so would no longer be pulled in with Typeform’s standard hidden field functionality.
You need to either write some code to store the GCLID and then write it into the hidden fields, or use pre-built tools like Attributer.io which would handle it all for you. These tools grab the GCLID (and other data, liek if a user comes from organic search), store it in the user’s browser, and then write it into hidden fields on your Typeform for you. It is then captured with each submission and can be seen in the Results table, include din email notifications, sent to your CRM, etc.
And if you want (and I assume this is your ultimate goal), you can then use tools like Zapier to send it back to Google Ads as an offline conversion (I.e. when a lead finally becomes a customer)