Reporting events to Persoo
Easiest data collection implementation is to insert the Persoo javascript snippet and the data layer:
- Place Persoo JS Snippet to your page’s <head>
- Basic data (such as viewed URLs) are collected automatically by the javascript snippet.
- Set up Data Layer to contain data, to be automatically reported with the every ‘pageview’ event
- Advanced data (such as viewed product code) are reported by the data layer.
- If you already have Google Analytics enhanced eCommerce or similar detailed js object with data on the page, you can use such object and do only the field mapping in event preprocessing in Persoo.
Events can be reported in three ways
- by calling Javascript function
persoo()
from persoo client to report the event (requires snippet) - by pushing event to data layer variable (the recommended way, requires snippet)
- by calling directly REST API from your server