product_eventThere is a decline in the number of daily users engaging with <VALUABLE_FEATURE> for the mobile app. How would you go about investigating this issue?
Systematically define the problem through implicated systems, features, attributes, populations to identify potential causes. Eliminate possible causes through corroborating evidence.
activity: User ID, event, context (view, org_id)
| user_id | event_ts | event | view | org_id |
|---|---|---|---|---|
| 0a1324bcf9901 | 2022-01-04 09:01:53 UTC | context_noun_action | url_or_view | org_id |
membership: User ID, org ID, date user added
| org_id | user_id | added_ts |
|---|---|---|
| 0a1324bcaf0189 | bfce917ae | 2022-01-04 09:01:53 UTC |
organizations: Org ID, org attributes (class = {free, smb, enterprise, edu, non-profit})
| org_id | class |
|---|---|
| 0a1434bfae | 'free’ |
| bace14af | 'enterprise’ |
WITH user_date AS (
SELECT user_id
, event_ts::DATE AS active_dt
FROM activity
WHERE EXTRACT(WEEK FROM event_TS) = EXTRACT(WEEK FROM CURRENT_DATE() - INTERVAL '1 week')
GROUP BY user_id, active_dt
), user_days AS (
SELECT user_id
, COUNT(active_dt) AS active_days
FROM user_date
)
SELECT COUNT(*) AS active_users
FROM user_days
WHERE active_days > 1