Overview
Custom events allow you to track user interactions beyond pageviews. Query event data, analyze event properties, and understand user behavior patterns.Query Types
Custom Events
Get an overview of all custom events tracked on your website. Query Type:custom_events
The event name (e.g.,
button_click, form_submit).Total number of times this event was triggered.
Number of unique users who triggered this event.
Number of unique sessions containing this event.
Timestamp of the first occurrence of this event.
Timestamp of the most recent occurrence.
Number of events that include custom properties.
Percentage of unique users relative to total.
Custom Event Properties
Analyze properties attached to custom events to understand event context. Query Type:custom_event_properties
The event name.
The property key name.
The property value.
Number of events with this property value.
Events by Path
See which pages generate the most custom events. Query Type:custom_events_by_path
The page path where events occurred.
Total events on this page.
Number of different event types triggered on this page.
Unique users who triggered events on this page.
Events Trends
Track event volume over time to identify patterns. Query Type:custom_events_trends
Date of the data point (YYYY-MM-DD).
Total events on this date.
Number of different event types.
Unique users who triggered events.
Unique sessions with events.
Number of different pages with events.
Events Summary
Get aggregate statistics for all events in a date range. Query Type:custom_events_summary
Total event count.
Number of different event types.
Users who triggered events.
Sessions containing events.
Pages with events.
Recent Events
View the most recent custom events with full details. Query Type:custom_events_recent
Name of the event.
Event namespace for grouping.
Page path where event occurred.
Event source (e.g.,
web, mobile).JSON string of event properties.
Anonymous user identifier.
Session identifier.
Event timestamp.
Events Discovery
Comprehensive query that returns events with their properties and top values in a single request. Query Type:custom_events_discovery
Name of the event.
Total event count.
Unique users.
Unique sessions.
Property key name (null if no properties).
Number of unique values for this property.
Array of tuples containing top 5 property values and their counts.
Filters
Event queries support these filters:Filter by event namespace.
Filter by specific website (for organization-level queries).
Filter by user ID.
Filter by session ID.
Filter by event name.
Filter by event source.
Filter by page path.
Filter by property key name (for property queries).
Advanced Property Analysis
Analyze event property cardinality and classification: Property Cardinality (custom_events_property_cardinality):
custom_events_property_top_values):
custom_events_property_distribution):
Notes
- Custom events are stored separately from pageview events
- Events can include arbitrary JSON properties for rich context
- Property queries automatically extract and analyze JSON property keys and values
- Event properties support filtering by both the property key and value
- The discovery query is optimized for exploring your event schema