Skip to content

AnalyticsProviderOptions

Configuration for createAnalyticsProvider.

optional filter?: string[]

When provided, only events whose type matches one of these strings are forwarded. All others are silently dropped.

['placement_interaction', 'placement_dismissed']

handler: AnalyticsEventHandler

Callback that pushes one event to the analytics platform. Called once per SDK event after optional transformation.


optional name?: string

Human-readable consumer name shown in diagnostics.

'analytics'

optional transform?: AnalyticsEventTransformer

Optional transform applied before the handler. Use this to rename events, enrich properties, or drop events you don’t care about.

Return null to suppress the event.