From 3c2675c4a154871b572d57cfd4b90f26652e733b Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon, 12 Oct 2020 05:27:13 +0800 Subject: [PATCH] Upgrade GA tag (analytics.js) to the latest tag (gtag.js) --- _includes/google-analytics.html | 14 +++++++------- _includes/js-selector.html | 6 +++++- _layouts/default.html | 6 +----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/_includes/google-analytics.html b/_includes/google-analytics.html index dc46c83..74bbc87 100644 --- a/_includes/google-analytics.html +++ b/_includes/google-analytics.html @@ -5,12 +5,12 @@ © 2017-2019 Cotes Chung MIT License --> + + diff --git a/_includes/js-selector.html b/_includes/js-selector.html index 4fb6c70..ec5c9a8 100644 --- a/_includes/js-selector.html +++ b/_includes/js-selector.html @@ -35,7 +35,11 @@ {% endif %} - {% if jekyll.environment == 'production' %} + + {% include google-analytics.html %} + + + {% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index 55463c3..1c3b610 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -52,12 +52,8 @@ layout: compress - {% if jekyll.environment == 'production' %} - {% include google-analytics.html %} - {% endif %} - {% include search-loader.html %} - \ No newline at end of file +