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.83k stars 2.64k forks source link

[Bug] Transitions reports show no data for some page titles #21619

Open 9joshua opened 10 months ago

9joshua commented 10 months ago

What happened?

The transitions report for some page titles is empty. I believe this might be due to special characters in the page title... Screenshot from 2023-12-01 10-12-34 Screenshot from 2023-12-01 10-12-57 Page title in the example above: Lærer: På én og samme tid er jeg klasselærer, pædagog, tolk, socialrådgiver, sundhedsplejerske, sygeplejerske, læge og sosuassistent

When searching the Page Title report it is evident that a combination of characters causes a failure to match the page tile with the search string (not one particular character)... searchPageTitles Perhaps the same issue is preventing the background API call to Transitions.getTransitionsForAction from working as well.

What should happen?

The transitions report should work regardless of character combinaitons in a page title.

How can this be reproduced?

This occurs on a Cloud instance but I am not able to reproduce. See internal ticket for details.

Matomo major version

Matomo 5

Matomo minor or patch Version

5.0.0-rc8

PHP version

8.2

Server operating system

NA

What browsers are you seeing the problem on?

No response

Computer operating system

NA

Relevant log output

No response

Validations

mneudert commented 10 months ago

After investigating the database entry for the page, two issues were identified:

Keeping trailing space should be fixable, this could also affect other areas in the application where text values are used.

utrenkner commented 4 months ago

We just encountered a related problem: In our case, the page title includes a plus sign (+), which is filtered away in the list of page titles. However that breaks the opening of the transitions of this page, which seems to search on the full title (with plus sign).

In Firefox dev tools, I edited the list of page titles (copy-pasted the full title), and then I was able to open the transitions.

All other details can be opened just fine: segmented visits log, performance report and row evolution. It really is only the transitions that is broken because of the plus sign.