Events can be tracked using the wa.track()
JavaScript function.
The wa.track()
function accepts an object as the argument.
The object must contain a key named name
.
Additionally, value
and unit
keys can be included to be tracked.
wa.track({name: 'Subscription'})
wa.track({name: 'Payment', value: 5, unit: 'USD'})