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: 'pardakht'})
pa.track({name: 'payment', value: 5, unit: 'USD'})