Track events
To track events simply call the alceris
function in your JavaScript code, which is available after you integrate the tracking script.
Track simple events
To track simple events which are only defined by a string you just need to call the alceris
function with the event parameter and the string which should be tracked.
In the following example a button click is tracked.
alceris('event', 'Login button clicked');
Send custom data
Alceris Analytics also support custom data which can be attached to an event. This can be used to send more fine grained events.
alceris('event', 'Click menu item', { name: 'Login', anotherValue: 42 })