mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-07-19 09:03:02 -04:00
🚚 Rename config.toml to hugo.toml
This commit is contained in:
@@ -54,17 +54,14 @@ To enable support for Umami Analytics, insert the _tracking code token_ provided
|
||||
|
||||
### Google Analytics
|
||||
|
||||
Google Analytics support is provided through the internal Hugo partial. Simply provide the `googleAnalytics` key in the `config/_default/config.toml` file and the script will be added automatically.
|
||||
|
||||
Both version 3 (analytics.js) and version 4 (gtag.js) are supported, based on the configuration value provided:
|
||||
Google Analytics support is provided through the internal Hugo partial. Simply provide the `services.googleAnalytics` key in the `config/_default/hugo.toml` file and the script will be added automatically.
|
||||
|
||||
```toml
|
||||
# config/_default/config.toml
|
||||
# config/_default/hugo.toml
|
||||
|
||||
# version 3
|
||||
googleAnalytics = "UA-PROPERTY_ID"
|
||||
# version 4
|
||||
googleAnalytics = "G-MEASUREMENT_ID"
|
||||
[services]
|
||||
[services.googleAnalytics]
|
||||
id = 'G-XXXXXXXXX'
|
||||
```
|
||||
|
||||
### Custom analytics providers
|
||||
|
||||
Reference in New Issue
Block a user