matomo-org / matomo-sdk-android

SDK for Android to measure your apps with Matomo. Works on Android phones, tablets, Fire TV sticks, and more!
BSD 3-Clause "New" or "Revised" License
388 stars 162 forks source link

Don't track meta-data #489

Open CarlosRoig opened 4 months ago

CarlosRoig commented 4 months ago

Hello!

We use Matomo in our Android/iOS project.

We need to be able to disable all the cookies tracked from users. We want to be able to disable the traking of the IP, geolocation, and all that stuff and only leave the custom tracking of actions and screens that we configured.

We saw in Matomo website that you can disable the cookies from the Admin page in the admin site of the dashboard. We did that, but we are still somehow tracking cookies from users.

Is there something that we have to configure in the Android/iOS App to stop tracking that?

Thanks!

CarlosRoig commented 4 months ago

BTW, when I'm talking about Cookies I mean like the IP, location, device and all those things that Matomo tracks by default. What we want to know is if we can disable all those tracking info and leave only the parameters that we specifically are trying to track, like an Action or a Visit. Thanks!

hannesa2 commented 4 months ago

Sorry, I at least can't help you, but maybe @d4rken knows more about it

d4rken commented 4 months ago

AFAIK, The Android SDK doesn't track IP or geolocation. The server takes the IP from the clients request and does geolocation on that. There are server-side settings to anonymize the ip addresses, not sure if it can be disabled completely.

The Android SDK gathers some details like user-agent and language. There is no direct way to disable that, but you can remove the data before sending it. Check getDefaultTrackMe in Tracker.java.