We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b673de commit a7f9781Copy full SHA for a7f9781
src/components/FeedbackPrompt.tsx
@@ -1,6 +1,7 @@
1
import { useState } from "react";
2
import { Turnstile } from "@marsidev/react-turnstile";
3
import { MdOutlineThumbUp, MdOutlineThumbDown } from "react-icons/md";
4
+import { track } from "~/util/zaraz";
5
6
type SetState<T> = React.Dispatch<React.SetStateAction<T>>;
7
@@ -69,6 +70,7 @@ function Form({
69
70
const [passedTurnstile, setPassedTurnstile] = useState(false);
71
72
function submit(formData: FormData) {
73
+ track("submit docs feedback", { selected_option: option });
74
formData.set("option", option!);
75
76
formData.set("page", document.location.pathname);
0 commit comments