Getting Started

2. Install the tracking script

Add the LeadJourney tracking script to every landing page, domain and subdomain – step by step.

Installing the LeadJourney tracking script

This is step 2 of getting started. Once your tracking domain is ready, you install the tracking script on every page you want to measure. This is what actually records page views and leads – without it, your reports stay empty.

Prerequisite: a ready tracking domain

Your snippet is built from your tracking domain, so set that up first. See Set up your tracking domain. The domain must show Ready to use before the script will load.

What you'll learn

  • Where to find your personal tracking snippet
  • How to install it on every landing page, domain and subdomain
  • How to install it on common website builders
  • How to verify that tracking is live

Choose your platform

Already know what your site is built with? Jump straight to the full step-by-step guide for your platform. Not listed here? Follow the generic steps below – they work on any website.

Step by step

Copy your snippet

Open Settings → Tracking. In the row for your domain, the Tracking Script column shows your personal snippet – click the copy icon to copy it.

Open Settings → Tracking in LeadJourney

It contains your tracking domain and your workspace ID and looks like this:

<!-- LeadJourney Tracking -->
<script type="text/javascript" async
  src="https://track.yourdomain.com/package/latest/YOUR-WORKSPACE-ID/"></script>
Copy the tracking snippet from Settings → Tracking

Use your own snippet

Always copy the snippet straight from your settings – the domain and workspace ID are unique to your account. The example above is just for illustration.

Install it on every page

Paste the snippet inside the <head> of every page you want to track – all your landing pages, domains and subdomains – and publish the change.

The tracking snippet pasted inside the page's <head>

Install it everywhere

Add the script to every domain and subdomain in your funnel (for example your landing page, your checkout and your thank-you page). A visitor that moves to a page without the script can't be tracked there.

Or use your website builder

Most builders have a dedicated place for <head> code – no developer needed. Set the trigger/scope to all pages wherever it's offered.

Install the "Insert Headers and Footers" plugin and paste the snippet into the Header section. With Elementor Pro, use Site Settings → Custom Code → Add Custom Code with location <head>.

Full WordPress guide (plugin, Elementor, Divi, theme, child theme).

Project Settings → Custom Code → Head Code. Paste the snippet, then save and publish.

Full Webflow guide.

Dashboard → Settings → Custom Code → Add Custom Code. Paste into Head, set Add Code to Pages to All pages, and Apply, then publish.

Full Wix guide.

Settings → Advanced → Code Injection → Header. Paste the snippet and save.

Site Settings → General → Custom Code → Head. Paste the snippet and publish.

In the editor, open the code symbol (</>), switch to Site Code → <head>, paste the snippet and publish.

Full OnePage guide.

Per funnel step: ⋯ → Tracking Code → Head, paste the snippet and Save. Repeat for every step, then publish with the icon.

Full Perspective guide (why it's per step and how leads are counted).

Open your Funnel / Website → Settings and paste the snippet into the Head Tracking Code field, then save and publish.

Full GoHighLevel guide (funnel vs. per-step, and how to track form leads).

Create a new tag of type Custom HTML, paste the snippet and set the trigger to All Pages, then submit/publish the container.

Add the snippet to your index.html <head>. For React / Vue / Svelte single-page apps, the script's built-in MutationObserver handles client-side route changes automatically – no extra setup needed.

Full custom-code guide (static HTML, server templates, SPA, Next.js, Nuxt).

Verify tracking

Open your website (ideally with the campaign URL parameters), then return to Settings → Tracking. Once the first page views arrive, LeadJourney confirms the script is live.

Tracking status active

Tracking not detected?

Check that your tracking domain is Ready to use, that the snippet sits inside the <head>, that you copied your own snippet (correct domain + workspace ID), and that a cookie banner or ad blocker isn't stripping the script before it loads.

On this page