New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-plugin-hotjar

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-hotjar

Gatsby plugin to add Hotjar analytics to your site.

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.6K
decreased by-16.34%
Maintainers
0
Weekly downloads
 
Created
Source

gatsby-plugin-hotjar

Easily add Hotjar Analytics to your Gatsby site.

Install

yarn add gatsby-plugin-hotjar

or

npm i gatsby-plugin-hotjar --save

How to use

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: "gatsby-plugin-hotjar",
      options: {
        includeInDevelopment: true, // optional parameter to include script in development
        addToHead: false, // optional parameter to append script to the head instead of the body
        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.

Keywords

FAQs

Package last updated on 12 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc