Open adaqus opened 8 years ago
I think this is kind of expected behaviour currently which doesn't mean that it is good or correct. ping @mattab
@mattab Can you let us know, if this behavior has to be changed in the future or will be the same in upcoming Piwik versions and no changes are planned? Many thanks in advance.
It's not correct to sum the number of unique pageviews and still call it a number of unique pageviews... so ideally we would change it in the future :+1:
@mattab We are ready to work on this topic and prepare PR, but first we have to know what actually we are going to do. Change they way how it's being calculated ? Do not display any value in that column for expandable nodes, or change the column label?
@mattab Can you please let me know what is your expected way of solving the issue? Change they way how it's being calculated ? Do not display any value in that column for expandable nodes, or change the column label?
We are ready to prepare adequate PR, but we need to know what changes will you approve and merge.
Hi @tomasztomik - It would be useful to solve this problem :+1: Here is how it could be solved:
sum_nb_visits_in_subtable
Actions.get*
API reports which have a hierarchy and where nb_visits
is processed.Unique pageviews
, we display the value -
-
value, a tooltip says The sum of unique pageviews within this action hierarchy is $sum_nb_visits_in_subtable
I think this would solve the issue nicely. Maybe you have some feedback or suggestion?
@mattab I got sent here by a support rep. Just adding my 2 cents:
If I look at the aggregated row /category1/, I would like to see the number of visits that hit at least one of the subpages within /category1/. The sum of "Unique pageviews" for all subpages isn't a useful number.
This is a db query used when creating Actions/Pages report:
In this query for each action type (group by log_action.idaction) number of unique visits is counted (count(DISTINCT log_link_visit_action.idvisit) AS
2
). So when we have a visit with pageviews on /category1/sub1 and /category1/sub2, for each pagieview we have one unique visit (unique pageview). Category1 also has 1 unique visit, but it will be shown it has 2.Values underlined (and each expandable element) are sums of unique pageviews from subelements, so some visits are counted more than once.
This will probably also apply to other reports from Actions group.