Merged in feat(SW-1993)-tracking-mystay-cancellation (pull request #1588)
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
This commit is contained in:
20
apps/scandic-web/utils/tracking/myStay.ts
Normal file
20
apps/scandic-web/utils/tracking/myStay.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
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,
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user