Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export interface HtBaseNode {
follow_up?: HtNodeLink
target?: HtNodeLink
flow_id: string // TODO: Review if this field is necessary in all HtBaseNode
is_meaningful?: boolean
}

export interface HtTextLocale {
Expand Down
4 changes: 3 additions & 1 deletion packages/botonic-plugin-flow-builder/src/tracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export async function trackFlowContent(
flowId: firstNodeContent.flow_id,
flowName,
id: firstNodeContent.id,
isMeaningful: firstNodeContent.is_meaningful ?? false,
})
await trackEvent(request, EventAction.FlowNode, eventArgs)
}
Expand All @@ -54,6 +55,7 @@ export function getContentEventArgs(
flowId: string
flowName: string
id: string
isMeaningful: boolean
}
) {
const flowBuilderPlugin = getFlowBuilderPlugin(request.plugins)
Expand All @@ -63,6 +65,6 @@ export function getContentEventArgs(
flowName: flowBuilderPlugin.getFlowName(contentInfo.flowId),
flowNodeId: contentInfo.id,
flowNodeContentId: contentInfo.code,
flowNodeIsMeaningful: undefined, //node?.isMeaningful,
flowNodeIsMeaningful: contentInfo.isMeaningful,
}
}