Login page redirection causes Google Analytics parameters to get lost

Emre Toptancı _OBSS_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
April 17, 2018

Background:

We are trying to report on access to our Jira server via Google Analytics. We added the analytics JavaScripts to announcement banner and reporting works fine.

We also want to get reports about the sources people navigate to our Jira. In order to do that we used the URL builder below to build different urls for different links in different sources. Google Analytics uses the parameters in the url to learn about the source of the link and associates the user session with the source. When the user navigates to other pages in Jira, the parameters in the link are no longer present but since the user session was associated with the source with the first request, all subsequent requests are also associated with the source in GA reports.

https://ga-dev-tools.appspot.com/campaign-url-builder/

So far ... so good.

The problem is:

When the user navigates to Jira using one of our links, the user is most likely redirected to the login page and the parameters are lost in the returnurl. Since the actual page the user followed the link to is never rendered before redirection, GA scripts do not run and source parameters are not given to GA. Naturally GA can't know about the source and considers this session as a "direct access".

Is there a way to preserve the parameters when the user is redirected to login page?

 

 

0 answers

Suggest an answer

Log in or Sign up to answer