new metric to track

This commit is contained in:
Brandon Thomas committed 2024-09-28 23:29:32 -04:00
1 parent 7297f77334
commit 1f595f3d64
1 file changed
+15
@@ -0,0 +1,15 @@
-- User sign up histogram by method
-- Since we don't have an index on created_at, we threshold by id
-- Current ID count = 7578799 (September 28, 2024)
select
date(created_at) as date,
case
when maybe_signup_method is null then 'email_password'
else maybe_signup_method
end as method,
count(*) as signup_count
from users
where id > 7200000
and created_at >= NOW() - INTERVAL 60 DAY
group by date(created_at), method