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

[Bug] PagePerformance Graphs per-page are blank always on all pages on all sites (when drilling down) #21811

Closed BloodyIron closed 8 months ago

BloodyIron commented 8 months ago

What happened?

Parts of the PagePerformance aspect work seemingly rather well, like Dashboard Widgets. However when I try to get the PagePerformance Metrics and Graph for individual URLs (via the in-line pop-up link) they are 100% of the time blank. See screenshot:

image

What should happen?

I expect a graph generated per-URL that is relevant metrics to that URL when doing the in-line pop-up graphing.

How can this be reproduced?

Anywhere in Matomo hover over a specific URL for the relevant links to show visible (normally hidden) and click "Open page performance report" link.

Matomo version

4.16.0

PHP version

7.4.33

Server operating system

Ubuntu 22.04

What browsers are you seeing the problem on?

Not applicable (e.g. an API call etc.)

Computer operating system

Ubuntu 22.04

Relevant log output

I see zero log info on this topic, despite digging for it in documentation or even reports from other users. I cannot find any insights as to why this is failing anywhere.

Validations

sgiehl commented 8 months ago

@BloodyIron Are you maybe viewing the pages reports flattened? There is a known bug, that page performance report doesn't work correctly in this case. See https://github.com/matomo-org/matomo/issues/17807

BloodyIron commented 8 months ago

@sgiehl I read through the linked issue and don't see really how flattening is set/unset. I don't recall touching a setting, but I'm a fragile human, and I'll gladly check such a setting... but I don't know where that would be :) Where would I find it?

sgiehl commented 8 months ago

@BloodyIron Does the report show a hierarchical view, where you can extend subtables or is it flattened where each row show a full url?

BloodyIron commented 8 months ago

Um, the screenshot I already posted above doesn't answer that question? I am not yet following you on this, sorry.

sgiehl commented 8 months ago

Could you post a screenshot of the report you are opening the page performance overlay from?

BloodyIron commented 8 months ago

I can't without posting sensitive information, but I can describe an example that may be helpful.

So, on the dashboard, I have a widget "Entry Pages". And it shows the pages people enter the site at (which I suspect you already know lol). When I hover over one of the URLs in the list and click on "Open page performance report", this is one of the many cases where the graphs are blank (for all URLs in this list). I get the same experience generally for other lists of URLs in other sections of Matomo (like if I'm going into Behaviour -> Entry Pages/Exit Pages, etc)

Hope that helps! Also, thanks for your engagement here, really appreciated :)

michalkleiner commented 8 months ago

@sgiehl I tried in demo and it looks like the performance metrics are all zero there for all pages as well, the performance report doesn't show anything, regardless of whether the widget is using flattened or hierarchical data.

https://demo.matomo.cloud/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday#?period=week&date=2023-09-12&idSite=1&category=General_Actions&subcategory=PagePerformance_Performance

sgiehl commented 8 months ago

@michalkleiner We are not tracking any performance metrics on demo, so there isn't anything that could be shown.

sgiehl commented 8 months ago

@BloodyIron Does the pages report look like this: image

Or like this: image

michalkleiner commented 8 months ago

@michalkleiner We are not tracking any performance metrics on demo, so there isn't anything that could be shown.

Ah, ok, didn't realise it needed to be specifically enabled/added/configured. Apologies.

BloodyIron commented 8 months ago

@sgiehl for the "Entry Pages" widget on the Dashboard each line is the URL (below the FQDN of course), so the second picture, except that all of them are hyperlinks (your example has one that isn't hyperlinked, unsure if relevant).

So... does that help? :)

Also, thanks @michalkleiner for chiming in! Really do appreciate the help here :D

michalkleiner commented 8 months ago

@BloodyIron so you have the flattened report if each line is a URL. At the bottom of the report, there's a cog wheel where you can change the report to be hierarchical. Can you test if changing it to hierarchical and then seeing the performance metrics work? report settings report settings dropdown open

BloodyIron commented 8 months ago

@michalkleiner switching to hierarchical, I now get graphs on specific URLs, and it seems to be showing up for every one of them now. Any chance we can get this working for flat? I like flat a lot more, and it's really odd this breaks with flat.

michalkleiner commented 8 months ago

Ok, thanks for the confirmation, @BloodyIron.

We've fixed this for the flattened reports in https://github.com/matomo-org/matomo/pull/21786 and it will be released in Matomo 5.0.2 when that is released. You will need to upgrade to Matomo 5, too, as I don't think there will be a fix for this for Matomo 4.

michalkleiner commented 8 months ago

We can now mark this as duplicate of https://github.com/matomo-org/matomo/issues/17807.

BloodyIron commented 8 months ago

@michalkleiner a whole bunch of plugins aren't yet v5 compatible, which really is the only reason I haven't upgraded. Is the fix not feasible for the v4 codebase? I do want to go to v5, but the plugins not yet ready are important on my end, which is really my end of motivation on that topic.

Either way, yay! Thanks for your help and working through this! \o/ Oh and your help too @sgiehl !

Stan-vw commented 8 months ago

@BloodyIron can you let me know which plugins aren't matomo 5 compatible yet that prevent you from upgrading? We upgraded all Matomo plugins, and the most popular community plugins have new versions too. If there's still some outstanding that we missed to contact, perhaps we can give it another try with a kind message :)

BloodyIron commented 8 months ago

Bandwidth BotTracker CustomVariables DarkTheme DeviceDetectorCache IPReports LogViewer Provider ShortcodeTracker

snake14 commented 8 months ago

@BloodyIron I'm curious why you say that those plugins are preventing you from upgrading? I just checked the marketplace and all of them show as being compatible. Although, ShortcodeTracker wasn't until about 2 days ago.

BloodyIron commented 8 months ago

@snake14 because the upgrade interface in Matomoto says they are incompatible...

image

And there are no updates visible to make them compatible...

Stan-vw commented 8 months ago

Conversation around that message is continuining in https://github.com/matomo-org/matomo/issues/21842