Skip to content

Commit a7f9781

Browse files
committed
[Docs site] [Analytics] Send feedback events to Zaraz
1 parent 2b673de commit a7f9781

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/FeedbackPrompt.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useState } from "react";
22
import { Turnstile } from "@marsidev/react-turnstile";
33
import { MdOutlineThumbUp, MdOutlineThumbDown } from "react-icons/md";
4+
import { track } from "~/util/zaraz";
45

56
type SetState<T> = React.Dispatch<React.SetStateAction<T>>;
67

@@ -69,6 +70,7 @@ function Form({
6970
const [passedTurnstile, setPassedTurnstile] = useState(false);
7071

7172
function submit(formData: FormData) {
73+
track("submit docs feedback", { selected_option: option });
7274
formData.set("option", option!);
7375

7476
formData.set("page", document.location.pathname);

0 commit comments

Comments
 (0)