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

[Bug] Using 'and' in Segment not working #22652

Open enual opened 1 month ago

enual commented 1 month ago

What happened?

Matomo user (On-Premise) created this segment but no result showing up: image

I tried to replicate this issue by creating 2 events and getting same issue: image image

This issue is also applicable to Matomo cloud

What should happen?

It should provide result for visitors who trigger 2 events.

How can this be reproduced?

Go to Matomo Dashboard > Segment > create segment (please see screenshot above as an example)

Matomo version

5.1.2

PHP version

8.1

Server operating system

Apache

What browsers are you seeing the problem on?

Chrome

Computer operating system

Windows

Relevant log output

No response

Validations

randy-innocraft commented 1 month ago

Hi @enual. Thank you for creating the issue and bringing this to our attention, that's very appreciated. We have reviewed and triaged the problem internally, and we have confirmed it is an issue. Our team will prioritise this, and we will update you on the progress here when we have an update to share. If you have any further information or questions, please feel free to add them here.

sgiehl commented 2 weeks ago

This is a limitation of our current segment system. Whatever segment you define, Matomo will try to find exact visit/action, that matches the whole definition. And logically there can't be one action that matches two event action names. Therefor the result is empty. Logically it would be the same as segmenting for country = NZ and country = NL.