Merged in fix/SW-2418-tracking-booking-cancellations (pull request #2500)
fix(SW-2418): add duration and price to booking cancellations tracking * fix(SW-2418): add duration and price to booking cancellations tracking * fix(SW-2418): move sessionId and siteVersion inside the pageInfo object Approved-by: Matilda Landström
This commit is contained in:
@@ -16,7 +16,10 @@ export function trackEvent(data: any) {
|
||||
logger.error("Error getting sessionId from sessionStorage", e)
|
||||
}
|
||||
|
||||
data = { ...data, siteVersion: "new-web", sessionId }
|
||||
data = {
|
||||
...data,
|
||||
pageInfo: { ...data?.pageInfo, siteVersion: "new-web", sessionId },
|
||||
}
|
||||
|
||||
window.adobeDataLayer.push(data)
|
||||
window.dataLayer.push(data)
|
||||
|
||||
Reference in New Issue
Block a user