diff --git a/README.md b/README.md index a985255..128d202 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Below are the current features of this theme. Features labeled *optional* or *fr ### 3rd Party -* Google Analytics v4 or Universal Analytics (optional) +* Google Analytics v4 * Google Tag Manager as an alternative to GA (optional) * Disqus comments (optional) * Disable comments on a per-page basis (optional) (frontmatter) diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 377ff95..de0d676 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -1,5 +1,4 @@ ### SEO, Analytics & 3rd-party -googleAnalyticsv4 = false # false for Universal Analytics, true for GA v4 netlify_forms = true # add data-netlify attribute to contact and newsletter forms, false to disable Netlify forms # gtm_id = '' # GTM tracking (leave blank to use GA) disallow_search_engines = false # Disallow search engine crawling in robots.txt diff --git a/layouts/partials/footer/scripts.html b/layouts/partials/footer/scripts.html index 81519aa..6dfa986 100644 --- a/layouts/partials/footer/scripts.html +++ b/layouts/partials/footer/scripts.html @@ -28,11 +28,7 @@ {{ end }} - + {{ if and (not .Site.IsServer) (not .Site.Params.gtm_id) }} - {{ if eq .Site.Params.googleAnalyticsv4 true }} - {{ template "_internal/google_analytics.html" . }} - {{ else }} - {{ template "_internal/google_analytics_async.html" . }} - {{ end }} + {{ template "_internal/google_analytics.html" . }} {{ end }} \ No newline at end of file