Merged in feat/sw-3473-remove-tracking-context (pull request #2843)
feat(SW-3473): Rework booking-flow tracking provider * Remove tracking context and import instead * Remove unused file Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -35,32 +35,6 @@ export function trackMyStayPageLink(ctaName: string) {
|
||||
})
|
||||
}
|
||||
|
||||
export function trackGlaSaveCardAttempt({
|
||||
hotelId,
|
||||
hasSavedCreditCard,
|
||||
creditCardType,
|
||||
lateArrivalGuarantee,
|
||||
}: {
|
||||
hotelId: string
|
||||
hasSavedCreditCard: boolean
|
||||
creditCardType?: string
|
||||
lateArrivalGuarantee: "mandatory" | "yes" | "no" | "na"
|
||||
}) {
|
||||
trackEvent({
|
||||
event: "glaCardSaveAttempt",
|
||||
hotelInfo: {
|
||||
hotelId,
|
||||
lateArrivalGuarantee,
|
||||
guaranteedProduct: "room",
|
||||
},
|
||||
paymentInfo: {
|
||||
status: "glacardsaveattempt",
|
||||
isSavedCreditCard: hasSavedCreditCard,
|
||||
type: creditCardType,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
export function buildAncillariesTracking(
|
||||
packages: {
|
||||
code: string
|
||||
|
||||
Reference in New Issue
Block a user