Merged in fix/SW-1414-tracking-gla (pull request #1837)

fix(SW-1414): add hotelId to tracking for gla

* fix(SW-1414): add hotelId to tracking for gla


Approved-by: Niclas Edenvin
This commit is contained in:
Bianca Widstam
2025-04-23 11:05:43 +00:00
parent 722d4505ba
commit 2f0a196b49
5 changed files with 35 additions and 18 deletions

View File

@@ -308,9 +308,9 @@ export default function PaymentClient({
if (guarantee || (bookingMustBeGuaranteed && hasOnlyFlexRates)) {
const lateArrivalGuarantee = guarantee ? "yes" : "mandatory"
writeGlaToSessionStorage(lateArrivalGuarantee)
writeGlaToSessionStorage(lateArrivalGuarantee, hotelId)
trackGlaSaveCardAttempt(hotelId, savedCreditCard, lateArrivalGuarantee)
} else {
} else if (!hasOnlyFlexRates) {
trackPaymentEvent({
event: "paymentAttemptStart",
hotelId,