Events can be tracked using the pa.track()
JavaScript function.
The pa.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.
pa.track({name: 'Subscription'})
pa.track({name: 'Payment', value: 5, unit: 'USD'})