Skip to content

Commit

Permalink
Fix country code case
Browse files Browse the repository at this point in the history
Convert to lowercase since upper case codes lead to missing flag symbols in the backend.
  • Loading branch information
kuhnroyal committed Jun 18, 2024
1 parent 362721c commit 06353cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/matomo_action.dart
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class MatomoAction {
final ua = tracker.userAgent;
final dims = dimensions;
final locale = PlatformDispatcher.instance.locale;
final country = locale.countryCode;
final country = locale.countryCode?.toLowerCase();
final nV = newVisit;
final p = ping;
final cont = content;
Expand Down

0 comments on commit 06353cb

Please sign in to comment.