Track an event with Persosa simply by calling:

persosa('event', <Event>, [, data])


The name of the event.


A JSON object of event properties to pass with the event. These may be used in segment conditions.


Track "Downloaded Ebook" event, passing the name of the ebook that was downloaded:

// Track "Downloaded Ebook" event, passing the title of the book
persosa('event', 'Downloaded Ebook', {
  title: 'How to make websites'

// Track "Newsletter Signup" event with no data
persosa('event', 'Newsletter Signup');

Did this answer your question?