question

ansdlfwm03 avatar image
ansdlfwm03 asked

This is a question about using playfab queries.

We would like to use a playfab query to track users who have been logged in for more than 3 days to determine their last action. But I'm checking the query and I'm having a hard time finding its contents. Is there a way to use the Lapsed Players item in the player segment in a query?

Player Data
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

·
Made Wang avatar image
Made Wang answered

By default, the segment - Lapsed Players is only related to the time since the last login, which may not be able to achieve the function you want.

There is a workaround, you can follow the steps below to try it.

If the number of days is not continuous:

1. Login Days (statistics): Record the total number of days logged in.

2. In Automation->Rules->New Rule, Event type select com.playfab.player_logged_in, add Action to Login Days plus one.

3. Active Players (Segment): Login Days is greater than or equal to 3.

If the days are continuous:

1. Login Days (statistics): Record the number of consecutive login days.

2. Login Today (Segment): Last login was one day ago but within two days , when entering this segment, Login Days will increase by one.

3. Login Before Yesterday (Segment): Last login was two days ago, when entering this segment, Login Days is set to 1 (can be implemented using Azure Function).

4. Active Players (Segment): Login Days is greater than or equal to 3.

Note: Segments related to Last Login will only be processed at the next login. You can check the threads - Why Actions of Entered segment is not working when using "Last login". - Playfab Community, Call CloudScript on Segment entered event - Playfab Community for more information.

1 comment
10 |1200

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

ansdlfwm03 avatar image ansdlfwm03 commented ·

Thank you for a detailed description!

0 Likes 0 ·

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.