📝 Add GA v4 detail to analytics docs

pull/144/head
James Panther 2022-02-20 14:18:58 +11:00
parent f42159bfaf
commit 4ded685871
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
1 changed files with 5 additions and 0 deletions

View File

@ -27,10 +27,15 @@ To enable Fathom Analytics support, simply provide your Fathom site code in the
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. 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:
```toml ```toml
# config/_default/config.toml # config/_default/config.toml
# version 3
googleAnalytics = "UA-PROPERTY_ID" googleAnalytics = "UA-PROPERTY_ID"
# version 4
googleAnalytics = "G-MEASUREMENT_ID"
``` ```
### Custom analytics providers ### Custom analytics providers