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 periodically and does not provide a historical view of how the count has changed over time.
If you need to track the size of a Tag-based audience over a period, collect the numbers yourself on a schedule using the Segmentation Filters API.
Here is the recommended approach:
- Set up a recurring task on your backend server (e.g., a daily cron job).
- Call the
/exportSegmentmethod with afilterExpressiondescribing the audience you want to track (for example, all users whoseemail_opt_inTag has a specific value). This call only schedules the job — the response contains atask_id, not a count. - Poll
/exportSegment/resultwith thattask_id. Oncestatusiscompleted, the response containsdevicesCount(the number of matching subscribers) together withfilename, a link to the exported data. - If you need only the number and not the data file, pass
"generateExport": falsein the/exportSegmentrequest. - Store the date and the count in your own database.
By collecting this data daily, you can build your own historical charts to visualize how the size of your audience changes over time.
Full parameter reference: Segmentation Filters API.
Comments
0 comments
Please sign in to leave a comment.