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