Ajouter

Lorem ipsum

Lorem ipsum

Tracking

5 min

Track and surface your prospects’ first navigation page in Webflow

Video

StepWebflow elementAction
1Head of each pageAdd the script to capture the first page
2FormAdd a hidden field to store the URL
3Hidden inputAdd a unique ID (e.g. firstpage)
4Head or BodyInject the value into the field

In this episode, Sandro, cofounder of the Gemeos Webflow agency, shows you how to track and capture the first page your prospects visit in Webflow

1. Add the custom code to capture the first page and store it in session

Add this custom code in the head of each of your landing pages

 

2. Add a field to your form to pass along the stored value

Make sure to set these fields to display: none. Your prospects don't need to see them, and it could hurt your conversion rate.

3. Add an ID to your form field

4. Add the custom code to display the first page URL in your form field

Make sure to replace "firstpage" with the ID you set earlier

 

good to know

This script uses sessionStorage, which resets when the tab is closed. To keep the first page across multiple sessions, replace sessionStorage with localStorage.

5. Publish your site and test the result

Published on 10.04.2025

You might be interested in these tutorials

Similar tutorials

SEO / GEO

5 min read

5 views

How to Set Up a Redirect in Webflow? (2026)

Updated on 19.12.2025 by Sandro DA SILVA

SEO / GEO

5 min read

5 views

Add structured data to your Webflow site?

Updated on 21.08.2025 by Sandro DA SILVA

No-code

5 min read

5 views

How to Obfuscate a Link in Webflow

Updated on 23.04.2025 by Sandro DA SILVA

Let’s f*****G GO !!

Ready to launch
Your business?

Alexandre

Max

Enora

Bryan

Cannelle

Tiphaine

You'll :heart: our collaboration...