coveo.analytics
Coveo's usage analytics javascript client
Usage
You have to provide your own promise and fetch api compatible libraries
npm install
Contributing
git clone
npm install
./node_modules/.bin/typings install
npm run tsc
npm run webpack
Web Analytics Usage
<script>
(function(k,r,y,p,t,o,n){
n='coveoua';k[n]=k[n]||function(){(k[n].q=k[n].q|| []).push(arguments)};
k[n].t=Date.now();o=r.createElement(y);o.async=1;o.src=p;
t=r.getElementsByTagName(y)[0];t.parentNode.insertBefore(o,t)
})(window,document,'script','https://static.cloud.coveo.com/coveo.analytics.js/latest/coveo.analytics.js')
coveoua('init','YOUR-TOKEN');
coveoua('send','pageView');
</script>
License
MIT license; see LICENSE.