0.1.5 • Published 1 year ago

gatsby-plugin-umami v0.1.5

Weekly downloads
63
License
MIT
Repository
github
Last release
1 year ago

gatsby-plugin-umami

All Contributors

Easily add Umami to your Gatsby site.

Install

npm install --save gatsby-plugin-umami

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-plugin-umami`,
    options: {
      websiteId: "UMAMI_WEBSITE_ID",
      srcUrl: "https://umami.example.com/umami.js",
      includeInDevelopment: false,
      autoTrack: true,
      respectDoNotTrack: true,
      dataCache: false,
      dataDomains: "example.com,example2.com",
    },
  },
];

Configuration

  • websiteId - Required. The website id of your umami site
  • srcUrl - Required. The url to the hosted umami.js
  • includeInDevelopment - Optional. Defaults to false
  • autoTrack - Optional. Enables umami auto track feature. Defaults to true
  • respectDoNotTrack - Optional. Enables umami respect Do Not Track feature. Defaults to true
  • dataCache - Optional. Improves performance. Defaults to false
  • dataDomains - Optional. Allows tracking only on the specified domains. No default.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

0.1.4

1 year ago

0.1.5

1 year ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago