refactor(telemetry): Add personalization survey event to PostHog (#4093)

 Add personalization survey event to PH
This commit is contained in:
Iván Ovejero 2022-09-15 13:31:19 +02:00 committed by GitHub
parent ec2c55211c
commit 680d255df5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,9 +70,13 @@ export class InternalHooksClass implements IInternalHooksClass {
personalizationSurveyData[snakeCase(camelCaseKey)] = answers[camelCaseKey]; personalizationSurveyData[snakeCase(camelCaseKey)] = answers[camelCaseKey];
}); });
personalizationSurveyData.personalization_survey_submitted_at = new Date().toISOString();
personalizationSurveyData.personalization_survey_n8n_version = this.versionCli;
return this.telemetry.track( return this.telemetry.track(
'User responded to personalization questions', 'User responded to personalization questions',
personalizationSurveyData, personalizationSurveyData,
{ withPostHog: true },
); );
} }