From 3d6b437ebfb1c8c5e8f1beec215fb9e824adfad9 Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Fri, 18 Jun 2021 23:02:21 -0500 Subject: Add google analytics to site --- _config.yml | 1 + _includes/head/custom.html | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/_config.yml b/_config.yml index 58c9466..9948ef4 100644 --- a/_config.yml +++ b/_config.yml @@ -29,6 +29,7 @@ description: >- # this means to ignore newlines until "baseurl:" baseurl: "/" # the subpath of your site, e.g. /blog url: "https://karl.hallsby.com" # the base hostname & protocol for your site, e.g. http://example.com +google_analytics: G-1EB0J5LDCB author: type: "person" diff --git a/_includes/head/custom.html b/_includes/head/custom.html index 33b1508..def324f 100644 --- a/_includes/head/custom.html +++ b/_includes/head/custom.html @@ -1,3 +1,14 @@ +{% if site.google_analytics and jekyll.environment == 'production' %} + + +{%- endif -%} + -- cgit v1.2.3