Skip to main content
Frameworks with Server Components (like Next.js 13+ App Router): For optimal performance, use a separate providers file marked with 'use client' instead of adding the directive to your root layout. This preserves Server Component benefits while enabling client-side tracking.
Don’t see your framework listed? You have two options:
  1. Use our auto-installation wizard: npx humanbehavior-js YOUR_API_KEY and select “Vanilla JS/TS” or the closest framework
  2. Follow the standard JavaScript SDK setup which works with any framework - check our API Reference
Why use the Auto-Installation Wizard? The wizard will automatically detect your framework and guide you through the integration process, explaining how the SDK works with your specific framework setup. It’s especially helpful if you’re new to the SDK or want to customize the integration.