Install the tracking script on Perspective
Add the LeadJourney tracking script to a Perspective funnel via each step's Tracking Code, then publish – so every page view and lead is tracked.
This guide shows you how to add the LeadJourney tracking script to a Perspective funnel. Perspective has a built-in Tracking Code field on each funnel step, so no developer is needed – you paste the snippet into a step's Head, repeat it for every step, and publish.
Prerequisites
A tracking domain that shows Ready to use and your personal snippet from Settings → Tracking. If you haven't set those up yet, start with Set up your tracking domain and Install the tracking script.
Tracking Code is per step
In Perspective the Tracking Code is added per funnel step and only loads on the step you add it to – there's no single project-wide field for custom scripts. To track the whole funnel, paste the snippet into every step, especially your entry step (first page view + attribution) and your success / thank-you step (your lead).
Step by step
Copy your snippet
Open Settings → Tracking and copy the snippet from the Tracking Script column. It contains your tracking domain and workspace ID and looks like this:
<!-- LeadJourney Tracking -->
<script type="text/javascript" async
src="https://track.yourdomain.com/package/latest/YOUR-WORKSPACE-ID/"></script>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.
Open a step's Tracking Code
In the Perspective builder, open your funnel. In the left column, hover the step's name and click the three dots (⋯) → Tracking Code. A popup opens where you can switch between Head and Body.
Paste into Head and save
Select Head, paste your snippet into the dark code field and click Save.
Repeat for every step
Because the Tracking Code is per step, repeat steps 2–3 for each step of your funnel so no page is left untracked.
Don't skip the success step
At a minimum, add the snippet to your entry step (so the first page view and the campaign parameters are captured) and your success / thank-you step (so the completed submission is counted). Adding it to every step in between gives you the full picture.
Publish
Click the lightning icon (⚡) in the top-right and publish your funnel with all changes.
The editor preview doesn't run custom code
The script only runs on the published funnel served on your connected domain – not the builder or the share/preview link. If you save but don't publish, nothing is tracked.
Verify tracking
Open your published Perspective funnel in a new browser tab, then return to Settings → Tracking. Once the first page views arrive, LeadJourney confirms the script is live.
How leads are counted in Perspective
Perspective captures leads with a contact / form step, and after submission the visitor
lands on your success step. If that success step carries the snippet (step 4), its page
view becomes your Lead signal – the cleanest way to count completed funnels. See
Track events to turn that success-page view into a
conversion.
Troubleshooting
Tracking not detected?
Check that your tracking domain is Ready to use, that you pasted your own snippet
(correct domain + workspace ID) into the Head of the step (not Body), and that you
published the funnel afterwards on your connected domain (not the builder preview).
Remember the Tracking Code is per step – a step without the snippet won't be tracked, so
confirm you added it everywhere. Open the live page, view source (Ctrl/Cmd + U) and search
for package/latest to confirm the snippet is on the page. Also make sure a cookie-consent
tool isn't blocking it.
Related articles
Install the tracking script on OnePage
Add the LeadJourney tracking script to a OnePage (onepage.io) project site-wide via Site Code, then publish – so every page view and form lead is tracked.
Install the tracking script on GoHighLevel
Add the LeadJourney tracking script to a GoHighLevel funnel or website via the Head Tracking Code, then publish – so every page view and lead is tracked.