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

github.com/themefisher/restaurant-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsomrat <monnaf37@gmail.com>2019-12-29 07:59:43 +0300
committersomrat <monnaf37@gmail.com>2019-12-29 07:59:43 +0300
commit1585e442bf895ea7ee026d0f60e0debec7dedb15 (patch)
treecad8d61d00e8f4e868f1dea480d897043f055341 /layouts
parentf8ac60521f12d0259f887ab2ec5d3ce16a775a6f (diff)
added meta data and google analytics
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/footer.html19
1 files changed, 18 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 7ab0c00..d5af7e6 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -77,4 +77,21 @@
{{ "<!-- JS Plugins -->" | safeHTML }}
{{ range .Site.Params.plugins.js}}
<script src="{{ .URL | absURL }}"></script>
-{{ end }} \ No newline at end of file
+{{ end }}
+
+{{ "<!-- google analitycs -->" | safeHTML }}
+<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');
+ ga('create', '{{ .Site.Params.googleAnalitycsID }}', 'auto');
+ ga('send', 'pageview');
+</script> \ No newline at end of file