Skip to main content

2.6.5 How to capture and parse the LeadJourney Click ID with leadcapture.io

Jonas Strambach avatar
Written by Jonas Strambach
Updated this week


Overview

LeadJourney assigns a unique Click ID to every visitor, stored in the browser's localStorage. With LeadCapture.io, you can automatically retrieve and submit this Click ID without needing to write custom JavaScript—just by configuring a special field.

This guide shows you how to:

✅ Configure LeadCapture.io to retrieve the Click ID from localStorage
✅ Auto-fill it into your form as a hidden field
✅ Ensure the Click ID reaches your CRM for proper attribution


Why This Matters

The lj_click_id is what links:

  • An ad click

  • A form submission

  • A lead or contact in your CRM

  • And the final conversion event

Without it, LeadJourney can’t tie performance back to campaigns or send conversion events to Meta and Google Ads.


🛠 Step-by-Step Setup in LeadCapture.io

1️⃣ Add a New Field for the Click ID

  1. Log into your LeadCapture.io dashboard

  2. Open the form editor for the form you want to track

  3. Add a new field

Set the field options as follows:

  • Field Name: lj_click_id

  • Field Type: JavaScript variable lookup

  • JS Variable Name:

    localStorage.getItem('clickid')
  • Field Visibility: Hidden (if available)

💾 Save and publish the form.


✅ How It Works

As soon as the form loads, LeadCapture.io will evaluate the JavaScript expression:

localStorage.getItem('clickid')

This retrieves the LeadJourney Click ID that was previously stored during the ad click.

The value will be auto-filled into the lj_click_id field and submitted with the form—no custom scripts required.


🧪 How to Test It

  1. Open your website form page in incognito mode

  2. Open Developer Console (F12 → Console tab)

  3. Run this command:

    localStorage.getItem('clickid')

    You should see a value like ab3c-xyz-123 returned

  4. Submit the form and check your CRM or data destination

  5. Confirm that lj_click_id was submitted with the form data


💬 Need Help?

If you don’t see the Click ID appearing or have trouble accessing advanced field settings in LeadCapture.io, reach out to LeadJourney Support.

We’ll help you review your form configuration and ensure your tracking is bulletproof.


🧠 Summary

✅ Add a field named lj_click_id in your LeadCapture.io form
✅ Set it to JavaScript variable lookup
✅ Use localStorage.getItem('clickid') to auto-fill the value
✅ Test and confirm it's reaching your CRM

This setup requires no code, no custom scripts, and ensures every lead is trackable from click to conversion.

🚀 You're now fully equipped to capture the LeadJourney Click ID with LeadCapture.io!

Did this answer your question?