Lesson 3 of 7
Capturing And Storing The Click ID
The pattern is simple: read the click id from the URL when the visitor lands, keep it with them through the form, and persist it into your CRM alongside the lead. When the deal later closes, the id is still attached.
1Read from URL→2Store in cookie→3Hidden form field→4Save to CRM
How each step works
- On the landing page, read
gclidfrom the query string (a GTM variable can do this). - Write it to a first-party cookie so it survives navigation across your site.
- Populate a hidden field on your forms from that cookie.
- Your CRM stores the id on the lead record when the form submits.
Landinggclid in URL→Cookiefirst-party→Hidden field→CRM record
Key takeaway
Capture the click id on arrival, carry it in a first-party cookie and hidden field, and store it on the CRM record so it is there when the deal closes.