question

evgenynegin avatar image
evgenynegin asked

Make a segment of users who logged in 3 times in past month?

Hello. We need to gather a data of active players. The criteria is: they logged in at least 3 times during past month.

We going to run a cloud script against them to collect some data and know our audience.

As far as we know - only Last login/ First login is present in segment filters.

Any other way to get the result we need.

Thank you in advance.

Player DataCloudScript
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

There's no simple way to track that, since it requires a rolling window calculation. You could track on the user's last N sign-ins (possibly in an "OnLogin" handler in your Cloud Script), so that you can recalculate the number of sign-ins in the last month in a statistic, but you'd need to then also have a Segment of users with that statistic at your target value or higher, but who also haven't signed in for a day. You could then set up a Scheduled Task to process that segment once a day, to look for folks who should have their statistic decremented, removing them from both segments.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.