Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculation All Websites dashboard wrong #5320

Closed
anonymous-matomo-user opened this issue Jun 9, 2014 · 3 comments
Closed

Calculation All Websites dashboard wrong #5320

anonymous-matomo-user opened this issue Jun 9, 2014 · 3 comments
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@anonymous-matomo-user
Copy link

After upgrading Piwik the calculation for all dashboards is wrong see attached file, i have seen this after upgrading from piwik.

Actually you can see this in the demo.piwik.org

http://demo.piwik.org/index.php?module=MultiSites&action=index&idSite=7&period=day&date=yesterday

The total calculation of Pageviews is wrong

you can also see my post in the forum:

http://forum.piwik.org/read.php?2,115242,116586

Thank you

@tsteur
Copy link
Member

tsteur commented Jun 20, 2014

FYI: The number of actions is currently displayed there and not the number of pageviews see https://github.com/piwik/piwik/blob/master/plugins/MultiSites/angularjs/dashboard/dashboard-model.js#L134.

The API does not return the number of total pageviews as it cannot resolve columnRawId "12" to "nb_pageviews". The column is resolved to "nb_hits" see here: https://github.com/piwik/piwik/blob/master/core/Metrics.php#L103

We cannot add such a mapping for nb_pageviews as "12" is already used by "nb_hits" and would overwrite this. We could sum the values alternatively in JS which is not so nice. But there is probably no way around unless we add a hack to core which I would definitely avoid.

@tsteur
Copy link
Member

tsteur commented Jun 20, 2014

In 69f8deb: fixes #5320 calculate total value of nb_pageviews

@mattab
Copy link
Member

mattab commented Jun 20, 2014

alternative solution could have been to change column name to "Actions" but +1 for "Pageviews" by default.

What would be so nice is the ability to configure displayed columns, ie. implement metric picker for All Websites dashboard... see #2390 All websites dashboard: let user customise columns and add new ones

@anonymous-matomo-user anonymous-matomo-user added this to the 2.4.0 - Piwik 2.4.0 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

3 participants