nuxt-module-hotjar
TypeScript icon, indicating that this package has built-in type declarations

1.2.6 • Public • Published

Nuxt Hotjar

npm version npm downloads License Nuxt

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

Package Sidebar

Install

npm i nuxt-module-hotjar

Weekly Downloads

125

Version

1.2.6

License

MIT

Unpacked Size

7.83 kB

Total Files

12

Last publish

Collaborators

  • raphaeldmvn