feat: add google analytics support (#70)

* feat: support google analytics

* docs: add instruction for setting up ga
This commit is contained in:
Xin
2023-09-21 08:03:35 +01:00
committed by GitHub
parent b51bfa3177
commit 4e63aa4f14
4 changed files with 35 additions and 0 deletions

View File

@ -197,3 +197,12 @@ There are three available options: `full`, `wide`, and `normal`.
By default, the page width is set to `normal`.
Similarly, the width of the navbar and footer can be customized by the `params.navbar.width` and `params.footer.width` parameters.
### Google Analytics
To enable Google Analytics, set the `googleAnalytics` parameter in the config file:
```yaml {filename="hugo.yaml"}
googleAnalytics: G-XXXXXXXXXX
```