By default, Pushwoosh records the 'Last Application Open' time with hour-level precision, and the segment builder using this default tag only allows filtering by days (e.g., 'Last Application Open was less than 1 day ago'). Segmentation based on the PW_ApplicationOpen
event also requires a minimum time window of 1 day.
To segment users based on more precise timing, such as the last 15 minutes, you can implement the following workaround using a custom Tag:
- Create a Custom Tag: In your Pushwoosh Control Panel, create a new Tag with the type
DATE
. Give it a descriptive name, for example,LastOpenTimestamp
. - Update Tag from App: Modify your application's code. Using the Pushwoosh SDK's
setTags
method, update the value of your custom Tag (LastOpenTimestamp
) with the current timestamp (including hours and minutes) every time the user opens the application.- Note: This requires development effort to integrate into your app's lifecycle events.
- Create Segment: Now you can create a dynamic segment using this custom Tag. Set the condition to filter users where
LastOpenTimestamp
is within your desired recent timeframe.- For example, using the API or advanced segment builder features, you could filter for
LastOpenTimestamp
greater than or equal to the timestamp from 15 minutes ago (YYYY-MM-DD HH:MM:SS
).
- For example, using the API or advanced segment builder features, you could filter for
This method allows you to achieve minute-level granularity for segmenting users based on their last application open time.
Comments
0 comments
Please sign in to leave a comment.