Mobile apps: where are they in the website?

Great point, thanks @StefanoCecere! We should definitely improve the visibility of our mobile apps on the website.

@rishabh can you drive this, please?

We don’t have a report yet, but you can get this info using Data Explorer. This query will give you a list of authenticated users using the mobile app:

-- [params]
-- date :start_date = 2024-11-30
-- date :end_date = 2024-12-26

WITH hub_visits AS (
  SELECT 
    user_id,
    MIN(created_at) as first_visit,
    MAX(created_at) as last_visit,
    COUNT(*) as total_visits
  FROM user_auth_token_logs
  WHERE user_agent LIKE '%DiscourseHub%'
    AND created_at BETWEEN :start_date AND :end_date
  GROUP BY user_id
)
SELECT 
  hv.user_id,
  u.username,
  hv.first_visit,
  hv.last_visit,
  hv.total_visits
FROM hub_visits hv
JOIN users u ON u.id = hv.user_id
ORDER BY hv.last_visit DESC

6 Likes