To track specific interactions like star ratings or text feedback within an in-app message, you must trigger custom events using JavaScript in your custom HTML layout.
Send custom event data
Use the postEvent method to send data to the platform. For example, if you want to record a rating and a review, use a script like this:
pushwoosh.postEvent('RatingSubmitted', { rating: 5, reviewText: 'Very helpful' })
These custom event calls do not change the standard interaction count in rich media statistics. This data is recorded separately under the events section.
View and collect the data
You can access this information through exports or visual charts.
Export detailed event data
Use this method to see text-based feedback or to get a full list of responses in a spreadsheet.
- Go to the audience tab and select events.
- Find your event, such as RatingSubmitted.
- Click the menu on the right and select event statistics.
- Pick the date range you need.
- Click export users list.
The resulting CSV file contains the user details and the specific data they submitted, including the full text of their reviews.
Create a dashboard chart
Use this method to see a visual breakdown of numbers, such as how many people chose each star rating.
- Go to statistics and select dashboards.
- Create a new chart.
- Set your custom event as the source.
- Pick the attributes you want to see on the chart.
Comments
0 comments
Please sign in to leave a comment.