Skip to content

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

License

Notifications You must be signed in to change notification settings

usehardal/gatsby-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hardal

Hardal for Gatsby

License: GPL v3 version

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

Install

npm install --save gatsby-plugin-hardal

or

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!
    }
  }
];

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published