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

github.com/mmrath/hugo-bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurali Mohan Rath <murali@mmrath.com>2017-01-09 12:14:17 +0300
committerMurali Mohan Rath <murali@mmrath.com>2017-01-09 12:14:17 +0300
commitaa0a7d0c57aa5f1b37236deaadf75c1b2bae91a8 (patch)
tree7040353f1dde809ec608e09fe6c1284af605de7a
parent524039bf1b877da3a7a61c939eb7973f50816d2a (diff)
Use google analytics script from internal
-rw-r--r--layouts/partials/base/scripts.html10
1 files changed, 2 insertions, 8 deletions
diff --git a/layouts/partials/base/scripts.html b/layouts/partials/base/scripts.html
index cf049ac..642219f 100644
--- a/layouts/partials/base/scripts.html
+++ b/layouts/partials/base/scripts.html
@@ -11,11 +11,5 @@
<script src="{{ .Site.BaseURL }}assets/js/script.js"></script>
-{{ with .Site.Params.googleAnalytics }}
-<script>
- var _gaq=[['_setAccount','{{ . }}'],['_trackPageview']];
- (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
- g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
- s.parentNode.insertBefore(g,s)}(document,'script'));
-</script>
-{{ end }}
+{{ template "_internal/google_analytics_async.html" . }}
+