Skip to content

Commit 52db0b9

Browse files
committed
matomo: "values" event on tooltip open
1 parent 752f017 commit 52db0b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/components/Homepage/ValuesMarquee.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Tooltip from "@/components/Tooltip"
77

88
import { cn } from "@/lib/utils/cn"
99
import { isMobile } from "@/lib/utils/isMobile"
10+
import { trackCustomEvent } from "@/lib/utils/matomo"
1011

1112
import { type Pairing, useValuesMarquee } from "../Homepage/useValuesMarquee"
1213
import { Stack } from "../ui/flex"
@@ -37,6 +38,13 @@ const Item = ({
3738
<>
3839
<Tooltip
3940
container={container}
41+
onBeforeOpen={() => {
42+
trackCustomEvent({
43+
eventCategory: "Homepage",
44+
eventAction: "internet_changing",
45+
eventName: label,
46+
})
47+
}}
4048
content={
4149
<Stack>
4250
<h3 className="text-md text-body-medium dark:text-gray-300">

0 commit comments

Comments
 (0)