mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix: Adjust cred setup telemetry (no-changelog) (#8294)
This commit is contained in:
parent
05c43faa2d
commit
d877d3ce92
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue