Enabling Search Analytics - SearchStax


SearchStax® Analytics from Measured Search® provides the insights you need to make your search experience better for your customers.

SearchStax Analytics takes a holistic approach to measuring the effectiveness of your search. Analytics capabilities provided by most search vendors give you only low-level reports as they don't have control over the application level. We keep you close to your users by reporting click-through rate, bounces, etc., that others don't. This lets you measure relevance and ranking changes effectively.


There are multiple pages of analytics displays, accessible through the Analytics menu on the left side of the SearchStax dashboard.

For more information, see:
Dashboard
Usage
Relevance
Performance
Insights

Analytics Architecture

The SearchStax Analytics feature is simple to implement.

  1. Your application's search page already handles queries and responses.
  2. SearchStax provides a javascript library to add to your page. This is a copy-and-paste step.
  3. The library contains a function that issues five different types of event messages through HTTP.
  4. The event messages are collated by a SearchStax Analytics App.
  5. The Analytics App automatically serves several pages of graphs and tables describing how users relate to your search results.

SearchStax Analytics Architecture

Javascript Library

Your search page reports events through a javascript function on the web page.

Paste the following script before the ending body tag in your search pages. The script loads a javascript function, _msq.push(), that sends HTML event messages to your SearchStax Analytics App.

<script type="text/javascript"> 
var _msq = _msq || []; //declare object

(function() { var ms = document.createElement('script'); ms.type = 'text/javascript'; ms.src = 'https://static.searchstax.com/js/ms2.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ms, s); })(); 
</script>

Events

An "event" is a user action on your search page. The most-common event would be a mouse-click on a link or button. SearchStax supports the following tracking events:

Event Properties

An event message is a wrapper for a list of property-value pairs. The values are the data that SearchStax tracks and analyzes. For instance, this is an event URL describing a user query:

https://searchstax.measuredsearch.com/api/v2/track/?data=eyJldmVudCI6Il9zZWFyY2
giLCJwcm9wZXJ0aWVzIjp7ImtleSI6IjlyN3dSbnN2QUFyMHltZnNkOVZDSWI2eWtyd0Z0QURySVllT
0E4UUZJRGciLCJxdWVyeSI6ImZvbyIsInNob3duSGl0cyI6MSwidG90YWxIaXRzIjoxLCJwYWdlTm8i
OjEsImxhdGVuY3kiOjUyMiwiX3ZpZCI6ImZiZjIwZWY3LWU1Y2YtMzcyOC1mMTZiLTk2NjNlZWU3NjU
0MyIsInR0IjoxNTAzOTM5MDkxMTg5LCJwYWdlVXJsIjoiaHR0cCUzQSUyRiUyRjk3MjUzMTg5Lm5ncm
9rLmlvJTJGZW4lMkZzZWFyY2gtcmVzdWx0cy5waHAlM0ZpZSUzRFVURi04JTI2cSUzRGZvbyJ9fQ==

The data contains the properties of the event expressed as a JSON document. The data has been base64 encoded to protect URL values from character-encoding transformations as the message crosses the Internet. Decoded, the data says:

{"event":"_search","properties":
    {"key":"9r7wRnsvAAr0ymfsd9VCIb6ykrwFtADrIYeOA8QFIDg",
    "query":"test",
    "shownHits":10,
    "totalHits":573,
    "pageNo":1,
    "latency":2809,
    "pageUrl":"http%3A%2F%2F97253189.test.io%2Fen%2Fsearch-results.php%3Fie%3DUTF-8%26q%3Dtest"}}

This event reports that the user searched for "test". The search engine got 573 hits, of which it returned 10 in the first page. This required 2.8 seconds.

Each type of event has its own set of required properties. See Analytics Events and Properties.

Analytics Apps

An Analytics App is a dedicated listener that accumulates HTML event messages from your search pages. It then analyzes the events and displays a variety of analytic tables and graphs.

As a SearchStax admin, you can create as many Analytics Apps as you need. You provide a name for the app and SearchStax does the rest. See Analytics Apps for more information.

View Analytics Reports

There are several web pages of analytics graphs and tables. For instance, each App's dashboard included this chart of search metrics: Searches, Clicks, Revenue, and Searches per Session.

Screenshot

At the bottom of this dashboard there are three columns that summarize Top Searches, Top No-Result Searches, and Top Clicked Items. Each item appears as an absolute number and as a percentage of the total.

Screenshot

There are multiple pages of analytics displays, accessible through the Analytics menu on the left side of the SearchStax dashboard.

For more information, see:
Dashboard
Usage
Relevance
Performance
Insights