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.93k stars 2.66k forks source link

[Bug] Downloads not correctly reported #22801

Open pef-tl opened 18 hours ago

pef-tl commented 18 hours ago

What happened?

Hello, I want to register some file downloads in Matomo in dedicated "Downloads" report. But when I use the javascript method 'tracklink' with 'download' parameter, I can only see some sort of download event in user activity : image But nothing in Downloads report : image

What should happen?

Display downloads reports

How can this be reproduced?

I use javacript _paq.push('trackLink','http://...','download') to send this request : https://xxx.matomo.cloud/matomo.php?download=http%3A%2F%2Flocalhost%3A9000%2Fmtm_dl_files%2FCOC_ORIG_RRT105698-RRT10-190243-007.pdf&idsite=2&rec=1&r=969715&h=14&m=3&s=53&url=http%3A%2F%2Flocalhost%2Ftool-park%2Fmytools%2F538847%2Farchive&urlref=http%3A%2F%2Flocalhost%3A9000%2Fapps%2Fapp%2Findex.html%23%2Ftool-park%2Fmytools%2F538847%2Farchive&uid=rolls_test&_id=f37b211d40125e34&_idn=0&send_image=0&_rcn=QRCodes&_refts=1732624389&dimension1=25084&pf_net=30&pf_srv=3&pf_tfr=0&pf_dm1=47&pf_dm2=140&pf_onl=85&pv_id=oxN9c8&uadata=%7B%7D&pdf=1&qt=0&realp=0&wma=0&fla=0&java=0&ag=0&cookie=1&res=1920x1080

I tried also to append an anchor in the DOM with 'matomo_download' class : same request is sent, but still no report

Matomo version

hosted matomo.cloud

PHP version

No response

Server operating system

No response

What browsers are you seeing the problem on?

Firefox

Computer operating system

No response

Relevant log output

No response

Validations

sgiehl commented 17 hours ago

Hey @pef-tl,

thanks for raising this issue. Did some time pass by between the download has been tracked and you were looking at the report? Processing the reports in cloud is not instant, so it might take a couple of hours till data shown in the live reports end up in all other reports.

pef-tl commented 15 hours ago

Yes, still no data in report : image