1
1
# gatsby-plugin-umami
2
+
2
3
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
4
+
3
5
[ ![ All Contributors] ( https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square )] ( #contributors- )
6
+
4
7
<!-- ALL-CONTRIBUTORS-BADGE:END -->
5
8
6
9
Easily add [ Umami] ( https://umami.is/ ) to your Gatsby site.
7
10
8
11
## Install
12
+
9
13
` npm install --save gatsby-plugin-umami `
10
14
11
15
## How to use
@@ -16,16 +20,16 @@ plugins: [
16
20
{
17
21
resolve: ` gatsby-plugin-umami` ,
18
22
options: {
19
- websiteId: ' UMAMI_WEBSITE_ID' ,
20
- srcUrl: ' https://umami.example.com/umami.js' ,
23
+ websiteId: " UMAMI_WEBSITE_ID" ,
24
+ srcUrl: " https://umami.example.com/umami.js" ,
21
25
includeInDevelopment: false ,
22
26
autoTrack: true ,
23
27
respectDoNotTrack: true ,
24
28
dataCache: false ,
25
- dataDomains: ' example.com,example2.com'
29
+ dataDomains: " example.com,example2.com" ,
26
30
},
27
31
},
28
- ]
32
+ ];
29
33
```
30
34
31
35
## Configuration
@@ -38,8 +42,6 @@ plugins: [
38
42
- ` dataCache ` - Optional. Improves performance. Defaults to ` false `
39
43
- ` dataDomains ` - Optional. Allows tracking only on the specified domains. No default.
40
44
41
-
42
-
43
45
## Contributors ✨
44
46
45
47
Thanks goes to these wonderful people ([ emoji key] ( https://allcontributors.org/docs/en/emoji-key ) ):
@@ -60,4 +62,4 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
60
62
61
63
<!-- ALL-CONTRIBUTORS-LIST:END -->
62
64
63
- This project follows the [ all-contributors] ( https://github.com/all-contributors/all-contributors ) specification. Contributions of any kind welcome!
65
+ This project follows the [ all-contributors] ( https://github.com/all-contributors/all-contributors ) specification. Contributions of any kind welcome!
0 commit comments