In response to popular demand, and the many requests from our customers for the ability to pass widget usage statistics to their own analytics dashboards such as Google Analytics, Tableau, etc., we are very happy to announce that this is now possible.
UserWay makes the following widget statistics available:
- Widget Open + {Page URL}
- Accessibility Profile Selected
- Accessibility Feature Enabled
You just need to set a PostMessage listener to be able to receive the events.
UserWay's widget sends PostMessage events with the following event payloads:
Widget opened:
{
"event": "customEvent",
"eventCategory": "userway",
"eventAction": "widget open",
"eventLabel": `${PAGE_URL}`
}
Accessibility Profile Selected:
{
"event": "customEvent",
"eventCategory": "userway",
"eventAction": "profile selection",
"eventLabel": `${PROFILE_NAME}`
}
Accessibility Feature Enabled:
{
"event": "customEvent",
"eventCategory": "userway",
"eventAction": "ability enablement",
"eventLabel": `${FEATURE_NAME}`
}
The target pages must set the PostMessage listener to be able to receive these events:
window.addEventListener('message', function (event) {
if (event.data.eventCategory === 'userway') {
// Custom logic
}
})