Merged in fix/tracking-requests (pull request #1208)

Added siteversion to all events and fixed payment status

* Added siteversion to all events and fixed payment status

* Fixed bug


Approved-by: Erik Tiekstra
This commit is contained in:
Linus Flood
2025-01-24 07:49:00 +00:00
parent 127bb6a0a7
commit cea4e3f3fe
6 changed files with 31 additions and 19 deletions

View File

@@ -5,7 +5,7 @@ import { useEffect, useMemo, useRef } from "react"
import { useEnterDetailsStore } from "@/stores/enter-details"
import { useSessionId } from "@/hooks/useSessionId"
import { createSDKPageObject, pushToDataLayer } from "@/utils/tracking"
import { createSDKPageObject, trackPageView } from "@/utils/tracking"
import { RoomPackageCodeEnum } from "@/types/components/hotelReservation/selectRate/roomFilter"
import {
@@ -156,7 +156,7 @@ export default function EnterDetailsTracking(props: Props) {
useEffect(() => {
if (previousPathname.current !== pathName) {
pushToDataLayer({
trackPageView({
event: "pageView",
pageInfo: pageObject,
userInfo: userTrackingData,