Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pavloko/gatsby-plugin-hotjar
Gatsby plugin to add Hotjar analytics to your site.
https://github.com/pavloko/gatsby-plugin-hotjar
gatsby gatsby-plugin
Last synced: 1 day ago
JSON representation
Gatsby plugin to add Hotjar analytics to your site.
- Host: GitHub
- URL: https://github.com/pavloko/gatsby-plugin-hotjar
- Owner: pavloko
- License: mit
- Created: 2017-11-22T20:55:32.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-12T11:13:27.000Z (4 months ago)
- Last Synced: 2025-01-01T11:07:06.812Z (9 days ago)
- Topics: gatsby, gatsby-plugin
- Language: JavaScript
- Homepage:
- Size: 71.3 KB
- Stars: 19
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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
```javascript
// 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:
```javascript
h._hjSettings={hjid:[hotjar id],hjsv:6};
```The version is the value of `hjsv`.