Skip to main content
Version: 2.6.0

Custom URL

By default, the SDK sends requests to Adtrace endpoints. Use customUrl to redirect all SDK traffic to your own endpoint.

Set customUrl in Adtrace.initSdk before the first request is sent.

Parameter​

ParameterTypeDescription
customUrlstringBase URL for SDK network requests instead of the default Adtrace endpoints.

Example​

Adtrace.initSdk({
appToken: '{YourAppToken}',
environment: 'production',
customUrl: 'https://your-proxy.example.com/adtrace',
});
Important

Use a custom URL only when your Adtrace setup requires it. Incorrect endpoints will prevent installs, sessions, and events from reaching Adtrace.