Digital Experience Analytics
3. Event Definitions
Event definitions are the foundation of DXA analyses. They name and filter user interactions — clicks, navigation, errors, and custom events — so we can track the same behavior consistently across funnels, time series, and segments.
See Create and manage event definitions for full details.
Event categories #
DXA recognizes four event categories:
| Category | Examples |
|---|---|
| Interaction | Click, tap, rage click |
| Navigation | Route change, document load, screen name change |
| Error | JavaScript error, application crash |
| Custom | User-defined events from our application |
Filter templates #
Event definitions use filter templates to match real user actions:
- Click on element — matches
clickevents bytarget_xpath - Click on text — matches
clickevents bytarget_text(for example, “Show All Reviews”) - Visited URL — matches navigation events by
url.full - Custom — matches any ingested event name
The element picker lets product teams define click events by selecting elements directly on a live page — no code changes required. We will explore pre-built definitions in this exercise, with an option to create new Event Definitions in the Bonus Activity at the end of the workshop.

- In the Astronomy Shop DXA project, select the Event Definitions tab.
- Review the list of pre-built definitions. Look for events related to:
- Ask AI interactions and quick prompts
- Checkout steps (homepage, product page, cart, place order, order confirmation)
- Select one definition and review its filter criteria — note how event category and tags define what counts as that event.
- Check the Occurrences preview to see matching events from real workshop sessions.
Quick check
Your marketing team launches a newsletter signup campaign. What event definition would you create, and which filter template would you likely use?
These event definitions power the analyses we will explore next — starting with feature adoption.
