Re: Question on UTM Tags

Mikes_Jones
Level 8

Question on UTM Tags

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?

4 REPLIES 4
Grégoire_Miche2
Level 10

Re: Question on UTM Tags

Hi Malik,

There are various ways to handle this, all of which will requires some Javascript development.

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.

-Greg

Mikes_Jones
Level 8

Re: Question on UTM Tags

Awesome, I thought it would require some JavaScript - thanks!

Josh_Hill13
Level 10 - Champion Alumni

Re: Question on UTM Tags

There are threads on this with more detail if you do a search.

Grégoire_Miche2
Level 10

Re: Question on UTM Tags

Hi Malik,

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:

http://www.inficiences.com/sites/all/themes/inficiences/scripts/js.cookie.js

http://www.inficiences.com/sites/all/themes/inficiences/scripts/utmcookies.js

-Greg