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

github.com/Mitrichius/hugo-theme-anubis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kolosov <mitrichius@gmail.com>2021-04-11 17:32:40 +0300
committerDmitry Kolosov <mitrichius@gmail.com>2021-04-11 17:32:40 +0300
commitb9c021cab74e6e69644f6566c7f5af037ab60cbd (patch)
tree262ed3a49a801e207d53a1cf9dea275fe40be38e /layouts/partials/head.html
parent2308811cacf96a94c8ae4bb4ae10857a23aad59a (diff)
fix support for GA v4 #84
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html6
1 files changed, 1 insertions, 5 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index d45f11b..adf4c3a 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -40,11 +40,7 @@
<meta property="article:publisher" content="https://www.facebook.com/XXX"> -->
{{ if and (.Site.GoogleAnalytics) (or (eq (getenv "HUGO_ENV") "production") (eq .Site.Params.env "production")) }}
- {{ if hasPrefix .Site.GoogleAnalytics "UA-" }}
- {{ template "_internal/google_analytics_async.html" . }}
- {{ else }}
- {{ template "_internal/google_analytics.html" . }}
- {{ end }}
+ {{ template "_internal/google_analytics.html" . }}
{{ end }}
{{ partial "head-extra.html" . }}