mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-02 22:52:51 +02:00
Add support for Google Analytics v4
This commit is contained in:
@@ -110,7 +110,7 @@ Disqus:
|
||||
// Gheck GA regular and async
|
||||
b.AssertFileContent("public/index.html",
|
||||
"'anonymizeIp', true",
|
||||
"'script','https://www.google-analytics.com/analytics.js','ga');\n\tga('create', 'ga_id', 'auto')",
|
||||
"'script','https://www.google-analytics.com/analytics.js','ga');\n\tga('create', 'UA-ga_id', 'auto')",
|
||||
"<script async src='https://www.google-analytics.com/analytics.js'>")
|
||||
|
||||
// Disqus
|
||||
|
@@ -249,7 +249,7 @@ const commonConfigSections = `
|
||||
[services.disqus]
|
||||
shortname = "disqus_shortname"
|
||||
[services.googleAnalytics]
|
||||
id = "ga_id"
|
||||
id = "UA-ga_id"
|
||||
|
||||
[privacy]
|
||||
[privacy.disqus]
|
||||
|
Reference in New Issue
Block a user