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 outlink #12227

Open
tsteur opened this issue Oct 27, 2017 · 7 comments

Comments

@tsteur
Copy link
Member

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 label Oct 27, 2017

@jzuleger

This comment has been minimized.

Copy link

commented Jan 15, 2019

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

This comment has been minimized.

Copy link
Member Author

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

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Member Author

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

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Member Author

commented Sep 2, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.