Skip to main content
Custom events
Jessica Chambers avatar
Written by Jessica Chambers
Updated over a week ago

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:


Replacing event_name with the name of your event. You can use any string you like, so long as:

Bear in mind the event name will appear in your analytics results, so we recommend you choose something reasonably intelligible.

Record events from a server

Debugging events

Did this answer your question?