{
setClickedHotel(properties.id)
+ trackMapClick(properties.name)
}, [setClickedHotel, properties])
function handleCloseCard() {
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/Sidepeek/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/Sidepeek/index.tsx
index e52097ff0..ff4fbf191 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/Sidepeek/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/Sidepeek/index.tsx
@@ -6,6 +6,7 @@ import { ChevronRightSmallIcon } from "@/components/Icons"
import JsonToHtml from "@/components/JsonToHtml"
import Button from "@/components/TempDesignSystem/Button"
import SidePeek from "@/components/TempDesignSystem/SidePeek"
+import { trackOpenSidePeekOnDestinationPagesEvent } from "@/utils/tracking/destinationPage"
import type { DestinationCityPageData } from "@/types/trpc/routers/contentstack/destinationCityPage"
import type { DestinationCountryPageData } from "@/types/trpc/routers/contentstack/destinationCountryPage"
@@ -16,18 +17,25 @@ interface DestinationPageSidepeekProps {
| DestinationCityPageData["sidepeek_content"]
| DestinationCountryPageData["sidepeek_content"]
>
+ location: string
}
export default function DestinationPageSidepeek({
buttonText,
sidePeekContent,
+ location,
}: DestinationPageSidepeekProps) {
const [sidePeekIsOpen, setSidePeekIsOpen] = useState(false)
const { heading, content } = sidePeekContent
+ function handleButtonClick() {
+ setSidePeekIsOpen(true)
+ trackOpenSidePeekOnDestinationPagesEvent(location)
+ }
+
return (