diff --git a/module/Core/src/Matomo/MatomoVisitSender.php b/module/Core/src/Matomo/MatomoVisitSender.php index 9fc0176a..94f25e2f 100644 --- a/module/Core/src/Matomo/MatomoVisitSender.php +++ b/module/Core/src/Matomo/MatomoVisitSender.php @@ -60,7 +60,7 @@ readonly class MatomoVisitSender implements MatomoVisitSenderInterface if ($location !== null) { $tracker ->setCity($location->cityName) - ->setCountry($location->countryName) + ->setCountry(strtolower($location->countryCode)) ->setLatitude($location->latitude) ->setLongitude($location->longitude); }