donni106 / matomo-tracker-react-native

Stand alone library for using Matomo tracking in React Native and Expo projects.
MIT License
44 stars 15 forks source link

Requests filtered by Matomo based on User-Agent #25

Open VariabileAleatoria opened 2 months ago

VariabileAleatoria commented 2 months ago

Matomo dashboard filters requests that thinks are made by bot based on User-Agent. Requests made by this library has default User-Agent as header 'okhttp/4.9.2'. It would be needed an option to set a custom User-Agent or override the default one in the fetch request made by the library

donni106 commented 1 month ago

Hi @VariabileAleatoria, did you already check the code, where this change could be possible? We could investigate together to find the best approach. Do you have a link to the Matomo documentation about custom user agents?