mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
refactor(telemetry): Add personalization survey event to PostHog (#4093)
⚡ Add personalization survey event to PH
This commit is contained in:
parent
ec2c55211c
commit
680d255df5
|
@ -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 },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue