mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 21:37:32 -08:00
refactor(telemetry): Fix metadata on personalization survey (#4123)
🐛 Fix metadata on personalization survey
This commit is contained in:
parent
5f4830b275
commit
479f78b3bc
|
@ -70,9 +70,6 @@ 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,
|
||||
|
|
|
@ -120,6 +120,7 @@ import { IFormInputs, IPersonalizationLatestVersion } from '@/Interface';
|
|||
import Vue from 'vue';
|
||||
import { mapGetters } from 'vuex';
|
||||
import { getAccountAge } from '@/modules/userHelpers';
|
||||
import { GenericValue } from 'n8n-workflow';
|
||||
|
||||
export default mixins(showMessage, workflowHelpers).extend({
|
||||
components: { Modal },
|
||||
|
@ -465,7 +466,12 @@ export default mixins(showMessage, workflowHelpers).extend({
|
|||
this.$data.isSaving = true;
|
||||
|
||||
try {
|
||||
const survey = { ...values, version: SURVEY_VERSION };
|
||||
const survey: Record<string, GenericValue> = {
|
||||
...values,
|
||||
version: SURVEY_VERSION,
|
||||
personalization_survey_submitted_at: new Date().toISOString(),
|
||||
personalization_survey_n8n_version: this.$store.getters.versionCli,
|
||||
};
|
||||
|
||||
this.$externalHooks().run('personalizationModal.onSubmit', survey);
|
||||
|
||||
|
|
Loading…
Reference in a new issue