SnoopAnalyticsConfig

DSL for configuring a SnoopAnalytics logger — filtering, redaction, annotation and grouping.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Attach semantic badges (ecommerce, conversion, ...) shown on the event, à la Analytics Debugger.

Link copied to clipboard
fun filter(predicate: (AnalyticsEvent) -> Boolean)

Keep only events for which every filter returns true.

Link copied to clipboard
fun groupBy(event: String?, labelProperty: String? = null)

Which event opens a new collapsible group in the viewers' timeline, and which of its properties labels that group. Defaults to Firebase's manual-screen_view convention, so grouping works without calling this; pass a null event to turn it off. When labelProperty is null, or the event doesn't carry it, the group takes the event's own name.

Link copied to clipboard
fun sanitizeProperty(predicate: (String) -> Boolean)

Redact matching property values with a visible placeholder. Matches on the property key.