mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-23 16:48:12 +00:00
27 lines
865 B
TypeScript
27 lines
865 B
TypeScript
![]() |
import { IBaseTrackingEvent } from '@datahub/shared/types/tracking/event-tracking';
|
||
|
import { TrackingEventCategory } from '@datahub/shared/constants/tracking/event-tracking';
|
||
|
/**
|
||
|
* Enum of search action clicks meant to be used for search tracking event keys
|
||
|
* @enum
|
||
|
*/
|
||
|
enum searchActions {
|
||
|
SearchResultClick = 'SearchResultClick',
|
||
|
SearchResultSATClick = 'SearchResultSATClick',
|
||
|
SearchResultFacetClick = 'SearchResultFacetClick'
|
||
|
}
|
||
|
|
||
|
export const searchTrackingEvent: Record<searchActions, IBaseTrackingEvent> = {
|
||
|
SearchResultClick: {
|
||
|
category: TrackingEventCategory.Search,
|
||
|
action: 'SearchResultClickEvent'
|
||
|
},
|
||
|
SearchResultSATClick: {
|
||
|
category: TrackingEventCategory.Search,
|
||
|
action: 'SearchResultSATClickEvent'
|
||
|
},
|
||
|
SearchResultFacetClick: {
|
||
|
category: TrackingEventCategory.Search,
|
||
|
action: 'SearchResultFacetClickEvent'
|
||
|
}
|
||
|
};
|