From: Wade Fitzpatrick Date: Thu, 17 Dec 2015 05:56:16 +0000 (+1000) Subject: Added async version of Google Analytics internal template X-Git-Tag: v0.16~459 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ff28120e53c7d3d5fce9941082f72eb89adb43b7;p=brevno-suite%2Fhugo Added async version of Google Analytics internal template --- diff --git a/tpl/template_embedded.go b/tpl/template_embedded.go index b54f92e7..a2fde4b1 100644 --- a/tpl/template_embedded.go +++ b/tpl/template_embedded.go @@ -232,5 +232,14 @@ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) ga('create', '{{ . }}', 'auto'); ga('send', 'pageview'); +{{ end }}`) + + t.AddInternalTemplate("", "google_analytics_async.html", `{{ with .Site.GoogleAnalytics }} + + {{ end }}`) }