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
Fix UTM query, move filters to proper place
Chris Walsh7d1f8ea77bde
diff --git a/queries/analytics/pageview/getPageviewParams.js b/queries/analytics/pageview/getPageviewParams.jsindex b71e2d1fe..b71708259 100644--- a/queries/analytics/pageview/getPageviewParams.js+++ b/queries/analytics/pageview/getPageviewParams.js@@ -19,18 +19,18 @@ export function getPageviewParams(return rawQuery(`select * from (- select- url, split_part(split_part(url, concat($1, '='), 2), '&', 1) param- from- pageview- ${joinSession}- ${pageviewQuery}- ${joinSession && sessionQuery}- ${eventQuery}- where- ${table}.website_id=$2 and ${table}.created_at between $3 and $4- group by 1, 2- order by 2 desc+ select+ url, split_part(split_part(url, concat($1, '='), 2), '&', 1) param+ from+ pageview+ ${joinSession}+ where+ ${table}.website_id=$2 and ${table}.created_at between $3 and $4+ ${pageviewQuery}+ ${joinSession && sessionQuery}+ ${eventQuery}+ group by 1, 2+ order by 2 desc) qwhere q.param <> ''`,params,