From 1b0388abe393883544490d825b38ad192df5e61d Mon Sep 17 00:00:00 2001 From: Dwayne Hinterlang Date: Mon, 5 Feb 2018 21:42:23 +0200 Subject: Add google analytics support --- README.md | 2 ++ layouts/partials/analytics.html | 1 + layouts/partials/footer.html | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/analytics.html diff --git a/README.md b/README.md index e0a0cde..dbec8f2 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,8 @@ Please refer to the [Hugo documentation](http://gohugo.io/themes/installing/). A few parameters can be adjusted in the site config: ```toml +# googleAnalytics = "UA-123-45" + [params] # your name to display by the copyright sign diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html new file mode 100644 index 0000000..f13b4a0 --- /dev/null +++ b/layouts/partials/analytics.html @@ -0,0 +1 @@ +{{ template "_internal/google_analytics_async.html" . }} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 0394839..6abb4e5 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,7 @@ -- cgit v1.2.3