Retrieve Active Global Configuration

Prev Next

getCurrentConfiguration() returns the SDK's active runtime state as an ActiveConfig object. This is mainly useful for debugging, support checks, and verifying which settings are currently applied.

Important

Call this only after the SDK has been initialized.

Method

val activeConfig = Webtrekk.getInstance().getCurrentConfiguration()

What the SDK returns

The returned ActiveConfig object includes the current runtime values for:

  • track IDs and track domain

  • Ever ID and Ever ID generation mode

  • user agent and user matching ID

  • anonymous tracking, opt-out state, and temporary session ID

  • request interval, batch support, and batch size

  • auto-tracking state for activities and fragments

  • logging, exception tracking, migration, and version-in-request flags

Kotlin example

val activeConfig = Webtrekk.getInstance().getCurrentConfiguration()
println(activeConfig)

When to use it

  • Verify the currently active runtime configuration during implementation.

  • Check whether runtime changes such as opt-out, anonymous tracking, or changed track IDs are already active.

  • Inspect values before debugging delivery or privacy-related issues.

Related pages: Configure Global Tracking, Get the User Ever ID.