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

github.com/lxndrblz/anatole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/footer.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index c7f4202..b231dc1 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -32,7 +32,11 @@
</footer>
{{- partial "medium-zoom.html" .context -}}
{{- partial "math.html" .context -}}
-{{- template "_internal/google_analytics_async.html" .context -}}
+{{- if (hasPrefix .context.Site.GoogleAnalytics "G-") -}}
+ {{- template "_internal/google_analytics.html" .context -}}
+{{- else -}}
+ {{- template "_internal/google_analytics_async.html" .context -}}
+{{- end -}}
{{- if and (hugo.IsProduction) (.context.Site.Params.gtagId) -}}
{{ partial "google-analytics-gtag-async.html" .context }}