Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

516 B
Raw Blame
import { AnyPropertyFilter, PropertyFilterType } from '~/types'

export const SCREEN_NAME_PROPERTY = '$screen_name'

export function isScreenNameFilter(p: AnyPropertyFilter): boolean {
    return 'key' in p && p.key === SCREEN_NAME_PROPERTY && p.type === PropertyFilterType.Event
}

export type ScreenNameMatching = 'exact' | 'icontains' | 'regex'

export const SCREEN_NAME_MATCHING_LABEL: Record<ScreenNameMatching, string> = {
    exact: 'matches exactly',
    regex: 'matches regex',
    icontains: 'contains',
}