matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.6k stars 2.62k forks source link

The target link can always not be redirect successfuly using content-tracking #7782

Closed SophiaJOYME closed 5 years ago

SophiaJOYME commented 9 years ago

Since I use piwik cotent-tracking, the href=/anylink will be replaced with a link to piwik.php of Piwik installation which will in turn redirect the user to the actual target to actually track the interaction. Actually, we cannot open the target link now, the redirection costs lot of time, and the link cannot be opend mostly. Any solution for that? Thanks!

SophiaJOYME commented 9 years ago

If every tracked link would be redirected, how can we visit our website quickly? http://developer.piwik.org/guides/content-tracking

hazrina commented 9 years ago

test1

SophiaJOYME commented 9 years ago

http://hhwqh.joyme.com/96703.shtml, the tracking now be added all second level pages first navigation except index page.

SophiaJOYME commented 9 years ago

nav

mattab commented 9 years ago

Hi @tsteur do you know if it is possible to disable the piwik.php redirection, or would it be a feature request to be able to do Content Tracking without the piwik.php redirect? Couldn't find the info in http://developer.piwik.org/guides/content-tracking in a quick glance

tsteur commented 9 years ago

It's not possible to do it (yet). I'd prefer to completely remove piwik.php redirect unless we also that setting (that needs to be implemented) for outlinks. As we track context menu clicks and middle clicks etc as "clicked" we could do same here for content interactions and remove piwik.php redirect

mattab commented 9 years ago

I'd prefer to completely remove piwik.php redirect

I also like the idea of removing the piwik.php redirect completely, and use the same technique as for download/outlink tracking which is to send http request + wait 500ms (configurable) before redirecting to actual target. How much effort would it be do you think?

tsteur commented 9 years ago

I don't remember the code too much but it shouldn't be too much work as everything is already there re Outlinks/Downloads. There's also to do: Adjusting tests, removing redirect feature in piwik.php, a lot of testing. Maybe 3-7 hours?

mattab commented 5 years ago

Closing as duplicate of https://github.com/matomo-org/matomo/issues/12227 where we will remove the piwik.php redirect feature on content tracking (and use send beacon instead).