If you build your own search user interface using the AddSearch Search API, the following data is sent to AddSearch Analytics backend automatically:
We provide a JavaScript function to save the search results clicks information. Add the following JavaScript to your search results page’s HTML template:
<script src="https://app.addsearch.com/www/script/searchapi/stats.js"> </script>
After you have added the script element, call the following JavaScript function to send the click to the AddSearch analytics server:
addsearchStats.click( sitekey, keyword, clickedDocId, positionOfClickedDoc );
Function’s parameters are
When the addsearchStats.click function is invoked, the data of results clicks is used to improve your search results by our self-learning algorithm.