Merged in fix/SW-1997-gla-tracking (pull request #1852)
fix(SW-1997): add price and currency * fix(SW-1997): add price and currency * fix(SW-1997): wrap lateArrivalGuaranteee and guaranteedProduct in hotelInfo Approved-by: Niclas Edenvin
This commit is contained in:
@@ -48,19 +48,25 @@ export default function TrackGuarantee({
|
||||
productUnits: pkg.quantity,
|
||||
productPoints: selectedAncillary?.points,
|
||||
productDeliveryTime: formData?.deliveryTime,
|
||||
productPrice: selectedAncillary?.price,
|
||||
productPrice: selectedAncillary?.price.total,
|
||||
currency: selectedAncillary?.price.currency,
|
||||
productName: selectedAncillary?.title,
|
||||
productCategory: selectedAncillary?.categoryName,
|
||||
})),
|
||||
lateArrivalGuarantee: "yes",
|
||||
guaranteedProduct: "room + ancillary",
|
||||
hotelInfo: {
|
||||
hotelId: selectedAncillary?.hotelId,
|
||||
lateArrivalGuarantee: "yes",
|
||||
guaranteedProduct: "room + ancillary",
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
const trackGuaranteePaymentEvent = (event: string, status: string) => {
|
||||
const glaHotelInfo = readGlaFromSessionStorage()
|
||||
trackEvent({
|
||||
event,
|
||||
hotelInfo: {
|
||||
hotelId: glaHotelInfo?.hotelId,
|
||||
lateArrivalGuarantee: "yes",
|
||||
guaranteedProduct: "room",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user