Setup
Subscribe to component events through theonEvent callback on <LayerProvider> and pass them to PostHog’s capture method:
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 PostHog.
See the UI events reference 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
- Funnels - where customers drop off in flows like account linking or transaction categorization