Skip to content

Instantly share code, notes, and snippets.

@SearchStar
Last active January 4, 2024 14:25
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save SearchStar/9b4639618a192fc66055 to your computer and use it in GitHub Desktop.
Save SearchStar/9b4639618a192fc66055 to your computer and use it in GitHub Desktop.
Instructions for adding Google AdWords GCLID tracking for the Conversion Upload tool
/* 2. Modify your site’s prospect lead information submission page — usually, a lead submission form — to read the
* GCLID from the cookie and pass it along to your lead management system, along with the lead’s contact information.
* You can retrieve the GCLID value via your choice of client- or server-side languages. Once retrieved, it’s a good
* idea to pass the GCLID through your lead submission form as a hidden field element.
* Here’s an example form with a hidden field for collecting the GCLID. You should insert the highlighted <input>
*/ tag in between your <form> tags.:
<form action="" name="myForm">
Name: <input type="text" name="name">
<input type="hidden" id="gclid" name="gclid" value="">
<input type="submit" value="Submit Form" name="btnSubmit">
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment