mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
feat(editor): Add more telemetry for workflow inputs (no-changelog) (#12862)
This commit is contained in:
committed by
GitHub
parent
eabf160957
commit
6dd90c8764
@@ -837,6 +837,25 @@ function valueChanged(value: NodeParameterValueType | {} | Date) {
|
||||
parameter: props.parameter.name,
|
||||
});
|
||||
}
|
||||
// Track workflow input data mode change
|
||||
const isWorkflowInputParameter =
|
||||
props.parameter.name === 'inputSource' && props.parameter.default === 'workflowInputs';
|
||||
if (isWorkflowInputParameter) {
|
||||
trackWorkflowInputModeEvent(value as string);
|
||||
}
|
||||
}
|
||||
|
||||
function trackWorkflowInputModeEvent(value: string) {
|
||||
const telemetryValuesMap: Record<string, string> = {
|
||||
workflowInputs: 'fields',
|
||||
jsonExample: 'json',
|
||||
passthrough: 'all',
|
||||
};
|
||||
telemetry.track('User chose input data mode', {
|
||||
option: telemetryValuesMap[value],
|
||||
workflow_id: workflowsStore.workflowId,
|
||||
node_id: node.value?.id,
|
||||
});
|
||||
}
|
||||
|
||||
async function optionSelected(command: string) {
|
||||
|
||||
Reference in New Issue
Block a user