Size Adviser Events Registration
If you wish to register Usizy *click and recommendation * events for your analytics tool such as Google Analytics, please include this function on your product pages as illustrated below.
The Click event signals that a visitor has clicked on Size Adviser and has initiated the size recommendation process.
The Recommendation event signals that a user has completed the recommendation process and has received a size recommendation.
Script example
SIZE ADVISER EVENTS REGISTRATION EXAMPLE
The following code should be included on your product pages to register an event
Please add your own functions to this script depending on your requirements
<script src="https://static.usizy.es/js/platform.min.js"></script>
<script>
function receiveMessage(event) {
if (event.data.subject && event.data.subject === 'EVENT_CLICK') {
ga('send', 'event', 'uSizy', 'click')
} else if (event.data.subject && event.data.subject === 'EVENT_RECOMMENDATION') {
ga('send', 'event', 'uSizy', 'recommendation')
}
}
window.addEventListener("message", receiveMessage, false)
</script>