Permalink
Browse files

Add google analytics

  • Loading branch information...
memnoth authored and calintat committed Sep 12, 2017
1 parent a1b371c commit 7f0559d5cc5569d0956a192535eb3a3353a9ff70
Showing with 11 additions and 0 deletions.
  1. +1 −0 exampleSite/config.toml
  2. +10 −0 layouts/partials/footer.html
@@ -3,6 +3,7 @@ languageCode = "en-us"
title = "Minimal"
theme = "minimal"
disqusShortname = "username" # delete this to disable disqus comments
googleAnalytics = ""

[params]
author = "Calin Tataru"
@@ -3,6 +3,16 @@
<p class="copyright text-muted">{{ .Site.Params.copyright | default "&copy; All rights reserved. Powered by [Hugo](https://gohugo.io) and [Minimal](https://github.com/calintat/minimal)" | markdownify }}</p>

</footer>
<!-- Global Site Tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.GoogleAnalytics }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag('js', new Date());
gtag('config', '{{ .Site.GoogleAnalytics }}');
</script>


</body>

0 comments on commit 7f0559d

Please sign in to comment.