add mimeType to analytics (#4802)

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
This commit is contained in:
Jack Kavanagh 2022-05-20 13:46:50 +02:00 committed by GitHub
parent 8bc653388c
commit 47af218532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -713,7 +713,11 @@ class App extends PureComponent<AppProps, State> {
// Update request stats
models.stats.incrementExecutedRequests();
trackSegmentEvent(SegmentEvent.requestExecute, { preferredHttpVersion: settings.preferredHttpVersion, authenticationType: request.authentication?.type });
trackSegmentEvent(SegmentEvent.requestExecute, {
preferredHttpVersion: settings.preferredHttpVersion,
authenticationType: request.authentication?.type,
mimeType: request.body.mimeType,
});
// Start loading
handleStartLoading(requestId);
@ -800,7 +804,11 @@ class App extends PureComponent<AppProps, State> {
// Update request stats
models.stats.incrementExecutedRequests();
trackSegmentEvent(SegmentEvent.requestExecute, { preferredHttpVersion: settings.preferredHttpVersion, authenticationType: request.authentication?.type });
trackSegmentEvent(SegmentEvent.requestExecute, {
preferredHttpVersion: settings.preferredHttpVersion,
authenticationType: request.authentication?.type,
mimeType: request.body.mimeType,
});
handleStartLoading(requestId);
try {