Files
web/apps/scandic-web/utils/tracking/hotelPage.ts
Erik Tiekstra 230b56b3bd Merged in feat/SW-1472-destination-tracking (pull request #1474)
Feat/SW-1472 destination tracking

* feat(SW-1472): Added default tracking for destination overview page

* feat(SW-1472): Added default tracking for destination country/city page

* feat(SW-1472): moved tracking functions to different files for better overview

* feat(SW-1472): added destination page tracking


Approved-by: Fredrik Thorsson
Approved-by: Matilda Landström
2025-03-06 10:15:33 +00:00

21 lines
376 B
TypeScript

import { trackEvent } from "./base"
export function trackHotelMapClick() {
trackEvent({
event: "map click",
map: {
action: "map click - open/explore mearby",
},
})
}
export function trackHotelTabClick(name: string) {
trackEvent({
event: "linkClick",
link: {
action: "hotel menu click",
option: `hotel menu:${name}`,
},
})
}