From b9c021cab74e6e69644f6566c7f5af037ab60cbd Mon Sep 17 00:00:00 2001 From: Dmitry Kolosov Date: Sun, 11 Apr 2021 17:32:40 +0300 Subject: [PATCH] fix support for GA v4 #84 --- layouts/partials/head.html | 6 +----- 1 file changed, 1 insertion(+), 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 @@ --> {{ 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" . }}