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:
Pontus Dreij
2025-03-21 07:24:01 +00:00
parent 096cf700f4
commit 2bc14a6eeb
7 changed files with 65 additions and 5 deletions

View 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,
},
})
}