Skip to main content
Answered

Collect Gclid from Google Ads

  • March 22, 2021
  • 37 replies
  • 4263 views

Hi! ๐Ÿ™‹โ€โ™‚๏ธย 

Does anyone know how to collect Google Ads Gclid with Typeform?

Thank you in advance ๐Ÿ™๐Ÿผ!

Alberto

Best answer by Liz

Hi @Albertoย thanks for stopping by! We donโ€™t support Google Ads directly, you could try the following workaround first to track the events from Google Analytics.ย 

1. Install Google Analytics on the Typeform
2. Create a goal based on the "On Submit" Event on Typeform
3. Connect Analytics Goals To Google Ads

To actually pass in the Gclid, you would need to use hidden fields on your form. Then, I would follow the steps below to pass in data if you happen to have the form embedded on your site.ย 

ย 

https://community.typeform.com/developers-corner-44/faq-developer-portal-136

ย 

Does that help a bit?ย :grinning:

37 replies

Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • Answer
  • March 23, 2021

Hi @Albertoย thanks for stopping by! We donโ€™t support Google Ads directly, you could try the following workaround first to track the events from Google Analytics.ย 

1. Install Google Analytics on the Typeform
2. Create a goal based on the "On Submit" Event on Typeform
3. Connect Analytics Goals To Google Ads

To actually pass in the Gclid, you would need to use hidden fields on your form. Then, I would follow the steps below to pass in data if you happen to have the form embedded on your site.ย 

ย 

https://community.typeform.com/developers-corner-44/faq-developer-portal-136

ย 

Does that help a bit?ย :grinning:


Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • March 23, 2021

Hi @Albertoย thanks for stopping by! We donโ€™t support Google Ads directly, you could try the following workaround first to track the events from Google Analytics.ย 

1. Install Google Analytics on the Typeform
2. Create a goal based on the "On Submit" Event on Typeform
3. Connect Analytics Goals To Google Ads

To actually pass in the Gclid, you would need to use hidden fields on your form. Then, I would follow the steps below to pass in data if you happen to have the form embedded on your site.ย 

ย 

https://community.typeform.com/developers-corner-44/faq-developer-portal-136

ย 

Does that help a bit?ย :grinning:


  • Author
  • Explorer
  • March 23, 2021

Thank you @Lizย for your reply!

ย 

I understand that the Analytics option can be a good one for creating conversions for โ€œOn Submitโ€.

But if the form is not embedded in my site I understand that there is no way to collect the Gclid, right?

ย 

Thank you in advance for your time,

Alberto

ย 


Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • March 24, 2021

Hi @Albertoย if youโ€™re able to passing the Gclid through the ad into a hidden field, that should work fine then! Itโ€™s much easier than embedding anyway since all you have to do is add a hidden field to your form and be sure that the URL in your Google Ad is passing the Gclid into the form.ย 


  • Author
  • Explorer
  • March 24, 2021

Thank for your reply. No that is exactly what I want to do but I do not know how to do. To pass the Gclid through the ad into a hidden field.

My form has already a hidden field called gclid, and the Url in my ad has the Gclid


Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • March 24, 2021

@Albertoย Ah, thatโ€™s perfect then! It should pass it so long as you have it in the URL. Are you noticing any errors with it?


Forum|alt.badge.img+1
  • Explorer
  • April 1, 2021

@Lizย  Iโ€™m trying to set up the same process on my sideย  Google Ads โ†’ย GCLIDโ†’ย Landing page โ†’ย Typeform POPUPย โ†’ย HIDDEN FIELD โ†’ย GA GOALSย โ†’ย GOOGLE ADSย 

Could you explain clearly how to accomplish on typeform what/ how to pass the GCLID into the Hidden field AND also how to modifify (if needed) the exported code ?

*iโ€™m using the new builder with Professional PLanย 

But I keep having that as a result? See attachย 

ย 


Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • April 2, 2021

Hi @Antoninย ah, it looks like you havenโ€™t added the gclid as a hidden field. Youโ€™ll first want to do that using the instructions here. Let me know if you have any troubles adding hidden fields!ย 


Forum|alt.badge.img+1
  • Explorer
  • April 3, 2021

@Lizย How do you pass information (hidden field) to a specific product page (or checkout page)ย in shopify so it shows up?ย 

ย 


Forum|alt.badge.img+1
  • Explorer
  • April 4, 2021

Hiย @Antoninย ah, it looks like you havenโ€™t added the gclid as a hidden field. Youโ€™ll first want to do that using the instructions here. Let me know if you have any troubles adding hidden fields!ย 

@Lizย  Seems like iโ€™m doing something wrong.. since I still have these results!!?
SO on GA, iโ€™m not able to record the the google source of the goals accomplished
ย 

ย 


Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • April 5, 2021

Hi @Antoninย While it looks like the Gclid is passing into the hidden fields, the UTM variables are not passing in. Do you have these pre-defined in the URL on your ad?ย 

For example, when someone clicks on the ad, the URL should look something like this:ย 

ย 

www.hello.typeform.com/to/sdfjdfd?utm_source=ad&utm_medium=somethingelsehere

