30 Aug 2021 12:12 PM - last edited on 31 Aug 2022 10:44 AM by MaciejNeumann
Hi All,
I'm having difficulty in getting the exact query to get the exact count of user action. E.g (Login count).
Compared it to the available custom chart but it doesn't match.
Custom chart metrics:
Mobile app key user action Action count (by key user action, OS, Apdex category) [mobile, custom] (Sum)
Here is the usql.
SELECT count(*) as [Login] FROM usersession WHERE useraction.application='My App' AND useraction.name IN ('Log in')
Solved! Go to Solution.
30 Aug 2021 01:25 PM - edited 30 Aug 2021 01:26 PM
Have you tried setting older timeframe (f.e. -2h to -1h) ? USQL provides data only for finished (non live) sessions.
30 Aug 2021 02:31 PM
Yes rastislav_danis tried it but it doesn't match. It might be USQL only deals with the non bouncing session? and custom chart catch it all?
31 Aug 2021 07:34 AM
you can try to focus on non bounced sessions with condition "where usersession.bounce IS false"
31 Aug 2021 08:06 AM
ok now i see, you are counting sessions (count(*) FROM usersession), where your action is present (maybe more than once), try to change it this way to count every action (not session):
SELECT count(*) as [Login] FROM useraction WHERE application='My App' AND name IN ('Log in')
01 Sep 2021 12:41 PM
rastislav_danis already tried the query above but still count is not equal. Appreciate the response. 😊
02 Sep 2021 07:32 AM
Yes i also found that results are not matching. I'm not 100% sure on how mentioned metric is calculated, so it's hard to compare.
19 Feb 2022 02:00 PM
@JhonKenneth
Even I am facing same issue. Were you able to find any solution?
Thanks,
Anish