How is commerce at UTM?

When does Google Anaytics record UTM parameters for a session?

  • I have traffic arriving from links that are properly tagged with UTM params, however the page they are trying to access is only accessible to logged-in users. When this happens, our system forces a sign-in page with these parameters ?next=[target path]?utm_source=[source]&utm_medium...etc. After the sign-in page, the user is directed to the intended page with the full URL including UTM tags, but it appears that GA is not recording them under the campaign/medium/source that they are tagged with. Does GA only record the UTM tags on the first page loaded in the session? If this is the case, it seems to not be seeing the UTM params because they are after a "?" instead of an "&" in the redirect page that is loaded.

  • Answer:

    In theory, anytime the user views a URL with UTM parameters, the Source, Medium and Campaign get 'updated'. I have just verified this on our website. As to your problem, we have a similar mechanism on our website (forward after login with parameters). I would really like to see your full URL of the page the user arrives at after logging in to give a decent answer. In any case, the problem may be that your first URL is incorrect. There can only be one ? in a URL (for the first parameter), every other parameter after that first one has to be preceded by a &. That's why the utm parameters will not be interpreted by Google Analytics. So instead of ?next=[target path]?utm_source=[source]&utm_medium...etc try ?next=[target path]&utm_source=[source]&utm_medium...etc In any case, you should not add the parameters a second time for the same session (you might start a new session that way, but I am not certain about this). If the domain of the login page is the same as the destination page, adding the utm parameters to the URL on the login page should do the job.

Lukas Oldenburg at Quora Visit the source

Was this solution helpful to you?

Other answers

If you have Google Analytics script on the sign-in page, the UTM parameters will be saved in a cookie and that visit will be attributed to them. But as Lucas pointed out, you do need to change the second "?" to "&". Maybe you really need to use UTM parameters the way you are using right now. However, I would recommend using UTM parameters for acquiring new users and not bringing existing users back to your app.

Puru Choudhary

li This is a nice video and includes a link to a link generater. I use it and have not have had any issues

Phil Eisaman

I think GA only passes the campaign parameters info on first page loaded.

Zin Ko Hlaing

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.