diff --git a/apps/scandic-web/components/HotelReservation/EnterDetails/Confirm/index.tsx b/apps/scandic-web/components/HotelReservation/EnterDetails/Confirm/index.tsx index 9ee4bdc3d..cc8b4cf6e 100644 --- a/apps/scandic-web/components/HotelReservation/EnterDetails/Confirm/index.tsx +++ b/apps/scandic-web/components/HotelReservation/EnterDetails/Confirm/index.tsx @@ -15,7 +15,6 @@ import PaymentOption from "@/components/HotelReservation/PaymentOption" import Modal from "@/components/Modal" import Divider from "@/components/TempDesignSystem/Divider" import Checkbox from "@/components/TempDesignSystem/Form/Checkbox" -import { trackPaymentSectionOpen } from "@/utils/tracking/booking" import PaymentOptionsGroup from "../Payment/PaymentOptionsGroup" import TermsAndConditions from "../Payment/TermsAndConditions" @@ -42,16 +41,7 @@ export default function ConfirmBooking({
- { - if (e.target.value) { - trackPaymentSectionOpen() - } - }, - }} - /> +

{intl.formatMessage({ diff --git a/apps/scandic-web/components/HotelReservation/EnterDetails/Details/Multiroom/index.tsx b/apps/scandic-web/components/HotelReservation/EnterDetails/Details/Multiroom/index.tsx index 075e45d5d..0006d8a66 100644 --- a/apps/scandic-web/components/HotelReservation/EnterDetails/Details/Multiroom/index.tsx +++ b/apps/scandic-web/components/HotelReservation/EnterDetails/Details/Multiroom/index.tsx @@ -14,9 +14,7 @@ import Input from "@/components/TempDesignSystem/Form/Input" import Phone from "@/components/TempDesignSystem/Form/Phone" import Footnote from "@/components/TempDesignSystem/Text/Footnote" import { useRoomContext } from "@/contexts/Details/Room" -import { trackPaymentSectionOpen } from "@/utils/tracking/booking" -import { hasPrepaidRate } from "../../Payment/helpers" import JoinScandicFriendsCard from "./JoinScandicFriendsCard" import { getMultiroomDetailsSchema } from "./schema" @@ -99,8 +97,6 @@ export default function Details() { const guestIsGoingToJoin = methods.watch("join") const guestIsMember = methods.watch("membershipNo") - const hasPrepaidRates = rooms.some(hasPrepaidRate) - return (

{isPaymentNext ? intl.formatMessage({ diff --git a/apps/scandic-web/components/HotelReservation/EnterDetails/Details/RoomOne/index.tsx b/apps/scandic-web/components/HotelReservation/EnterDetails/Details/RoomOne/index.tsx index 75b0a1915..6ae788128 100644 --- a/apps/scandic-web/components/HotelReservation/EnterDetails/Details/RoomOne/index.tsx +++ b/apps/scandic-web/components/HotelReservation/EnterDetails/Details/RoomOne/index.tsx @@ -14,7 +14,6 @@ import Input from "@/components/TempDesignSystem/Form/Input" import Phone from "@/components/TempDesignSystem/Form/Phone" import Footnote from "@/components/TempDesignSystem/Text/Footnote" import { useRoomContext } from "@/contexts/Details/Room" -import { trackPaymentSectionOpen } from "@/utils/tracking/booking" import JoinScandicFriendsCard from "./JoinScandicFriendsCard" import { guestDetailsSchema, signedInDetailsSchema } from "./schema" @@ -163,11 +162,6 @@ export default function Details({ user }: DetailsProps) { typography="Body/Paragraph/mdBold" size="Medium" type="submit" - onPress={ - isPaymentNext && canProceedToPayment && !room.isFlexRate - ? trackPaymentSectionOpen - : undefined - } > {isPaymentNext ? intl.formatMessage({ diff --git a/apps/scandic-web/utils/tracking/booking.ts b/apps/scandic-web/utils/tracking/booking.ts index b020814c5..73eda63b7 100644 --- a/apps/scandic-web/utils/tracking/booking.ts +++ b/apps/scandic-web/utils/tracking/booking.ts @@ -53,7 +53,7 @@ export function trackBreakfastSelection({ productCategory: "", productId: breakfastPackage.code, productUnits: units, - productPrice: breakfastPackage.localPrice.price, + productPrice: units > 0 ? breakfastPackage.localPrice.price : 0, productPoints: 0, productType: "food", productName: breakfastPackage.packageType, @@ -65,16 +65,3 @@ export function trackBreakfastSelection({ }, }) } - -export function trackPaymentSectionOpen() { - trackEvent({ - event: "paymentSectionOpen", - selection: { - name: "payment section open", - }, - pageInfo: { - pageName: "hotelreservation|payment", - pageType: "bookingpaymentpage", - }, - }) -}