Customize Events
Sometimes you may want to customize how Logspot tracks events. You can achieve that by using the event mapper.
You can pass a callback function which will be executed before sending the event to the API.
eventMapper
callback can be asynchronous e.g.:
Event payload
Limitations
There are two requirements:
name
is a required fieldscreen
needs to be in formatnumberxnumber
e.g.1240x1200
location
, browser
and os
cannot be overriden yet.