Dashboard template with Vue & UI Pro

hotjar
hotjar

Add HotJar to your Nuxt application

Nuxt Hotjar

npm versionnpm downloadsLicenseNuxt

Features

Quick Setup

  1. Add nuxt-module-hotjar dependency to your project
npx nuxi@latest module add hotjar
  1. Add nuxt-module-hotjar to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    'nuxt-module-hotjar'
  ],


  // And add your hotjar site id and the script version
  hotjar: {
    hotjarId: 1234567,
    scriptVersion: 6,

    // optionally you can turn on debug mode for development
    debug: true
  }
})

That's it! You can now use Hotjar in your Nuxt app ✨

Development

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release