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 4b57b9a commit 927512cCopy full SHA for 927512c
src/components/Feedback/index.js
@@ -25,8 +25,9 @@ const Feedback = () => {
25
window.gtag('event', 'feedback', {
26
event_category: 'Feedback',
27
event_label: window.location.pathname,
28
- feedback_type: type,
29
- feedback_text: text,
+ feedback_type: String(type), // Ensure feedback_type is a string
+ feedback_text: String(text), // Ensure feedback_text is a string
30
+ value: type === "thumbs_down" ? 0 : 1, // Keep value as a number
31
});
32
}
33
setSubmitted(true);
0 commit comments