You can overwrite the okHttpClient used in the SDK, to set up certificates pinning, interceptors, etc.

Example

class SampleApplication : Application() {
 
     override fun onCreate() {
         super .onCreate()
        
         val okHttpClient = OkHttpClient.Builder()
             .readTimeout( 15 , TimeUnit.SECONDS)
             .addNetworkInterceptor(StethoInterceptor())
             .build()
 
         val webtrekkConfigurations =
             WebtrekkConfiguration.Builder(listOf( "111111111111111" ), "https://your-trackdomain.com" )
                 .okHttpClient(okHttpClient = okHttpClient)
                 .build()
 
         Webtrekk.getInstance().init( this , webtrekkConfigurations)
     }
}
CODE
public class SampleApplication extends Application {
 
     @Override
     public void onCreate(){
         super .onCreate();
 
         OkHttpClient okHttpClient = new OkHttpClient.Builder()
             .readTimeout( 15 , TimeUnit.SECONDS)
             .addNetworkInterceptor(StethoInterceptor())
             .build();
 
         List<String> trackIds = new ArrayList<>();
         trackIds.add( "111111111111111" );
 
         WebtrekkConfiguration webtrekkConfiguration = new WebtrekkConfiguration.Builder(tracki├Źds, "https://your-trackdomain.com" )
             .setOkHttpClient(okHttpClient)
             .build();
 
         Webtrekk.getInstance().init( this , webtrekkConfiguration);
     }
}
JAVA