项目作者: phiilu

项目描述 :
Gatsby plugin to add Umami (https://umami.is) to a Gatsby site
高级语言: JavaScript
项目地址: git://github.com/phiilu/gatsby-plugin-umami.git
创建时间: 2020-09-28T19:38:34Z
项目社区:https://github.com/phiilu/gatsby-plugin-umami

开源协议:MIT License

下载


gatsby-plugin-umami

All Contributors

Easily add Umami to your Gatsby site.

Install

npm install --save gatsby-plugin-umami

How to use

  1. // In your gatsby-config.js
  2. plugins: [
  3. {
  4. resolve: `gatsby-plugin-umami`,
  5. options: {
  6. websiteId: "UMAMI_WEBSITE_ID",
  7. srcUrl: "https://umami.example.com/script.js",
  8. includeInDevelopment: false,
  9. autoTrack: true,
  10. respectDoNotTrack: true,
  11. dataCache: false,
  12. dataDomains: "example.com,example2.com",
  13. },
  14. },
  15. ];

Configuration

  • websiteId - Required. The website id of your umami site
  • srcUrl - Required. The url to the hosted script.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):








William Weiss

💻

Matt Banner

🐛

Florian Kapfenberger

💬 📖 👀 💻 🔧

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