diff options
author | somrat <monnaf37@gmail.com> | 2020-04-11 08:11:46 +0300 |
---|---|---|
committer | somrat <monnaf37@gmail.com> | 2020-04-11 08:11:46 +0300 |
commit | 14dec3e16903c119cef899a1e8f78790b23c312d (patch) | |
tree | 14b430c81d511c57cb56fdd80d20d4a7d3601555 | |
parent | 77e2cae6bca393d3d3f3aa1b0e850db51660f223 (diff) | |
parent | 21b711a765f024bcbaaa1a1b16d30611fe4e2097 (diff) |
Merge branch 'master' of https://github.com/themefisher/kross-hugo
-rw-r--r-- | exampleSite/config.toml | 6 | ||||
-rw-r--r-- | layouts/partials/footer.html | 14 |
2 files changed, 11 insertions, 9 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7356c14..2d71383 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -60,10 +60,10 @@ address = "125/A, CA Commercial Area, California, USA" # meta description author = "Johnathan Smith" description = "This is meta description" -# google analitycs -google_analitycs_id = "" # Your ID +# google analytics +google_analytics_id = "" # Your ID # copyright -copyright = "Copyrighht © 2020 a theme by [gethugothemes](https://gethugothemes.com)" +copyright = "Copyright © 2020 a theme by [gethugothemes](https://gethugothemes.com)" # contact diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9694573..6e10563 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -67,13 +67,15 @@ {{ $script := resources.Get "js/script.js" | minify}} <script src="{{ $script.Permalink }}"></script> -{{ "<!-- google analitycs -->" | safeHTML }} -{{ with .Site.Params.google_analitycs_id }} +{{ "<!-- google analytics -->" | safeHTML }} +{{ with .Site.Params.google_analytics_id }} <script> - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) - })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); + (function (i, s, o, g, r, a, m) { + i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { + (i[r].q = i[r].q || []).push(arguments) + }, i[r].l = 1 * new Date(); a = s.createElement(o), + m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) + })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); ga('create', '{{ . }}', 'auto'); ga('send', 'pageview'); </script> |