mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
umami analytics support data-domains
This commit is contained in:
@@ -44,6 +44,7 @@ googleAnalytics = "G-MEASUREMENT_ID"
|
||||
|
||||
To enable Umami Analytics support, simply provide your [Umami tracking code](https://umami.is/docs/collect-data) in the `config/_default/params.toml` file.
|
||||
If you also use the custom domain feature of Umami and would like to serve their script from your domain, you can also additionally provide the `domain` configuration value. If you don't provide a `domain` value, the script will load directly from Umami DNS (analytics.umami.is).
|
||||
If you want the tracker to only run on specific domains, you can provide the `dataDomains` configuration value. If you don't provide a `dataDomains` value, the script will run on any website where the `domain` and` websiteid` match.
|
||||
|
||||
```toml
|
||||
# config/_default/params.toml
|
||||
@@ -51,6 +52,7 @@ If you also use the custom domain feature of Umami and would like to serve their
|
||||
[umamiAnalytics]
|
||||
websiteid = "ABC12345"
|
||||
domain = "llama.yoursite.com"
|
||||
dataDomains = "yoursite.com,yoursite2.com"
|
||||
```
|
||||
|
||||
### Custom analytics providers
|
||||
|
||||
@@ -44,6 +44,7 @@ googleAnalytics = "G-MEASUREMENT_ID"
|
||||
|
||||
To enable Umami Analytics support, simply provide your [Umami tracking code](https://umami.is/docs/collect-data) in the `config/_default/params.toml` file.
|
||||
If you also use the custom domain feature of Umami and would like to serve their script from your domain, you can also additionally provide the `domain` configuration value. If you don't provide a `domain` value, the script will load directly from Umami DNS (analytics.umami.is).
|
||||
If you want the tracker to only run on specific domains, you can provide the `dataDomains` configuration value. If you don't provide a `dataDomains` value, the script will run on any website where the `domain` and` websiteid` match.
|
||||
|
||||
```toml
|
||||
# config/_default/params.toml
|
||||
@@ -51,6 +52,7 @@ If you also use the custom domain feature of Umami and would like to serve their
|
||||
[umamiAnalytics]
|
||||
websiteid = "ABC12345"
|
||||
domain = "llama.yoursite.com"
|
||||
dataDomains = "yoursite.com,yoursite2.com"
|
||||
```
|
||||
|
||||
### Custom analytics providers
|
||||
|
||||
@@ -44,13 +44,14 @@ googleAnalytics = "G-MEASUREMENT_ID"
|
||||
|
||||
To enable Umami Analytics support, simply provide your [Umami tracking code](https://umami.is/docs/collect-data) in the `config/_default/params.toml` file.
|
||||
If you also use the custom domain feature of Umami and would like to serve their script from your domain, you can also additionally provide the `domain` configuration value. If you don't provide a `domain` value, the script will load directly from Umami DNS (analytics.umami.is).
|
||||
|
||||
If you want the tracker to only run on specific domains, you can provide the `dataDomains` configuration value. If you don't provide a `dataDomains` value, the script will run on any website where the `domain` and` websiteid` match.
|
||||
```toml
|
||||
# config/_default/params.toml
|
||||
|
||||
[umamiAnalytics]
|
||||
websiteid = "ABC12345"
|
||||
domain = "llama.yoursite.com"
|
||||
dataDomains = "yoursite.com,yoursite2.com"
|
||||
```
|
||||
|
||||
### Custom analytics providers
|
||||
|
||||
@@ -48,6 +48,7 @@ googleAnalytics = "G-MEASUREMENT_ID"
|
||||
|
||||
只需要在 `config/_default/params.toml` 文件提供你的 [Umami 跟踪代码](https://umami.is/docs/collect-data),就可以快速支持 Umami 站点分析。
|
||||
如果你想使用自定义域名来获取跟踪脚本, 那么需要提供 `domain` 参数,否则会从 Umami 云服务版的地址 (analytics.umami.is) 获取脚本。
|
||||
如果你只想在特别的数个域名中使用 tracker 功能,那么需要提供 `dataDomains` 参数。否则任何一个匹配了 `websiteid` 和 `domain` 参数值的网站,Umami 脚本都会执行。
|
||||
|
||||
```toml
|
||||
# config/_default/params.toml
|
||||
@@ -55,6 +56,7 @@ googleAnalytics = "G-MEASUREMENT_ID"
|
||||
[umamiAnalytics]
|
||||
websiteid = "ABC12345"
|
||||
domain = "llama.yoursite.com"
|
||||
dataDomains = "yoursite.com,yoursite2.com"
|
||||
```
|
||||
|
||||
### 提供自定义站点分析
|
||||
|
||||
Reference in New Issue
Block a user