Star us on GitHub
Star
Menu

Event Search

Event search lets you create metrics and alerts based on events within your sessions. While session search helps you find sessions containing specific events, event search dives deeper by analyzing the attributes passed with each event and counting occurrences, even if they happen multiple times in a session. You can filter events using a search query. For example, you can get Click events produced in the last 15 minutes service by selecting "Last 15 minutes" from the time picker and entering the following query:

event=Click
Copy

We also offer autocompletion to help you discover events and their attributes, as discussed below.

Searching for Events

For general information on searching events, check out our Search docs.

Default Key

The default key for trace search is event. If you enter an expression without a key (Navigate) it will be used as the key for the expression (event=*Navigate*).

Searchable Attributes

You can search on any attributes that you send in your events as well as any of the default attributes assigned to a event.

Below is a table showing the autoinjected attributes for events:

AttributeDescriptionExample
browser_nameBrowser the user was onChrome
browser_versionBrowser version the user was on124.0.0.0
cityCity the user was inSan Francisco
countryCountry the user was inGreece
environmentThe environment specified in the SDKproduction
eventName of the event that occurredSessionsPageLoaded
first_sessionIf its the user's first sessionfalse
identifiedIf the session successfully identified the userfalse
identifierThe idenifier passed to H.init1
ipThe IP address of the user127.0.0.1
service_versionVersion of the service specified in the SDKe1845285cb360410aee05c61dd0cc57f85afe6da
session_active_lengthTime the user session was active in milliseconds10m
session_lengthThe total length of the user session10m
session_pages_visitedThe number of pages visited in the session10
os_nameThe user's operating systemMac OS X
os_versionThe user's operating system version10.15.7
secure_session_idId of the session the event occurred ine1845285cb360410aee05c61dd0cc57f85afe6da
stateState the user was inVirginia

You can view a full list of the available attributes to filter on by starting to type in the search box. As you type you'll get suggestions for keys to filter on.

Special Events

The Highlight SDK records a few events by default: Click and Navigate events, both of which have some attributes associated with them. The event search form helps navigate these attributes with additional inputs, but all can be used directly in the search query.

Click Events

Click Events are triggered by mouse-down actions, even on non-clickable elements (like headers or white space). Click events have 3 main attributes associated with it:

  • clickTextContent: The text of the content that was clicked.
  • clickTarget: The HTML element that was clicked.
  • clickSelector: The full HTML path to the clicked element.

Navigate events are triggered by URL changes, including reloads. Navigate event attributes are URLs, and key types include:

  • exit_page: The user ended the session on this url.
  • landing_page: The user landed on this url.
  • reload: The user reloaded the page on this url.
  • url: The user navigated to this url.
Helpful Tips
Digging Deeper into Events

If you want to get the number of unique sessions, edit the function to CountDistinct by secure_session_id. If you would like the number of unique users, use CountDistinct with the identifier attribute.

Funnels

Event search also allows you to view relations of events in the form of funnels. Select the Funnel Chart view type to start seeing how many sessions include multiple events in steps.