Track User Activity

Appkit provides support for tracking all interaction users have with the application, including which searches are made, which pages are visited, which results are clicked, and more. Events can be written to a log file or passed over to a vendor-specific analytics solution, such as Fusion Signals or Google ASR.

Activity processing

The activity tracking framework supports these endpoints for processing activity events:

Query Tracking

To track user-generated queries on your page, add a <track:query> tag with a reference to the query object that captures the user’s input:

<track:query query="${query}" path="/search" pageTitle="Search Page" />

Click Tracking

To track click events, wrap a <track:clicks> tag around any result list to be tracked:

<track:clicks query="${query}" type="People Results">
<search:resultList response="${response}">

URL tracking

To track visits to a static URL, wrap the address in your href as shown. Optionally, you can use the _type parameter to provide a click type: