I'm working on some App metrics and have trouble tying out 'Active Users' numbers from Google BigQuery to Firebase and Google Analytics. I'm also pulling data from GBQ into Tableau.
GBQ Query -
SELECT event_date, COUNT(DISTINCT user_id)
FROM `MyTable..events_*`,
UNNEST( event_params) as event
WHERE event_name in ('user_engagement')
GROUP BY event_date
ORDER BY event_date ASC
I've also tried the N-th day Active Users query from Firebase Sample Queries.
/**
* Builds an audience of N-Day Active Users.
*
* N-day active users = users who have logged at least one user_engagement
* event in the last N days.
*/
SELECT --event_date,
COUNT(DISTINCT user_id) AS n_day_active_users_count
FROM
-- PLEASE REPLACE WITH YOUR TABLE NAME.
`MyTable..events_*`
WHERE
event_name = 'user_engagement'
AND _TABLE_SUFFIX = '20191220';
The result I get when I run above query is 13,929 which matches with the number in Tableau. However, when I filter down to just that one day in either Firebase or Google Analytics dashboards, I get 17,726. You can see that in the table below too.
Tableau Logic - I created a calculated field called DAU like so,
{ FIXED [Event Date]: COUNTD(IF [event_name] = 'user_engagement' THEN [user_id] END)}
Tableau & GBQ yield the same numbers. However, I see different numbers in both Google Analytics & Firebase dashboards for 1-Day Active Users. I've gone through plenty of resources online but couldn't figure out why my numbers are way off than usual discrepancies due to timestamps and such.
I'm also fairly new to GA/Firebase and GBQ applications so I'm not quite sure what I've been doing wrong or if my interpretations are incorrect. Any thoughts would be a learning for me.
Thanks!