Getting started
REST API (BETA)
Webhooks (BETA)
Event Types
Triggers when an event from session is handled. Currently supported events are:
- JSError
- NetError
- ErrorClick
- RageClick
- Custom
session.event
JSError
Triggers when a JS error is handled.
{"message_id": "d5932de4-a8da-4546-4439-3c640ba8dc05","webhook_id": "542de45","webhook_type": "session.event","api_version": "v1.0","account_id": "3ca3b1b","website_id": "8d53ea3","created_at": 1691161881,"payload": {"visitor": {"id": "e4d5932d-4439-4546-a8da-a8d40bc053c6","name": "John Doe","email": "john.doe@livesession.io","params": [{"name": "plan","value": "pro"}],"geolocation": {"country_code": "PL","city": "Wroclaw","region": "Dolnoslaskie"}},"event_name": "JSError","time": 16911618810,"count": 1,"value": "ProductCatalog: product is not valid"}}
NetError
Triggers when a network request error is handled.
{"message_id": "d5932de4-a8da-4546-4439-3c640ba8dc05","webhook_id": "542de45","webhook_type": "session.event","api_version": "v1.0","account_id": "3ca3b1b","website_id": "8d53ea3","created_at": 1691161881,"payload": {"visitor": {"id": "e4d5932d-4439-4546-a8da-a8d40bc053c6","name": "John Doe","email": "john.doe@livesession.io","params": [{"name": "plan","value": "pro"}],"geolocation": {"country_code": "PL","city": "Wroclaw","region": "Dolnoslaskie"}},"event_name": "NetError","time": 16911618810,"method": "GET","url": "https://api.livesession.io/products/1","status": 500}}
ErrorClick
Triggers when a error click is handled.
{"message_id": "d5932de4-a8da-4546-4439-3c640ba8dc05","webhook_id": "542de45","webhook_type": "session.event","api_version": "v1.0","account_id": "3ca3b1b","website_id": "8d53ea3","created_at": 1691161881,"payload": {"visitor": {"id": "e4d5932d-4439-4546-a8da-a8d40bc053c6","name": "John Doe","email": "john.doe@livesession.io","params": [{"name": "plan","value": "pro"}],"geolocation": {"country_code": "PL","city": "Wroclaw","region": "Dolnoslaskie"}},"event_name": "ErrorClick","time": 16911618810,"messsage": "product is not defined"}}
RageClick
Triggers when a rage click is handled.
{"message_id": "d5932de4-a8da-4546-4439-3c640ba8dc05","webhook_id": "542de45","webhook_type": "session.event","api_version": "v1.0","account_id": "3ca3b1b","website_id": "8d53ea3","created_at": 1691161881,"payload": {"visitor": {"id": "e4d5932d-4439-4546-a8da-a8d40bc053c6","name": "John Doe","email": "john.doe@livesession.io","params": [{"name": "plan","value": "pro"}],"geolocation": {"country_code": "PL","city": "Wroclaw","region": "Dolnoslaskie"}},"event_name": "RageClick","time": 16911618810,"clicks": 5}}
Custom
Triggers when a custom event is handled.
These events are made during recording through the __ls(“track”)
Browser API function.
The payload includes event specifics and potential validation errors for added properties.
The properties field is a map with varying value types. Value type depends on the property key. For instance, "_str" suffixed keys hold string values and "_bool" suffixed keys contain boolean values. Additional details are available in the knowledge base.
{"message_id": "d5932de4-a8da-4546-4439-3c640ba8dc05","webhook_id": "542de45","webhook_type": "session.event","api_version": "v1.0","account_id": "3ca3b1b","website_id": "8d53ea3","created_at": 1691161881,"payload": {"visitor": {"id": "e4d5932d-4439-4546-a8da-a8d40bc053c6","name": "John Doe","email": "john.doe@livesession.io","params": [{"name": "plan","value": "pro"}],"geolocation": {"country_code": "PL","city": "Wroclaw","region": "Dolnoslaskie"}},"event_name": "Custom","time": 16911618810,"name": "Product added","properties": {"product_id_int": 1,"product_name_str": "Product 1"}}}