fix: Adjust cred setup telemetry (no-changelog) (#8294)

This commit is contained in:
Tomi Turtiainen 2024-01-10 19:41:25 +02:00 committed by GitHub
parent 05c43faa2d
commit d877d3ce92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,6 +153,16 @@ export const useSetupTemplateStore = defineStore('setupTemplate', () => {
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', {
completed: false,
creds_filled: 0,
@ -196,14 +206,20 @@ export const useSetupTemplateStore = defineStore('setupTemplate', () => {
workflow_id: createdWorkflow.id,
});
const telemetryPayload = {
source: 'workflow',
template_id: template.value.id,
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 inserted workflow template', telemetryPayload, {
withPostHog: true,
telemetry.track('User saved new workflow from template', {
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