in src/client/src/analytics_client/opt_in_config.ts [26:35]
public isEventTypeOptedIn(eventType: EventType): boolean {
if (!this.isOptedIn()) {
return false;
}
// In case of not provided a specific eventType consent, we assume opted-in
const isEventTypeOptedIn =
(this.optInConfig.event_types && this.optInConfig.event_types[eventType]?.enabled) ?? true;
return isEventTypeOptedIn;
}