Skip to main content
Answered

Collect Gclid from Google Ads


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:

View original

36 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14532 replies
  • 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
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14532 replies
  • 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
  • 2 replies
  • 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
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14532 replies
  • 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
  • 2 replies
  • 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
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14532 replies
  • 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
  • 15 replies
  • 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
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14532 replies
  • 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
  • 15 replies
  • 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
  • 15 replies
  • April 4, 2021
Liz wrote:

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
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14532 replies
  • 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
  • 15 replies
  • 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
  • 15 replies
  • 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
  • 15 replies
  • 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
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14532 replies
  • 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
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14532 replies
  • 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
  • 15 replies
  • 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
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14532 replies
  • 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
  • 15 replies
  • April 8, 2021

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14532 replies
  • April 9, 2021

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


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

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14532 replies
  • 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
  • 15 replies
  • April 10, 2021

@Liz 
here’s what I got : 

  • gclid
    undefined

Forum|alt.badge.img+1
  • Explorer
  • 15 replies
  • 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
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14532 replies
  • 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:


Reply