Floating-Dartists / matomo-tracker

A fully cross-platform wrap of the Matomo tracking client for Flutter, using the Matomo API.
https://pub.dev/packages/matomo_tracker
MIT License
26 stars 28 forks source link

Page URLs get encoded #147

Closed ken717w closed 6 months ago

ken717w commented 7 months ago

Describe the bug We have a website and a Flutter app using this library running, both of them connected to the same Matomo instance. Our URLs could contain Chinese character, e.g. https://www.example.com/主頁.

In web traffics it works perfectly, while in the app traffic we collected via this library the URL becomes https://www.example.com/%E4%B8%BB%E9%A0%81. This way we're not able to include the record in our report which using segmentation pageUrl=@主頁.

TesteurManiak commented 7 months ago

It's because Dart Uri class will automatically encode non-ASCII characters, and we are using Uri to parse and encode query parameters. The only solution that I see would be to only manipulate the URL using strings but this is some heavy work to do and might cause regressions.

github-actions[bot] commented 6 months ago

This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 6 months ago

This issue was closed because it has been stalled for 5 days with no activity.