Custom events

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.

Learn more about recording events in the browser.

Record events from a server

See how to record an event from a server.

Debugging events

See how to debug events.

Need extra help?

Chat with our support team now and we'll be happy to help you with any issues