Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
reorder getfunnel where to match index
Francis Cao7df142b02b31
diff --git a/queries/analytics/reports/getFunnel.ts b/queries/analytics/reports/getFunnel.tsindex 3c5c65e09..1bbbc8782 100644--- a/queries/analytics/reports/getFunnel.ts+++ b/queries/analytics/reports/getFunnel.ts@@ -57,12 +57,14 @@ async function relationalQuery(from level${i} ljoin website_event weon l.session_id = we.session_id- where we.created_at between l.created_at- and ${getAddMinutesQuery(`l.created_at `, windowMinutes)}+ where we.website_id = {{websiteId::uuid}}+ and we.created_at between l.created_at and ${getAddMinutesQuery(+ `l.created_at `,+ windowMinutes,+ )}and we.referrer_path = {{${i - 1}}}and we.url_path = {{${i}}}and we.created_at <= {{endDate}}- and we.website_id = {{websiteId::uuid}})`;}