01 Sep 2023 12:12 PM - last edited on 04 Sep 2023 07:36 AM by MaciejNeumann
Hi,
I would like to get the number of unique users of monitored application by API?
I have made a USQL:
SELECT count(DISTINCT ip) FROM usersession WHERE userType IS "REAL_USER" AND newUser = true
but unfortunately the option with IP address as unique element is not supported to create custom metrics (and it makes sense).
Does anyone have any ideas?
Regards,
Radek
01 Sep 2023 06:23 PM
You can get user ids distinct (set persistent cookies to reduce generation default user tags, if you can define User tag with email/user id from you system - it will more reliable)
04 Sep 2023 11:35 AM
Hi @Viachaslau
I'm going to try this, but I think it's not a good option because I don't collect all user IDs because many users use adblock plugins in their browsers, etc.
Radek
31 Oct 2023 09:44 AM
Hey @radek_jasinski , did you manage to find a solution to your problem? If no, let us know, and we'll seek further assistance. If yes - would you like to share it with the Community maybe? 🙂