mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) Add event for thumbsUp/thumbsDown ratings for HelpCenter articles
Summary: This corresponding change in HelpCenter will report this event: https://github.com/gristlabs/grist-help/pull/303 Test Plan: Tested locally that the telemetry event is received by the server and logged. Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D4168
This commit is contained in:
parent
8a6ab0f64e
commit
6575da7d99
@ -401,6 +401,30 @@ export const TelemetryContracts: TelemetryContracts = {
|
||||
},
|
||||
},
|
||||
},
|
||||
ratedHelpCenterArticle: {
|
||||
category: 'HelpCenter',
|
||||
description: 'Sent by HelpCenter when user clicks thumbs-up or thumbs-down',
|
||||
minimumTelemetryLevel: Level.full,
|
||||
retentionPeriod: 'indefinitely',
|
||||
metadataContracts: {
|
||||
url: {
|
||||
description: 'The URL of the visited page.',
|
||||
dataType: 'string',
|
||||
},
|
||||
rating: {
|
||||
description: 'Feedback from user ("thumbsUp" or "thumbsDown")',
|
||||
dataType: 'string',
|
||||
},
|
||||
userId: {
|
||||
description: 'The id of the user that triggered this event.',
|
||||
dataType: 'number',
|
||||
},
|
||||
altSessionId: {
|
||||
description: 'A random, session-based identifier for the user that triggered this event.',
|
||||
dataType: 'string',
|
||||
},
|
||||
},
|
||||
},
|
||||
documentCreated: {
|
||||
description: 'Triggered when a document is created.',
|
||||
minimumTelemetryLevel: Level.limited,
|
||||
@ -1414,6 +1438,7 @@ export const TelemetryEvents = StringUnion(
|
||||
'beaconArticleViewed',
|
||||
'beaconEmailSent',
|
||||
'beaconSearch',
|
||||
'ratedHelpCenterArticle',
|
||||
'documentCreated',
|
||||
'documentForked',
|
||||
'documentOpened',
|
||||
|
Loading…
Reference in New Issue
Block a user