Get Started
Install the SDK to start capturing user behavior.
No-code Installation Wizard Beta
Try our no-code installation wizard to automatically detect your framework install the SDK for you.
npx humanbehavior-js YOUR_API_KEYIf that works, you can proceed to configuration! Otherwise, you can easily install manually by following the steps below.
Quick Manual Install
If you are familiar with javascript and use a framework, select one below. Otherwise, you can install with a quick CDN snippet:
Install the SDK using your preferred package manager at the root of your project or add it to the head of your HTML file via CDN.
npm install humanbehavior-jsyarn add humanbehavior-jspnpm add humanbehavior-js<script src="https://unpkg.com/humanbehavior-js@latest"></script>For simple configuration, initialize the SDK in your application.
<head> <!-- your other metadata here --> <script>const tracker = HumanBehaviorTracker.init('YOUR_API_KEY');</script></head>For advanced configuration, use one of the framework integration guides below.
Angular
Angular components and dependency injection
React
React hooks, context providers, and component integration
Next.js
Next.js App Router and Pages Router setup
Vue.js
Vue.js components and composition API integration
Svelte
Svelte components and reactive statements
Nuxt.js
Nuxt.js SSR and Vue.js framework integration
Remix
Remix full-stack React framework setup
Astro
Astro static site generator and component integration
Gatsby
Gatsby static site generator and React framework setup