@tsteur opened this Issue on February 11th 2022 Member

To reproduce visit a goal page and have a segment applied. For example https://demo.matomo.cloud/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday#?idSite=1&period=day&date=yesterday&segment=visitConvertedGoalId%3D%3D7&category=Goals_Goals&subcategory=4

Then click on the link for segmented visits log.

image

It makes a request like this where it only contains the segment for the currently viewed segment, but I would have expected that it also prepends the originally selected segment. Meaning I would have expected it combines visitConvertedGoalId%3D%3D7 and visitConvertedGoalId%3D%3D4 using AND. However, it only has visitConvertedGoalId%3D%3D4 in the request currently.

As a result, I can't actually view the visits that converted this goal using the applied segment and I get a much higher number of visits in the visits log than I should get. I thought we had an issue for this already, or fixed it in the past, but doesn't seem to be the case (couldn't find it).

Update: I'm actually thinking the segment might not work correctly when combined. Possible that we can't fix this easily as I think Matomo can't find visitors that converted two different goals in the visit (or performed two different actions in one visit) because I think Matomo can only find people based off one action. Refs https://github.com/matomo-org/matomo/issues/7533 .
In that case appending above segment would always show "no data" in the visits log possibly. Meaning until #7533 is fixed we would possibly need to hide the "segmented visits log" link when a segment is selected as it cannot show the right data.

Powered by GitHub Issue Mirror