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

Page performance does not appear accurate compared to Pagespeed insights. #20800

Open jmumby opened 1 year ago

jmumby commented 1 year ago

When comparing pagespeed insights results with visits around the world the performance report shows much slower page load times than what is experienced.

Matomo report: image

Page insights image

Is there a way to troubleshoot why this might be?

michalkleiner commented 1 year ago

This can be influenced by several different factors.

Considering it is indeed comparing the same page and only one page, not a single page vs average across the site, one thing could be that the visitors' browsers/processing is slower and therefore the reported times are higher.

It could also be desktop vs mobile difference, are the same times experienced when measuring desktop? Are the page insights measured locally or over the Internet?

rr-it commented 1 year ago

This is related to https://github.com/matomo-org/matomo/issues/17847

Matomo collects data about classic performance indicators: network, server transfer, DOM processing, DOM completion, onload event

PageSpeed Insights collects special performance indicators only implemented by the Blink engine implemented in Chrome/Chromium based browsers

Important metrics to measure – see web.dev:

As a new feature Matomo might also collect these special performance indicators - related to https://github.com/matomo-org/matomo/issues/20726

rr-it commented 1 year ago

@jmumby If you are able to 'patch' your matomo instance, have a look at this PR https://github.com/matomo-org/matomo/pull/20718 Any feedback is very welcome on this!