ย 

As for passing the data from Typeform into Shopify, you could first setup a redirect URL to pass data out of the form similar to this setup.ย 

ย 

The next step would be allowing the pages on your Shopify site to accept the data, which would include custom coding, depending on how you have your Shopify site built and the cart youโ€™re using. Thereโ€™s a thread about thisย here, and the first thing to figure out would be where youโ€™re sending your respondent after they fill out the form.ย 


Forum|alt.badge.img+1
  • Explorer
  • April 5, 2021

@Lizย  ,

Maybe my question was confusing โ€ฆย 
The Gclid is passed from google ads Gclidย โ†’ย landing pageย ย โ†’ย typeform โ†’ย  ?? โ†’ GA

But it seems that GA doesnโ€™t receive the Gclid from Typeform?

The objective goal is properly set up and captures the event all the time but it doesn't associate it with the Gclid from Google Ads Campaign.ย 

*Concerning the UTM, I deleted them since I'mย using the Gclid.ย 


Forum|alt.badge.img+1
  • Explorer
  • April 5, 2021

@Lizย 

ย 

My understanding.. is that in order to attribute the conversion goals to Google Ads (and the right campaign).. the Gclid needs to be transferred to GA while the event is triggerโ€ฆย but what from this screenshotโ€ฆย I still see only xxxx?ย 

ย 


Forum|alt.badge.img+1
  • Explorer
  • April 6, 2021

Hey @Lizย ..
Updateโ€ฆย Weโ€™re one step forward...it not seem that it recognize that itโ€™s from Google Ads Source...but itโ€™s doesnโ€™t fit into any campaignย ย ...it created a โ€œNo Setโ€ within google ads section of GA (so itโ€™s doesnt send the data back to google ads).. do you know how to fix this?ย 

ย 


Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • April 7, 2021

Hi @Antoninย Hm, Iโ€™m a bit stuck here as well. :\ Since we donโ€™t currently have an integration with Google Ads, Iโ€™m not quite sure of additional troubleshooting steps, but Iโ€™ve reached out to our marketing team who regularly work with ads to see if they happen to have an idea what to do next. Iโ€™m sorry I donโ€™t have better advice right away, but Iโ€™m hoping theyโ€™ll be able to help me out here!


Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • April 7, 2021

Hi @Antoninย did you add โ€œgclidโ€ as a hidden field to your typeform and also be sure to publish the form after adding the hidden field?


Forum|alt.badge.img+1
  • Explorer
  • April 8, 2021

@Lizย 

THanks for your feedback!ย 
The problem is not actually with Google Ads itselfโ€ฆย more with Google analytics directly who doesn't โ€œknowโ€ which GCLID to associate the event toโ€ฆ

The gclid is passed along the URL effectively and even to the next page after redirectโ€ฆย however when Typeform submit the โ€œTask completionโ€ it seem that it doest not include the GCLID itself so that GA couldnโ€™t know from with source/campaign it came fromโ€ฆ

Could it be because itโ€™s a popup?ย 
Could it be because the trigger from Typeform is sent before receiving the Gclid?
Or is it because itโ€™s not possible to pass the Gclid ?ย 

this is the Source captured by GA from Typeform Event :ย 

/to/kMYymiXY?typeform-medium=embed-sdk&typeform-embed=popup-blank&typeform-source=podform3d.com&typeform-embed-id=16smv#gclid=xxxxx

ย 
it always has the XXXX instead of the actual number!ย 


Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • April 8, 2021

Ah! That would be it. Would you mind sending the URL of the embed? I can take a look at the code to show you how to adjust it so the hidden field passes through. Youโ€™ll also want to be sure that youโ€™veย publishedย any changes to the form to be sure that the hidden field captures!


Forum|alt.badge.img+1
  • Explorer
  • April 8, 2021

Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • April 9, 2021

Hi @Antoninย Could you please send the URL where the form is embedded?


Forum|alt.badge.img+1
  • Explorer
  • April 9, 2021

Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • April 9, 2021

Thanks, @Antoninย ! I submitted a test with the gclid information filled in. Would you mind letting me know if that has appeared in your hidden fields?ย 

If not, our technical support team can look further into the form in your account to see why itโ€™s not passing, and youโ€™ll want to contact them through your account email here.ย 


Forum|alt.badge.img+1
  • Explorer
  • April 10, 2021

@Lizย 
hereโ€™s what I got :ย 

  • gclid
    undefined

Forum|alt.badge.img+1
  • Explorer
  • April 12, 2021

@Lizย 

Could you give it a try with this one:ย https://podform3d.com/pages/foot-pain

I have tried to set up a Landing Page event goal trigger in GA but even there the Gclid is lost along the wayโ€ฆย Please helpโ€ฆย 


Liz
Exโ€“Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • April 12, 2021

Hi @Antoninย Hm, at this point, itโ€™s best to have our technical support team look further into this, as it seems that everything in the hidden fields portion is setup correctly. Would you mind contacting them from your account email here? Once you do, please let me know, and I can share this thread with them.ย :grinning: