diff options
author | Themefisher Dev <themefisher.dev@gmail.com> | 2020-01-20 07:43:38 +0300 |
---|---|---|
committer | Themefisher Dev <themefisher.dev@gmail.com> | 2020-01-20 07:43:38 +0300 |
commit | 5794cbef1a4ac1b15bb5460e9048817608419ba8 (patch) | |
tree | 7be18c27a8103dab07c0918d5e2ac9e9fa3996dc | |
parent | c25c33520e07dd013a849e731f4fe33e29477f60 (diff) |
modified footer
-rw-r--r-- | layouts/partials/footer.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 6d6cac1..0d6d9cd 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -59,6 +59,7 @@ {{ $script := resources.Get "js/script.js" | minify}} <script src="{{ $script.Permalink }}"></script> {{ "<!-- google analitycs -->" | safeHTML }} +{{ with .Site.Params.googleAnalitycsID }} <script> (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; @@ -71,6 +72,7 @@ a.src = g; m.parentNode.insertBefore(a, m) })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); - ga('create', '{{ .Site.Params.googleAnalitycsID }}', 'auto'); + ga('create', '{{ . }}', 'auto'); ga('send', 'pageview'); -</script>
\ No newline at end of file +</script> +{{ end }}
\ No newline at end of file |