(params: {
event: AnalyticsEvent
distinctId?: string
properties?: AnalyticsProperties
})
| 127 | } |
| 128 | |
| 129 | function getSamplingKey(params: { |
| 130 | event: AnalyticsEvent |
| 131 | distinctId?: string |
| 132 | properties?: AnalyticsProperties |
| 133 | }): string { |
| 134 | return ( |
| 135 | params.distinctId ?? |
| 136 | getPropertyUserId(params.properties) ?? |
| 137 | getStringProperty(params.properties, 'clientSessionId') ?? |
| 138 | getStringProperty(params.properties, 'userInputId') ?? |
| 139 | params.event |
| 140 | ) |
| 141 | } |
| 142 | |
| 143 | export function shouldTrackAnalyticsEvent(params: { |
| 144 | event: AnalyticsEvent |
no test coverage detected