1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-19 00:52:19 +01:00

layouts/_default/baseof.html: Add support for Google Analytics

Sites only need to add their Google Analytics tracking ID to their
config:

  googleAnalytics = "UA-123-45"

This uses the async version of the Google Analytics code.
This commit is contained in:
Alan Orth 2016-10-14 22:10:01 -04:00
parent 7272253613
commit c49fa721ec
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -14,6 +14,8 @@
{{ "<!-- RSS 2.0 feed -->" | safeHTML }}
<link href="{{ .Site.RSSLink }}" type="application/rss+xml" rel="alternate">
{{ template "_internal/google_analytics_async.html" . }}
</head>
<body>