Skip to main content

2.4 How to test if the LeadJourney Tracking Script works

Jonas Strambach avatar
Written by Jonas Strambach
Updated over 2 months ago

After installing your LeadJourney Tracking Script, it's important to make sure everything is working correctly.

This quick test will confirm whether the script is active, loading properly, and generating Click IDs for your website visitors.


🧪 What Are We Testing?

By following the steps below, you’ll be able to check:

  • If the script is loaded on your website

  • If a Click ID is generated for visitors

  • If LeadJourney tracking is active and functional


🚀 Step-by-Step Test

Step 1: Open your website

Visit the page where you installed the tracking script (usually your homepage or a landing page).

💡 Make sure to open it in a private/incognito window to simulate a fresh visitor.


Step 2: Open Developer Tools

  1. Right-click anywhere on the page

  2. Click "Inspect"

  3. Go to the "Console" tab at the top


Step 3: Check for the Click ID

In the Console, type the following and press Enter:

localStorage.getItem("clickId")

You should see a result like:

dc89316b-cd8c-508c-83ab-18d95ba5ec89

This means a unique Click ID has been created and tracking is active.


Step 4: Check the Network (Optional)

If you want a deeper check:

  1. Go to the "Network" tab in Developer Tools

  2. Reload the page

  3. Look for a request to your tracking domain (e.g. t.yourdomain.com)

  4. If the request shows a 200 status and no errors → ✅ it’s working


✅ Success Message

If you see a Click ID returned (e.g., dc89316b-cd8c-508c-83ab-18d95ba5ec89), your tracking script is working perfectly. You’re now capturing visitor sessions and can start matching leads to ad clicks.


⚠️ If It Doesn’t Work

If localStorage.getItem("clickId") returns null or undefined:

  • Make sure the script is correctly placed inside the <head> of your website

  • Double-check that your CNAME record is verified and pointing to package.leadjourney.io

  • Wait up to 24 hours if you just added or changed DNS settings

  • Disable ad blockers or test in a different browser

Still having trouble? Contact our support team — we’ll help you troubleshoot it quickly.


🎯 Final Thoughts

Testing your LeadJourney script ensures you’re ready to:

  • Track every visitor

  • Store accurate Click IDs

  • Send real conversion data back to Meta and Google Ads

This is the first step toward better attribution and smarter marketing decisions.

Let us know if you'd like help verifying your setup — we’re happy to take a look!

Did this answer your question?