1.1.4 • Published 3 years ago

@kippie-bv/nuxt-hotjar v1.1.4

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

hotjar-nuxt

This package is based on https://github.com/hotjar/hotjar-js

Installing

npm: npm install @kippie-bv/nuxt-hotjar

yarn: yarn add @kippie-bv/nuxt-hotjar

Features

  • track changes manually by route change path or Fullpath
  • Heatmaps
  • Session tracking
  • Hotjar available in nuxt context by calling $hotjar.

options

// nuxt.config.js
export default {
  modules: [
    "@kippie-bv/nuxt-hotjar",
  ],
  
  hotjar: {
    id: "YOUR_HOTJAR_ID",
    version: 6, // default: 6
    trackChangesManually: true, //default: false
    trackFullPath: true //default: false (Only when trackChangesManually is enabled)
  }
}


// Example
this.$hotjar.identify(userId, {
  first_name: firstName,
  color: favoriteColor
});