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

HTTP 400 Bad Request on the example #8

Closed tilonet closed 2 years ago

tilonet commented 2 years ago

I have running the Matomo Backend via Docker https://github.com/matomo-org/docker the nginx example, Matomo Version 4.9.1

If I connect your example App with this Backend I get a HTTP 400

exemple call: http://localhost:8080/matomo.php?idsite=1&rec=1&action_name=Created+HomePage&url=https%3A%2F%2Fcom.example.example&_id=cf0cd7af39194e79&rand=307316931&apiv=1&_idvc=12&_viewts=1653736918&_idts=1653721097&res=1440x3064&h=11&m=21&s=58&cookie=1&ua=Android+12+%28SDK+32%29%2C+Google+Pixel+6+Pro&lang=de_DE&country=DE

I found out that the country=DE cause the Problem without this country it works fine

M123-dev commented 2 years ago

I just noticed it as well and sorry this goes on me @tilonet, I've proposed a fix in #10