File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,10 @@ function Form({
7070 const [ passedTurnstile , setPassedTurnstile ] = useState ( false ) ;
7171
7272 function submit ( formData : FormData ) {
73- track ( "submit docs feedback" , { selected_option : option } ) ;
73+ track ( "submit docs feedback" , {
74+ selected_option : option ,
75+ selected_reason : formData . get ( "reason" ) ,
76+ } ) ;
7477 formData . set ( "option" , option ! ) ;
7578
7679 formData . set ( "page" , document . location . pathname ) ;
@@ -125,7 +128,7 @@ export default function FeedbackPrompt() {
125128 const [ submitted , setSubmitted ] = useState ( false ) ;
126129
127130 return (
128- < div >
131+ < div id = "feedback-form" >
129132 < h2 > { title } </ h2 >
130133 { ! option && < Buttons setTitle = { setTitle } setOption = { setOption } /> }
131134 { ! submitted && (
You can’t perform that action at this time.
0 commit comments