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
| Parameter | Type | Description |
|---|---|---|
customUrl | string | Base 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.