> ## Documentation Index
> Fetch the complete documentation index at: https://docs.layerfi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pendo

> Send usage events from Layer's embedded components to Pendo.

Track how your customers use Layer's embedded accounting features in [Pendo](https://www.pendo.io/), alongside the rest of your product analytics. Layer's React components emit [UI events](/embedded-components/ui-events) as users interact with them, and you can forward those events to Pendo from a single callback.

## Setup

Subscribe to component events through the `onEvent` callback on `<LayerProvider>` and pass them to Pendo's `track` method:

```tsx theme={null}
import { LayerProvider } from "@layerfi/components";

<LayerProvider
  businessId="<layer_business_id>"
  businessAccessToken="<access_token>"
  eventCallbacks={{
    onEvent: (event) => {
      window.pendo?.track(`layer.${event.type}`, {
        ...event.payload,
        component: event.metadata.component,
      });
    },
  }}
>
  {...}
</LayerProvider>
```

Every event includes a `type`, a typed `payload`, and metadata identifying the component it came from. Prefixing the event name (for example `layer.tasks.month_selected`) keeps Layer activity easy to filter in Pendo.

See the [UI events reference](/embedded-components/ui-events) for the full catalog of events and their payloads.

## What to measure

* **Adoption** - which businesses open accounting features, and which components they use
* **Engagement** - how often customers review transactions, run reports, or complete tasks
* **Guides** - target Pendo in-app guides at customers who haven't tried accounting features yet
