Skip to content

trackkit / index / AnalyticsMode

Type Alias: AnalyticsMode

AnalyticsMode = "singleton" | "factory"

Defined in: types.ts:38

How the analytics facade is instantiated.

  • 'singleton' – default mode; Trackkit manages a shared global instance.
  • 'factory' – you construct and own individual instances manually.

This is currently mostly informational in the types and docs; the public API is centred around the singleton helper.

Released under the MIT License.