Add support for Google Analytics v4

This commit is contained in:
Daniel Atwood
2021-03-03 07:30:06 -05:00
committed by GitHub
parent 782c79ae61
commit ba16a14c6e
6 changed files with 45 additions and 10 deletions

View File

@@ -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

View File

@@ -249,7 +249,7 @@ const commonConfigSections = `
[services.disqus]
shortname = "disqus_shortname"
[services.googleAnalytics]
id = "ga_id"
id = "UA-ga_id"
[privacy]
[privacy.disqus]