diff options
author | Go <monkeywzr@gmail.com> | 2021-07-23 10:52:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 10:52:56 +0300 |
commit | 7958b191f7bcc835bc5c013e1bc86ec5b7c3e22d (patch) | |
tree | 394a1cf4b25a90877c5f1da6a4922779070183cf | |
parent | c3b5a314b2f8efc9d4d9d846970317402e47a99f (diff) | |
parent | 27224dc39380da21c46c87ebcffda067a9f53aaf (diff) |
Merge pull request #89 from monkeyWzr/monkeyWzr-patch-1
update ga setting
-rw-r--r-- | README.md | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -226,11 +226,16 @@ default config: ### Analytics -Cactus uses hugo's bulit in [analytics templates](https://gohugo.io/templates/internal#google-analytics) -Add you tracking id in your site config. By default cactus uses synchronous tracking code. You can switch to asynchronous tracking by set `googleAnalyticsAsync` to `true`. +Cactus uses hugo's bulit in analytics templates. Check [hugo's documents](https://gohugo.io/templates/internal#google-analytics) for details. +Set you tracking id in your site config. ```toml -googleAnalytics = "UA-123-45" +googleAnalytics = "UA-XXXXXXXX-XX" # or G-XXXXXXXX if you are using Google Analytics v4 (gtag.js) +``` + +If you are using Google Analytics v3 (analytics.js), you can switch to asynchronous tracking by set `params.googleAnalyticsAsync` to `true`. +```toml +[params] googleAnalyticsAsync = true # not required ``` |