Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/monkeyWzr/hugo-theme-cactus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGo <monkeywzr@gmail.com>2021-07-23 10:52:56 +0300
committerGitHub <noreply@github.com>2021-07-23 10:52:56 +0300
commit7958b191f7bcc835bc5c013e1bc86ec5b7c3e22d (patch)
tree394a1cf4b25a90877c5f1da6a4922779070183cf
parentc3b5a314b2f8efc9d4d9d846970317402e47a99f (diff)
parent27224dc39380da21c46c87ebcffda067a9f53aaf (diff)
Merge pull request #89 from monkeyWzr/monkeyWzr-patch-1
update ga setting
-rw-r--r--README.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/README.md b/README.md
index 451fd51..5367795 100644
--- a/README.md
+++ b/README.md
@@ -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
```