Let's say you include a link in an email that goes to a form, and there are UTM tags within the URL that fill out hidden fields within that form.
If a user clicks on link in the email, they will be sent to the form with the UTM parameters in the URL. However, if they leave that page for a moment to look at your website, and then return to the form, the UTM tags or no longer there.
Is there a way to have it so that the hidden parameters in the form are still recognized through the original link source if a user decides to navigate away from the page but return during the same session?
If not, are there other solutions to this?
The method we use is that we store the utm values in cookies on page entry. So when the person fills out the form, we read the values from the cookies instead of the URL parameters.
We use a combination of session cookies (the utm of the current web session the lead is running) and permanent cookies (understand lifespan 2 years) that store the utm values for the very first session the lead ran, even if he did not convert then.
You will still need so JS to capture the utm and store them in cookies.
I published the codes we use recently on another post, but could not find it again So here they are: