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