Don't have one? Create one ↗
Offline conversion tracking

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 URL2Store in cookie3Hidden form field4Save to CRM

How each step works

  • On the landing page, read gclid from 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 URLCookiefirst-partyHidden fieldCRM 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.