Developers can record custom events in Silktide Analytics. These are useful for tracking user behaviour that isn’t easily apparent from the URLs visited, such as clicking on the “Add to basket” button, or completing a purchase.
Recording events in JavaScript
To record an event in your browser, simply use the following JavaScript:
silktide('event_name');
Replacing event_name
with the name of your event. You can use any string you like, so long as:
It doesn’t overlap with a built-in event name
It isn’t longer than 32 characters
Bear in mind the event name will appear in your analytics results, so we recommend you choose something reasonably intelligible.
Learn more about recording events in the browser.
Record events from a server
Debugging events
See how to debug events.