Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub


Hardal for Gatsby

License: GPL v3 version

An official plugin to add the Hardal tracking snippet to your Gatsby site.


npm install --save gatsby-plugin-hardal


yarn add gatsby-plugin-hardal

How to use

// In your gatsby-config.js

plugins: [
    resolve: `gatsby-plugin-hardal`,
    options: {
      websiteId: "<PASTE_YOUR_WEBSITE_ID>",
      srcUrl: "https://app.usehardal.com/hardal.js",
      includeInDevelopment: true,
      autoTrack: true,
      builtInEvents: false, // get your built-in events like scroll, rage click, etc.
      respectDoNotTrack: true,
      eventModel: "web2" // web3 is coming soon!
© 2023 Gatsby, Inc.