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

Customise the base/domain of the automatically generated URLs tracked #296

Open mattab opened 3 years ago

mattab commented 3 years ago

we got this question today:

We want to change the base/domain of the automatically generated URL passed to the Matomo Tracking Server. Is there a way to change the contentBase as with the iOS SDK described in the following link? https://github.com/matomo-org/matomo-sdk-ios#automatic-url-generation

i suppose this is a feature request in the SDK maybe?

d4rken commented 3 years ago

Unless I miss understood the feature, that's already possible:

https://github.com/matomo-org/matomo-sdk-android/blob/master/tracker/src/main/java/org/matomo/sdk/TrackerBuilder.java#L61

mattab commented 3 years ago

Thanks @d4rken I let them know :+1:

btw maybe it'd be possible to document it in https://github.com/matomo-org/matomo-sdk-android/wiki/Getting-started or in another page?