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

Content tracking doesn't track interaction correctly when using multiple trackers but track as outlink #12227

Closed
tsteur opened this issue Oct 27, 2017 · 7 comments · Fixed by #15406
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@tsteur
Copy link
Member

tsteur commented Oct 27, 2017

Content tracking does currently replace the link in the a.href when clicking on it (when the link is supposed to be tracked as an interaction). This means we will first load eg piwik.php?redirect_url=... which then goes to the actual redirect_url. This redirect will track the interaction happened.

However, when there are 2 trackers, the first tracker will replace the actual target URL with piwik.php?redirect_url=... and the second tracker will track the link like this as an outlink:

image

Ideally, these redirect_urls can be disabled optionally see #6265, and ideally, when using multiple trackers, we disable them automatically.

The result is for example 0 interactions in the second Piwik, and the interactions are shown in the first piwik.

@tsteur tsteur added the Bug For errors / faults / flaws / inconsistencies etc. label Oct 27, 2017
@jzuleger
Copy link

I am running into the same problems. But this only happens when previously hidden elements are shown. Only the last element of the set of elements which is shown never gets an impression or an interaction.

The other elements get a replacement of the url with the piwik redirect url. The last one does not.

@tsteur did you find a solution?

@tsteur
Copy link
Member Author

tsteur commented Jan 15, 2019

Not yet, we should definitely remove the piwik.php redirect and instead track the interaction as a regular tracking request. This will also make the links faster and in general the feature more usable. @mattab this might be even somewhat quick to do and feeling bad for this piwik.php redirect for a long time. Might be something for 3.10 or 3.11

@mattab
Copy link
Member

mattab commented Jan 24, 2019

Would you completely remove the feature you mean from the Tracker (which could be useful for other use cases like #6180 and tracking Ads clicks), or more simply "make content interaction tracking send a beacon instead of forcing people through the redirect" (which sounds very good)?

@tsteur
Copy link
Member Author

tsteur commented Jan 24, 2019

"make content interaction tracking send a beacon instead of forcing people through the redirect"

Yes we would send regular tracking request which falls back to beacon automatically anyway. It'll be still faster than any redirect through Matomo ;)

@mattab mattab added this to the 3.10.0 milestone Jan 28, 2019
@mattab
Copy link
Member

mattab commented Jan 28, 2019

this might be even somewhat quick to do and feeling bad for this piwik.php redirect for a long time. Might be something for 3.10 or 3.11

definitely 👍 Ideally we would not redirect any call through Matomo as it's too slow & risky. added to 3.10.0 but we could move it back to 3.11.0 later

see also the issue closed as duplicate #7782

@monkey-ldb
Copy link

monkey-ldb commented Sep 2, 2019

is this fixed now? the original ticket is from 2015.

I have the same issue atm, where a link was changed to the https://matomo_root/piwik.php/?redirectUrl=...
but onclick the user will not get redirected. The link is hidden in a tab control.

can this be prevented somehow?

thanks

@tsteur
Copy link
Member Author

tsteur commented Sep 2, 2019

We will fix this as part of Matomo 4 at the latest as part of #6265

@mattab mattab added this to the 4.0.0 milestone Feb 10, 2020
@mattab mattab changed the title Content tracking doesn't track interaction correctly when using multiple trackers but outlink Content tracking doesn't track interaction correctly when using multiple trackers but track as outlink Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants