Update umami sql queries

This commit is contained in:
2026-05-26 16:51:46 +02:00
parent f0eb28a627
commit cda142b3d1
4 changed files with 24 additions and 9 deletions
+4
View File
@@ -14,6 +14,10 @@ WHERE
AND w.event_type = 1
AND s.distinct_id IS NOT NULL
AND substring(s.distinct_id SIMILAR '%#"@%#"' ESCAPE '#') <> '@oceanbox.io'
AND 2025 < EXTRACT(YEAR FROM w.created_at)
-- NOTE(simkir): We started with umami at this time, so the data that week was not complete
AND (NOT (EXTRACT(YEAR FROM w.created_at) = 2025 AND EXTRACT(WEEK FROM w.created_at) = 37))
AND (NOT (EXTRACT(YEAR FROM w.created_at) = 2025 AND EXTRACT(WEEK FROM w.created_at) = 1))
GROUP BY
week
ORDER BY