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

Improve in-app documentation of linear attribution for conversions #21585

Open heurteph-ei opened 9 months ago

heurteph-ei commented 9 months ago

What happened?

Source: https://forum.matomo.org/t/meaning-of-goals-by-pages-report/52485

When going to Goal > Any goal selected or the overview > Goals by Pages > Page URLs, the number of conversions is not an integer, whereas it should display the number of conversions per page... Also, the total number of conversion cannot be reached versus the number of conversion by channel...

What should happen?

The number of conversions is not an integer, whereas it should display the number of conversions per page... The sum of conversions by page should be equal to the sum of conversions by channel

How can this be reproduced?

https://demo.matomo.cloud/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday#?idSite=1&period=day&date=yesterday&category=Goals_Goals&subcategory=4 image Whereas a total of 17 conversions should be displayed: image

Matomo major version

Matomo 4

Matomo minor or patch Version

demo.matomo.cloud

PHP version

demo.matomo.cloud

Server operating system

demo.matomo.cloud

What browsers are you seeing the problem on?

No response

Computer operating system

Any

Relevant log output

No response

Validations

MatomoForumNotifications commented 9 months ago

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/meaning-of-goals-by-pages-report/52485/2

Stan-vw commented 9 months ago

This is intentional; linear attribution is being used to proportionally allocate the conversion to the pages involved. So if a visitor views page a, b, a and c before converting a goal then a = 0.50, b = 0.25, c = 0.25. For more detail check the specification in the original ticket.

Note that the numbers in your first screenshot do add up to 17.

I did have a look at this section of the report, and couldn't find this explanation near the table. Hence it might be worthwhile that we add this explanation to the information element. Also I'm considering if all numbers should have the same about of decimals (e.g. 2.40 instead of 2.4) so it's easier to compare them or add them up.

MatomoForumNotifications commented 9 months ago

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/goals-by-pages-on-matomo/50163/7

bx80 commented 8 months ago

I've renamed this issue to improve the in-app documentation so it's clearer why the conversions are shown as non-integers and will add it to the prioritization queue.