mirror of
https://github.com/imfing/hextra.git
synced 2025-06-19 17:41:19 -04:00
chore: support services.googleAnalytics.ID
(#173)
* chore: support `services.googleAnalytics.ID` and deprecate `site.googleAnalytics` * chore: remove warning
This commit is contained in:
@ -252,8 +252,10 @@ excludeSearch: true
|
||||
|
||||
### Google Analytics
|
||||
|
||||
To enable Google Analytics, set the `googleAnalytics` parameter in the config file:
|
||||
To enable [Google Analytics](https://marketingplatform.google.com/about/analytics/), set `services.googleAnalytics.ID` flag in `hugo.yaml`:
|
||||
|
||||
```yaml {filename="hugo.yaml"}
|
||||
googleAnalytics: G-XXXXXXXXXX
|
||||
services:
|
||||
googleAnalytics:
|
||||
ID: G-MEASUREMENT_ID
|
||||
```
|
||||
|
@ -7,7 +7,9 @@ enableGitInfo: true
|
||||
# enableEmoji: false
|
||||
hasCJKLanguage: true
|
||||
|
||||
# googleAnalytics: G-XXXXXXXXXX
|
||||
# services:
|
||||
# googleAnalytics:
|
||||
# ID: G-MEASUREMENT_ID
|
||||
|
||||
outputs:
|
||||
home: [HTML]
|
||||
|
Reference in New Issue
Block a user