mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
fix: Adjust cred setup telemetry (no-changelog) (#8294)
This commit is contained in:
@@ -153,6 +153,16 @@ export const useSetupTemplateStore = defineStore('setupTemplate', () => {
|
|||||||
wf_template_repo_session_id: templatesStore.currentSessionId,
|
wf_template_repo_session_id: templatesStore.currentSessionId,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
telemetry.track(
|
||||||
|
'User inserted workflow template',
|
||||||
|
{
|
||||||
|
source: 'workflow',
|
||||||
|
template_id: templateId.value,
|
||||||
|
wf_template_repo_session_id: templatesStore.currentSessionId,
|
||||||
|
},
|
||||||
|
{ withPostHog: true },
|
||||||
|
);
|
||||||
|
|
||||||
telemetry.track('User closed cred setup', {
|
telemetry.track('User closed cred setup', {
|
||||||
completed: false,
|
completed: false,
|
||||||
creds_filled: 0,
|
creds_filled: 0,
|
||||||
@@ -196,14 +206,20 @@ export const useSetupTemplateStore = defineStore('setupTemplate', () => {
|
|||||||
workflow_id: createdWorkflow.id,
|
workflow_id: createdWorkflow.id,
|
||||||
});
|
});
|
||||||
|
|
||||||
const telemetryPayload = {
|
telemetry.track(
|
||||||
source: 'workflow',
|
'User inserted workflow template',
|
||||||
template_id: template.value.id,
|
{
|
||||||
wf_template_repo_session_id: templatesStore.currentSessionId,
|
source: 'workflow',
|
||||||
};
|
template_id: templateId.value,
|
||||||
|
wf_template_repo_session_id: templatesStore.currentSessionId,
|
||||||
|
},
|
||||||
|
{ withPostHog: true },
|
||||||
|
);
|
||||||
|
|
||||||
telemetry.track('User inserted workflow template', telemetryPayload, {
|
telemetry.track('User saved new workflow from template', {
|
||||||
withPostHog: true,
|
template_id: templateId.value,
|
||||||
|
workflow_id: createdWorkflow.id,
|
||||||
|
wf_template_repo_session_id: templatesStore.currentSessionId,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Replace the URL so back button doesn't come back to this setup view
|
// Replace the URL so back button doesn't come back to this setup view
|
||||||
|
|||||||
Reference in New Issue
Block a user