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 c5a2e15 commit 721479bCopy full SHA for 721479b
src/components/Layout/Feedback.tsx
@@ -45,13 +45,14 @@ const thumbsDownIcon = (
45
);
46
47
function sendGAEvent(isPositive: boolean) {
48
+ const value = isPositive ? 1 : 0;
49
// Fragile. Don't change unless you've tested the network payload
50
// and verified that the right events actually show up in GA.
51
// @ts-ignore
52
gtag('event', 'feedback', {
53
event_category: 'button',
54
event_label: window.location.pathname,
- value: isPositive ? 1 : 0,
55
+ value,
56
});
57
}
58
0 commit comments