feat: add tracking events for loyalty pages
This commit is contained in:
@@ -1,5 +1,32 @@
|
||||
import type { Lang } from "@/constants/languages"
|
||||
|
||||
export enum TrackingChannelEnum {
|
||||
"scandic-friends" = "scandic-friends",
|
||||
}
|
||||
|
||||
export type TrackingChannel = keyof typeof TrackingChannelEnum
|
||||
|
||||
export type TrackingSDKPageData = {
|
||||
pageId: string
|
||||
createdDate: string
|
||||
publishedDate: string
|
||||
lang: Lang
|
||||
channel: TrackingChannel
|
||||
}
|
||||
|
||||
export type TrackingSDKProps = {
|
||||
pageData: TrackingSDKPageData
|
||||
}
|
||||
|
||||
export type TrackingSDKData = {
|
||||
lang: Lang
|
||||
pathName: string
|
||||
pageId: string
|
||||
publishedDate: string
|
||||
createdDate: string
|
||||
}
|
||||
|
||||
// Old tracking setup types:
|
||||
export type TrackingProps = {
|
||||
pageData: {
|
||||
pageId: string
|
||||
|
||||
Reference in New Issue
Block a user