Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken referrer issue #12932

Closed
Vinutab opened this issue May 18, 2018 · 1 comment
Closed

Broken referrer issue #12932

Vinutab opened this issue May 18, 2018 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@Vinutab
Copy link

Vinutab commented May 18, 2018

When we open the site(site A) and click a link leading to another site B.
Site B will notice that the visitor has no active single-sign-on session and redirect the visitor to the login page, which will redirect you back to site B.
The referrer is now the login link of the Site B instead of the original site referring (site A).

Is this the way it works or do we need to make any changes? Can you please help.
Can you please advise if we can use the below code to resolve the issue?
paq.push(['setConversionAttributionFirstReferrer', true]);

@Findus23
Copy link
Member

Matomo uses the referrer from document.referrer. If the browser looses the original referrer due to a redirect there is nothing Matomo can do about this.

If you have some other way to know the previous URL (e.g. some URL parameter), you can overwrite the referrerURL in the tracking code.

_paq.push(['setReferrerUrl', previousPageUrl]);

@Findus23 Findus23 added the answered For when a question was asked and we referred to forum or answered it. label May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants