> For the complete documentation index, see [llms.txt](https://docs.hello-lisa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hello-lisa.com/developers/analytics/adobe-appmeasurement/event-delivery.md).

# Event Delivery

### How events reach the bridge <a href="#how-events-reach-the-bridge" id="how-events-reach-the-bridge"></a>

LiSA emits each analytics event on the host page through any of:

1. **Global queue** — `window.lscAnalytics.push(event)`. The array may be created before the bridge loads (`window.lscAnalytics = window.lscAnalytics || []`); the bridge drains it on start and takes it over, so no early events are lost.
2. **DOM event** — `window.dispatchEvent(new CustomEvent('lsc:analytics', { detail: event }))`.
3. **postMessage** — for the LiSA Player iframe: `targetWindow.postMessage(event, targetOrigin)`, where `event` is the analytics event (or an envelope carrying it under `payload` / `event` / `detail` / `data`).

Every `event` is a JSON object matching the schemas in the Event Reference (its `eventType` starts with `lsc:`).
