mirror of
https://github.com/imfing/hextra.git
synced 2025-06-19 22:31:18 -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
|
||||
```
|
||||
|
Reference in New Issue
Block a user