Skip to content

koole/gatsby-plugin-hotjar-tracking

 
 

Repository files navigation

gatsby-plugin-hotjar-tracking

npm version npm

Easily add Hotjar Analytics to your Gatsby site.

Installation

npm i gatsby-plugin-hotjar-tracking --save

or

yarn add gatsby-plugin-hotjar-tracking

Usage

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-plugin-hotjar-tracking`,
    options: {
      includeInDevelopment: false,
      id: YOUR_HOTJAR_ID,
      sv: YOUR_HOTJAR_SNIPPET_VERSION
    }
  }
];

To find your Hotjar ID, click the Tracking code button for your site. The Hotjar Snippet Version is in the tracking code, look for a line like:

h._hjSettings={hjid:[hotjar id],hjsv:6};

The version is the value of hjsv.

About

Gatsby plugin to add Hotjar analytics to your site.

Topics

Resources

Stars

Watchers

Forks

Languages

  • JavaScript 100.0%