Hotjar JavaScript SDK

The Hotjar JavaScript SDK (@hotjar/browser) is an npm package that provides a programmatic interface for integrating Hotjar directly into JavaScript applications. It allows developers to initialize Hotjar with a site ID, identify users, and send custom events without manually embedding the tracking script. The SDK supports modern JavaScript frameworks including React, Vue, and Angular, and provides methods for all Hotjar client-side APIs including identify and event tracking.

Documentation

API entry from apis.yml

apis.yml Raw ↑
aid: hotjar:javascript-sdk
name: Hotjar JavaScript SDK
tags:
- Analytics
- Browser
- JavaScript
- SDK
- Tracking
image: https://kinlane-productions2.s3.amazonaws.com/apis-json/apis-json-logo.jpg
baseURL: https://api.example.com
humanURL: https://github.com/hotjar/hotjar-js
properties:
- url: https://github.com/hotjar/hotjar-js
  type: Documentation
description: The Hotjar JavaScript SDK (@hotjar/browser) is an npm package that provides a programmatic
  interface for integrating Hotjar directly into JavaScript applications. It allows developers to initialize
  Hotjar with a site ID, identify users, and send custom events without manually embedding the tracking
  script. The SDK supports modern JavaScript frameworks including React, Vue, and Angular, and provides
  methods for all Hotjar client-side APIs including identify and event tracking.