Getting User Feedback


Site Search offers a special widget that you can optionally install on your application search page to encourage visitors to leave feedback about the search experience. It looks like this:

When a user fills out this form, the input is added to the App database for examination in the Site Search UI by the Business User. 

To include this widget in your search page, begin by including this script in the header of the page:

var _msq = _msq || []; //declare object
(function() { 
var ms = document.createElement('script'); 
ms.type = 'text/javascript'; 
ms.src = 'https://static.searchstax.com/studio-js/js/studio-analytics.js'; 
var s = document.getElementsByTagName('script')[0]; 
s.parentNode.insertBefore(ms, s); 
})();

Then insert a DIV element where you want to offer the user a link to the feedback widget:

<div id="sf-feedback"></div>

Finally, add a snippet to link the DIV to the Search Feedback Survey form. 

(function (w,d,s,o,f) {w['sf-widget']=o;w[o] = w[o] || function () {(w[o].q = w[o].q || []).push(arguments)};
js = d.createElement(s);fjs = d.getElementsByTagName(s)[0];js.src = f;js.async = 1;fjs.parentNode.insertBefore(js, fjs);}
(window, document, 'script', '_sf', ' https://static.searchstax.com/studio-js/js/studio-feedback.js'));
_sf('HDE23PNULGadYILZ6rPq6UY3GeVDMnAW2OcdD3U');

Note that the _sf parameter in the final line is the App’s Analytics Key. You must substitute the key that identifies your Site Search App.