The Tag statistics in your Pushwoosh dashboard show the current total number of devices or users that have a specific Tag. This data is recalculated once per day and does not provide a historical view of how the count has changed over time.
If you need to track the size of a user segment based on a Tag over a period, you can do so by periodically exporting this data using our API.
Here is the recommended approach:
- Set up a recurring task on your backend server (e.g., a daily cron job).
- In this task, make an API call to the
/exportSegmentmethod. - Define the segment in your API request using the Tag you want to track. For example, you can create a segment for all users where an "emailoptin" Tag has a specific value.
- The API response can provide the total count of users in that segment.
- Store the date and the user count in your own database.
By collecting this data daily, you can build your own historical charts to visualize how the size of your user segment changes over time.
Comments
0 comments
Please sign in to leave a comment.