mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): Send evaluation telemetry event to Posthog (#16040)
This commit is contained in:
@@ -105,22 +105,30 @@ watch(
|
||||
(ready) => {
|
||||
if (ready) {
|
||||
if (showWizard.value) {
|
||||
telemetry.track('User viewed tests tab', {
|
||||
workflow_id: props.name,
|
||||
test_type: 'evaluation',
|
||||
view: 'setup',
|
||||
trigger_set_up: evaluationStore.evaluationTriggerExists,
|
||||
output_set_up: evaluationStore.evaluationSetOutputsNodeExist,
|
||||
metrics_set_up: evaluationStore.evaluationSetMetricsNodeExist,
|
||||
quota_reached: evaluationsQuotaExceeded.value,
|
||||
});
|
||||
telemetry.track(
|
||||
'User viewed tests tab',
|
||||
{
|
||||
workflow_id: props.name,
|
||||
test_type: 'evaluation',
|
||||
view: 'setup',
|
||||
trigger_set_up: evaluationStore.evaluationTriggerExists,
|
||||
output_set_up: evaluationStore.evaluationSetOutputsNodeExist,
|
||||
metrics_set_up: evaluationStore.evaluationSetMetricsNodeExist,
|
||||
quota_reached: evaluationsQuotaExceeded.value,
|
||||
},
|
||||
{ withPostHog: true },
|
||||
);
|
||||
} else {
|
||||
telemetry.track('User viewed tests tab', {
|
||||
workflow_id: props.name,
|
||||
test_type: 'evaluation',
|
||||
view: 'overview',
|
||||
run_count: runs.value.length,
|
||||
});
|
||||
telemetry.track(
|
||||
'User viewed tests tab',
|
||||
{
|
||||
workflow_id: props.name,
|
||||
test_type: 'evaluation',
|
||||
view: 'overview',
|
||||
run_count: runs.value.length,
|
||||
},
|
||||
{ withPostHog: true },
|
||||
);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user