To target users whose bundles, subscriptions, or packages expire in a specific number of days, create a segment using two custom tags. One tag identifies the subscription, and the other tracks the expiration date.
Configure the tags
You need two tags to track expiration:
- Subscription identifier (integer or string): This stores the subscription or bundle ID, such as
bundle_id. - Expiration date (date): This stores the exact expiration date, such as
expiry_date. Format the date values as "YYYY-MM-DD HH:mm" in UTC.
Send tag data to Pushwoosh
You can update these tags using one of two methods:
- Mobile SDK: Call the
setTagsmethod in your mobile app code to send tag values directly from the user's device. - Server-to-server API: Use the
/setTagsAPI endpoint from your backend to update tags using theuserIdmapping. This method does not require an app store update.
Create the segment
After the tags receive data, go to the Pushwoosh Control Panel to create a segment with your criteria. For example, to target users whose bundle expires in exactly 3 days:
bundle_idequals[Your_Bundle_ID]andexpiry_dateis in 3 days.
You can then target this segment with daily automated campaigns.
Comments
0 comments
Please sign in to leave a comment.