Tracking WIP
This commit is contained in:
@@ -13,9 +13,14 @@ export type TrackingSDKPageData = {
|
||||
pageId: string
|
||||
createdDate: string
|
||||
publishedDate: string
|
||||
lang: Lang
|
||||
domainLanguage: Lang
|
||||
pageType: string
|
||||
channel: TrackingChannel
|
||||
siteVersion?: "new-web"
|
||||
pageName: string | null
|
||||
domain?: string
|
||||
siteSections: string | null
|
||||
pageLoadTime?: number // Page load time in seconds
|
||||
}
|
||||
|
||||
export enum LoginTypeEnum {
|
||||
@@ -35,16 +40,59 @@ export type TrackingSDKUserData = {
|
||||
loginAction?: "login success"
|
||||
}
|
||||
|
||||
export type TrackingSDKHotelInfo = {
|
||||
hotelID?: string
|
||||
arrivalData?: Date
|
||||
departureDate?: Date
|
||||
noAdults?: number
|
||||
noChildren?: number
|
||||
ageOfChildren?: string // "10", "2,5,10"
|
||||
//rewardNight?: boolean
|
||||
//bookingCode?: string
|
||||
//bookingCodeAvailability?: boolean
|
||||
leadTime?: number // Number of days from booking date until arrivalDate
|
||||
noOfRoom?: number
|
||||
//bonuscheque?: boolean
|
||||
childBedPreference?: string
|
||||
duration?: number // Number of nights to stay
|
||||
availableResults?: number // Number of hotels to choose from after a city search
|
||||
bookingTypeofDay?: string // Weekend or weekday
|
||||
searchTerm?: string
|
||||
roomPrice?: string
|
||||
rateCode?: string
|
||||
rateCodeCancellationRule?: string
|
||||
rateCodeName?: string // Scandic Friends - full flex inkl. frukost
|
||||
rateCodeType?: string // regular, promotion etc
|
||||
revenueCurrencyCode?: string // SEK, DKK, NOK, EUR
|
||||
roomTypeCode?: string
|
||||
roomTypePosition?: number // Which position the room had in the list of available rooms
|
||||
roomTypeName?: string
|
||||
bedType?: string
|
||||
bedTypePosition?: number // Which position the bed type had in the list of available bed types
|
||||
breakfastOption?: string // "no breakfast" or "breakfast buffet"
|
||||
bnr?: string // Booking number
|
||||
analyticsrateCode?: string // flex, save, change
|
||||
specialRoomType?: string // allergy room, pet-friendly, accesibillity room
|
||||
//modifyValues?: string // <price:<value>,roomtype:value>,bed:<value,<breakfast:value>
|
||||
}
|
||||
|
||||
export type TrackingSDKProps = {
|
||||
pageData: TrackingSDKPageData
|
||||
userData: TrackingSDKUserData
|
||||
hotelInfo?: TrackingSDKHotelInfo
|
||||
}
|
||||
|
||||
export type TrackingSDKData = TrackingSDKPageData & {
|
||||
pathName: string
|
||||
}
|
||||
|
||||
export type TrackingPosition =
|
||||
| "top menu"
|
||||
| "hamburger menu"
|
||||
| "join scandic friends sidebar"
|
||||
|
||||
// Old tracking setup types:
|
||||
// TODO: Remove this when we delete "current site"
|
||||
export type TrackingProps = {
|
||||
pageData: {
|
||||
pageId: string
|
||||
@@ -73,8 +121,3 @@ export type SiteSectionObject = {
|
||||
sitesection5: string
|
||||
sitesection6: string
|
||||
}
|
||||
|
||||
export type TrackingPosition =
|
||||
| "top menu"
|
||||
| "hamburger menu"
|
||||
| "join scandic friends sidebar"
|
||||
|
||||
Reference in New Issue
Block a user