Follow and raise the first navigation page of your prospects in Webflow
Tools:
Video
1. Add the custom code to retrieve the 1st navigation page and store it in the session
Add this custom code in the head of each of your landing pages
<script>
// Déclarer la variable firstPage pour les nouveaux utilisateurs et la stock dans la session
var firstPage;
if (!sessionStorage.getItem("firstPage")) {
firstPage = window.location.pathname;
sessionStorage.setItem("firstPage", firstPage);
} else {
firstPage = sessionStorage.getItem("firstPage");
}
</script>
2. Add a field to your form to retrieve the stored value
Remember to put these fields on display: none, your prospects do not need to see them and this may degrade your conversion rate.
3. Add an ID to your form field
4. Add custom code to display the 1st page URL in your form field
Remember to put the value of the ID you entered earlier in place of “firstpage”
<script>
// Récupérer l'élément HTML correspondant au champ de formulaire
var firstPageField = document.getElementById("firstpage");
// Modifier la valeur de l'élément HTML pour afficher firstPage
firstPageField.value = firstPage;
</script>
Growth Marketer, Webflow expert and a jack of all trades. I take care of commercial operations, ensure the smooth running of projects and take care of issues related to marketing (SEO, Tracking, Copywriting, etc.)