Apisearch Interactions (asi)
This library is part of the Apisearch project.
The _asi
(Apisearch interactions) is a javascript library to track any
user interaction that you consider as important action to train the
Apisearch brain. This will be useful to give a more useful and interesting results
on your customer's searches.
Installation
npm && yarn
npm i apisearch-interactions --save// oryarn add apisearch-interactions
html <script>
You can either download the library and use a relative path to your assets folder, or use a CDN like jsDelivr.
Usage
You can capture any DOM event and trigger the interaction.
Click me!
The last parameter
10
refers to the interaction weight. The bigger the number, the greater the importance of the interaction.