My company is migrating to Salesforce, and I’m currently having issues with our AdWords integration, so that new leads can be detected as coming from Google ads via the GCLID code.
I’ve been following instructions in this article, but not getting it to work with regards to pulling in the GCLID code into the hidden form field I’ve created.
Here are the screenshots of what’s been updated in the Webflow code, for our Request Demo form that lives in the primary nav. You can access by visiting this URL with a GCLID test appended: https://www.blueboard.com/?gclid=“test”
Code within Webflow Request Demo Form , this is part 2 within Step 3 of the instructions we’ve been following.
Resulting Request Demo form submission , where GCLID field is still empty. Both my original one, and the new one, aren’t populating any data. The word “test” should be showing as text below if this was properly working.
It used to look like this, as reference, where the GCLID was populating in the field “zc_gad”:
Does anyone have instructions for how to properly write the code so that the GCLID code is captured? Once we have this data, we can send it to Salesforce and continue with our integration steps.
The ID attribute should be unique to one element across a page. You have two. That could create an issue.
We can’t see all the code in your embed so can’t review that.
Google does recommend setting a cookie to store that value. Your not indicating that that you are running that script. See Step#2 from your instructions link.
Step#3 uses the cookies GCLID value. So if it is not being set in step 2 it is null.