Google Search Appliance Analytics Integration Guide User Manual
Page 12

12
Within these four categories, you can create several possible actions within those categories, as
illustrated in the following table.
Category
Actions
Search Page
Advanced Search Link Click
Google News Link Click
Refinement
Spelling Suggestion Click
Cluster Label Click
Synonym Click
Results
First Search Result Click
Search Result Click
Cached Result Click
OneBox Result Click
Database Result Click
Navigation
Next Results Page Click
Previous Results Page Click
Custom variables
If you would like to include more aspects of search in your analytics, you can us
can insert a snippet into the stylesheet in order to track various metrics on the visitor, session, and page
level with GA. By using the Custom Variable snippets included in the front end template and snippets.xsl
file, you can track collection choice, page loads, dynamic navigation use, and zero results.
Event tracking and custom variables are implemented with JavaScript tracking code on the search results
page. This can be done by modifying the default XSLT yourself, using our example ga_template.xsl, or if
you’re using the GSA’s XML protocol, you would modify your webapp to include the additional tracking
code.
Event tracking and custom variable code
Events are typically used to track clicks. Any click on the results page can be tracked by adding an
onclick event:
=" _gaq.push(['_trackEvent', ‘Dynamic Navigation Use’, ‘Category’, 'Books']); ">