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 bb6b7f9 commit c1dc350Copy full SHA for c1dc350
src/lib/feedbackAnalytics.ts
@@ -129,7 +129,14 @@ export const trackFeedback = (data: FeedbackData): void => {
129
// Track to Segment
130
import('../lib/segmentAnalytics')
131
.then(({ trackFeedbackForSegment }) => {
132
- trackFeedbackForSegment(data)
+ trackFeedbackForSegment({
133
+ ...data,
134
+ reason: data.reason || '',
135
+ response: data.response || '',
136
+ locale: data.locale || navigator.language,
137
+ timestamp: data.timestamp || Date.now(),
138
+ device_type: data.device_type || getDeviceType(),
139
+ })
140
})
141
.catch(error => {
142
console.warn('Could not load Segment analytics:', error)
0 commit comments