This page covers the browser events you dispatch. For lifecycle events emitted
by Webless itself, see Listen to Webless analytics events.
Install the widget
Add the Webless widget script to your site. Webless will provide the production script URL for your account.Open the search popup
Dispatch thewebless-search event whenever a user clicks a custom button,
link, or CTA.
Send custom tracking events
Dispatch thewebless-event custom event when you want to send additional
tracking context into Webless analytics.
Event payload
| Field | Required | Description |
|---|---|---|
event_type | Yes | A short identifier for the event |
page | No | The current page path |
query | No | The active search query |
metadata | No | Any additional structured details |
