fix(api): use strict_increase instead of strict_order for windowFunnel

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-27 10:33:28 +02:00
parent c4be1dc05d
commit 8082d4907e

View File

@@ -315,7 +315,7 @@ export async function getFunnelData({
const innerSql = `SELECT
session_id,
windowFunnel(${ONE_DAY_IN_SECONDS}, 'strict_order')(toUnixTimestamp(created_at), ${funnels.join(', ')}) AS level
windowFunnel(${ONE_DAY_IN_SECONDS}, 'strict_increase')(toUnixTimestamp(created_at), ${funnels.join(', ')}) AS level
FROM ${TABLE_NAMES.events}
WHERE
project_id = ${escape(projectId)} AND