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

Number of Page views different in table view (Pages) and transitions popup #9024

Open HTWGkonstanz opened 9 years ago

HTWGkonstanz commented 9 years ago

Pageviews totally differ from the "standard" table view to the "transitions" view regardless which date range is picked or wether you look at pages or page titles.

Sometime the number in the "transisionts" view is the higher one, most of the time the number in den "table" view is the higher one, some numbers are the same. Some numbers only differ by 1-2, some numbers differ by 1.000 - it doesn´t make any sense.

I thought, they should be the same...what aspect am I missing here?

r669dvhufa

tmvck9y4mc

mattab commented 8 years ago

Hi @HTWGkonstanz

Thanks for the report, this is surprising indeed: it should be the same, because both views should use the same API and data source.

Can you reproduce this issue on https://demo.piwik.org ? please paste the links and we will investigate

HTWGkonstanz commented 8 years ago

Yes, I can replicate the bug – but the differences between the numbers are much smaller (differences of 10 views etc.)

For example: Pages In year 2015 the page „index“ has 36.203 page views. If you open “Transitions” for this pages, it shows 36.185 page views.

https://demo.piwik.org/index.php?module=CoreHome https://demo.piwik.org/index.php?module=CoreHome&action=index&idSite=7&period=year&date=2015-11-26#?module=Actions&action=menuGetPageUrls&idSite=7&period=year&date=2015-11-26 &action=index&idSite=7&period=year&date=2015-11-26#?module=Actions&action=menuGetPageUrls&idSite=7&period=year&date=2015-11-26

On our website we had much more “extreme” differences, where one number was only 50% of the other number.

sgiehl commented 8 years ago

Guess we need to have a closer look at the way the transitions are calculating their data. It seems to be calculated on the given URL. Which might not always be correct.

Btw. it is also possible to display data for invalid URLs. I guess there shouldn't be data at all, but instead some strange data is displayed.... See https://demo.piwik.org/index.php?module=CoreHome&action=index&idSite=7&period=year&date=2015-11-26#?module=Actions&action=menuGetPageUrls&idSite=7&period=year&date=2015-11-26&popover=RowAction$3ATransitions$3Aurl$3A$2FinvalidUr12345

mgonera commented 7 years ago

Is anyone caring about this in 2017? :) I confirmed that current 3.0 demo on piwik.org also has this issue. It's enough to run transitions on monthly data "index" page.

sebastianpiskorski commented 7 years ago

I've checked this one on large dataset and discrepancies still occurs.

After short investigation, I've some suspicions that it might be related to how unique visitors are calculated.

Report I've been investigating: "Pages Following a Site Search"

rogogon commented 7 years ago

hi ;) I want to confirm that this bug is still occurring. Are you planning to fix it?

sgiehl commented 7 years ago

@rogogon It's currently not planned to work on this issue. A Pull Request would be very welcome. Or if you would like to sponsor this fix/change feel free to contact the Piwik team. Otherwise it might take some time.