(core) Add sign-up and sharing/invite telemetry

Summary:
Enhances sign-up telemetry with login and verification method metadata, and
adds UTM parameters to SendGrid invite email links and Grist document links.

Test Plan: Server and manual.

Reviewers: dsagal

Reviewed By: dsagal

Subscribers: dsagal

Differential Revision: https://phab.getgrist.com/D4169
This commit is contained in:
George Gevoian
2024-01-23 20:12:46 -08:00
parent dba3a59486
commit b77c762358
5 changed files with 28 additions and 8 deletions

View File

@@ -770,10 +770,14 @@ export const TelemetryContracts: TelemetryContracts = {
},
signupFirstVisit: {
category: 'ProductVisits',
description: 'Triggered when a new user first opens the Grist app',
description: 'Triggered when a new user first opens the Grist app.',
minimumTelemetryLevel: Level.full,
retentionPeriod: 'indefinitely',
metadataContracts: {
loginMethod: {
description: 'The login method on getgrist.com. May be "Email + Password" or "Google".',
dataType: 'string',
},
siteId: {
description: 'The site id of first visit after signup.',
dataType: 'number',
@@ -798,6 +802,10 @@ export const TelemetryContracts: TelemetryContracts = {
minimumTelemetryLevel: Level.full,
retentionPeriod: 'indefinitely',
metadataContracts: {
verificationMethod: {
description: 'The verification method. May be "code" or "link".',
dataType: 'string',
},
isAnonymousTemplateSignup: {
description: 'Whether the user viewed any templates before signing up.',
dataType: 'boolean',