Skip to content

Commit

Permalink
refactor(telemetry): Add personalization survey event to PostHog (#4093)
Browse files Browse the repository at this point in the history
⚡ Add personalization survey event to PH
  • Loading branch information
ivov authored Sep 15, 2022
1 parent ec2c552 commit 680d255
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/cli/src/InternalHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ export class InternalHooksClass implements IInternalHooksClass {
personalizationSurveyData[snakeCase(camelCaseKey)] = answers[camelCaseKey];
});

personalizationSurveyData.personalization_survey_submitted_at = new Date().toISOString();
personalizationSurveyData.personalization_survey_n8n_version = this.versionCli;

return this.telemetry.track(
'User responded to personalization questions',
personalizationSurveyData,
{ withPostHog: true },
);
}

Expand Down

0 comments on commit 680d255

Please sign in to comment.