diff options
| author | rxliuli <rxliuli@gmail.com> | 2025-11-04 05:03:50 +0800 |
|---|---|---|
| committer | rxliuli <rxliuli@gmail.com> | 2025-11-04 05:03:50 +0800 |
| commit | bce557cc2dc767628bed6aac87301a1be7c5431b (patch) | |
| tree | b51a051228d01fe3306cd7626d4a96768aadb944 /shared/metrics-8/src/constants.ts | |
init commit
Diffstat (limited to 'shared/metrics-8/src/constants.ts')
| -rw-r--r-- | shared/metrics-8/src/constants.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/shared/metrics-8/src/constants.ts b/shared/metrics-8/src/constants.ts new file mode 100644 index 0000000..6eff451 --- /dev/null +++ b/shared/metrics-8/src/constants.ts @@ -0,0 +1,19 @@ +/** + * A list of event types we use across all onyx apps for metrics. + */ +export const METRICS_EVENT_TYPES = [ + // The following types come from the jet enum `MetricsEventType` + // https://github.pie.apple.com/app-store/jet-js/blob/505144151e875c1bcbacd898216127fbc14c1562/packages/environment/src/types/metrics.ts#L198-L205 + // and the events could be handled by MetricsKit + // https://github.pie.apple.com/amp-ae/mt-metricskit/tree/dev/packages/processors/mt-metricskit-processor-clickstream/src/metrics/event_handlers + 'account', // For GDPR + 'click', + 'dialog', + 'enter', + 'exit', + 'impressions', + 'media', + 'page', + 'pageRender', + 'search', +] as const; |
