Skip to content

Commit

Permalink
matomo: "values" event on tooltip open
Browse files Browse the repository at this point in the history
  • Loading branch information
wackerow committed Sep 19, 2024
1 parent 752f017 commit 52db0b9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/Homepage/ValuesMarquee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Tooltip from "@/components/Tooltip"

import { cn } from "@/lib/utils/cn"
import { isMobile } from "@/lib/utils/isMobile"
import { trackCustomEvent } from "@/lib/utils/matomo"

import { type Pairing, useValuesMarquee } from "../Homepage/useValuesMarquee"
import { Stack } from "../ui/flex"
Expand Down Expand Up @@ -37,6 +38,13 @@ const Item = ({
<>
<Tooltip
container={container}
onBeforeOpen={() => {
trackCustomEvent({
eventCategory: "Homepage",
eventAction: "internet_changing",
eventName: label,
})
}}
content={
<Stack>
<h3 className="text-md text-body-medium dark:text-gray-300">
Expand Down

0 comments on commit 52db0b9

Please sign in to comment.