init commit
This commit is contained in:
19
shared/metrics-8/src/constants.ts
Normal file
19
shared/metrics-8/src/constants.ts
Normal file
@@ -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;
|
||||
Reference in New Issue
Block a user