feat(SW-392): Added tab navigation click tracking

This commit is contained in:
Erik Tiekstra
2025-01-09 14:04:56 +01:00
parent 4bbd02f307
commit c82b6866e7
5 changed files with 25 additions and 8 deletions

View File

@@ -77,6 +77,16 @@ export function trackAccordionClick(option: string) {
pushToDataLayer(event)
}
export function trackHotelTabClick(name: string) {
pushToDataLayer({
event: "linkClick",
link: {
action: "hotel menu click",
option: `hotel menu:${name}`,
},
})
}
export function trackUpdatePaymentMethod(hotelId: string, method: string) {
const paymentSelectionEvent = {
event: "paymentSelection",