/
githubmirror
/
Front-End-Checklist
Обзор
Документация
Войти
/
githubmirror
/
Front-End-Checklist
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
apps/web/lib/telemetry-interactions.ts
25 строк
741 B
David Dias
chore: update tracking and account flows
30 май 2026, 06:09
30 май 2026, 06:09
c59d1d0
Код
Авторство
О чём код?
'use client' import { type ClientTelemetryProperties, trackClientEvent } from './telemetry-client' import type { TelemetryEventName } from './telemetry-events' export { TELEMETRY_EVENTS } from './telemetry-events' export interface InteractionTelemetryProperties extends ClientTelemetryProperties { location: string label: string target?: string } /** * Track a user-initiated client interaction with a consistent property contract. * * @param event - Stable telemetry event name. * @param properties - Interaction context such as location, label, target, and entity IDs. */ export function trackInteraction( event: TelemetryEventName, properties: InteractionTelemetryProperties ) { trackClientEvent(event, properties) }