diff --git a/README.md b/README.md
index 31ea7b2..c6f70ab 100644
--- a/README.md
+++ b/README.md
@@ -32,6 +32,7 @@ author: ""
theme: "anubis"
paginate: 10
disqusShortname: yourdiscussshortname
+googleAnalytics: UA-123-45
menu:
main:
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 1474b76..49d96c1 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -38,4 +38,7 @@
-
\ No newline at end of file
+
+{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
+ {{ template "_internal/google_analytics_async.html" . }}
+{{ end }}
\ No newline at end of file