Add this line to your pages, with the site key from your Analytics dashboard:
<script defer src="https://analytics.infopeak.io/ipk.js" data-site="YOUR_SITE_KEY"></script>
Page views are counted automatically, also in single-page apps. If your site has a Content Security Policy, allow https://analytics.infopeak.io in script-src and connect-src.
Events, search tracking and the full reference are at infopeak.io/analytics/developers.