poitch / dart-matomo

A Dart Matomo Client
MIT License
20 stars 39 forks source link

can not use await with tracking functions #30

Open mkassir95 opened 3 years ago

mkassir95 commented 3 years ago

I am not able to use await with trackScreen function in order to waitfor the function to execute before executing another function

mootw commented 3 years ago

The request is not sent immediately when an event is recorded. They are queued and then sent. You can change how often this happens in the initialize method. I believe the default is 10 seconds.