Configuring Google Analytics Tracking
Once you have enabled Google Analytics, you can track the following:
All UI Pages (this can be turned on/off, ON by default)
Home
Search
Portal
Processing
Details
Page view
Unique Page views
Time on Page
Entrances
Bounce Rate
Sessions
Custom Events listed in the following table:
Event | Category | Label | Value |
Search | Time | SolrQuery | Total Seconds |
Search | Size | SolrQuery | Results Size |
Search Group | Group Name | SolrQuery | N/A |
Download | Results | Format | N/A |
OpenWith | Results | URL | N/A |
Add To List (Queue) | Results | Card | N/A |
Remove From List (Queue) | Results | Card | N/A |
Add To List (Queue) | Results | Table | N/A |
Remove From List (Queue) | Results | Table | N/A |
Saved-Search | Save | N/A | N/A |
Saved-Search | Run | N/A | N/A |
Saved-Search | Delete | N/A | N/A |
Add To Map | Results | Format | Â |
Add To Map | Error | Format | Â |
Process | Task Type | State (Success/Fail) | Â |
Error (all ajax errors) | HTTP | URL | HTTP Status |
User Tracking
Upon login, the username is sent to Google Analytics. If the username contains any personally identifiable info (user's actual name, email, etc.), Google Analytics doesn't allow capturing it.
Reporting
Google Analytics offers a flexible query and reporting solution. You can filter by any field above or any combination of fields. Â For example:
Search Events by Time
Search Events by Size
Search Events by Time within N seconds
Search Events by Size within N result count
Downloads of a certain Format
Number of Saved Searches performed
Number of Tasks Run by Type
Number of Tasks Run by Type and Success/Failure
Setting up analytics for Site SearchesÂ
Google Analytics Site Search must be set up for each reporting view in which you want to see user search activity. To set up Site Search for a view:
Sign in to your Google Analytics account.
Navigate to a view in which you want to set up Site Search.
Click View Settings.
Under Site Search Settings, set Site Search Tracking to ON.
In the Query Parameter field, enter the word or words, maximum of 5, that you'd like to designate a query parameter. Below is a list of example parameters you can use.Â
Example Query Parameters:
Text Query | q |
Spatial Constraint | bbox |
Placefinder | place |
View (Card, List, Map, etc.) | view |
Display | disp |
Any facet* | f.{facet_name} |
*Note: Facets are essentially the fields in your index. You can use any field as a query parameter in your analytics.