Feat(SW-1993) tracking mystay * feat(SW-1993) added trackEvent for cancelStay and mypagelink * feat(SW-1993) implement trackCancelStay and trackMyStayPageLink Approved-by: Linus Flood
21 lines
375 B
TypeScript
21 lines
375 B
TypeScript
import { trackEvent } from "./base"
|
|
|
|
export function trackCancelStay(hotelId: string, bnr: string) {
|
|
trackEvent({
|
|
event: "BookingCancellations",
|
|
hotelInfo: {
|
|
hotelId: hotelId,
|
|
bnr: bnr,
|
|
},
|
|
})
|
|
}
|
|
|
|
export function trackMyStayPageLink(ctaName: string) {
|
|
trackEvent({
|
|
event: "confirmationPageLinks",
|
|
cta: {
|
|
name: ctaName,
|
|
},
|
|
})
|
|
}
|