https://github.com/manusa/gatsby-plugin-umami
https://umami.is
https://github.com/manusa/gatsby-plugin-umami
Last synced: over 1 year ago
JSON representation
https://umami.is
- Host: GitHub
- URL: https://github.com/manusa/gatsby-plugin-umami
- Owner: manusa
- License: apache-2.0
- Created: 2023-10-04T15:20:12.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-05T05:18:08.000Z (almost 3 years ago)
- Last Synced: 2025-03-07T18:51:08.579Z (over 1 year ago)
- Language: JavaScript
- Size: 187 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gatsby-plugin-umami
[](https://www.npmjs.com/package/@marcnuri/gatsby-plugin-umami)
Gatsby plugin to add Google Analytics support to your site leveraging Google's [gtag.js](https://developers.google.com/tag-platform/gtagjs) library.
The main difference with the official Gatsby plugins is that this one doesn't use cookies to track visitors.
## Usage
```javascript
plugins: [
{
resolve: '@marcnuri/gatsby-plugin-umami',
options: {
src: 'https://analytics.example.com/script.js',
dataWebsiteId: 'c785dabf-e60d-422c-a2a5-fa737bdf1443'
}
},
]
```
| Option | Description |
|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `src`* | URL where the script should be downloaded from. |
| `dataWebsiteId`* | The ID for your website. Can be retrieved from the Umami dashboard. |
| `dataHostUrl` | By default, Umami will send data to wherever the script is located. You can override this to send data to another location. |
| | |
| `dataDomains` | If you want the tracker to only run on specific domains, you can add them to your tracker script. This is a comma delimited list of domain names. Helps if you are working in a staging/development environment. |
_* Required fields_