From c8ef0514f8db4b744d7781306e9c1950f319c91e Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Fri, 24 Nov 2017 21:24:11 +0800 Subject: [PATCH] feat: use google analytics gtag script --- _app/_includes/amsf/google_analytics | 12 +++++------- _config.yml | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/_app/_includes/amsf/google_analytics b/_app/_includes/amsf/google_analytics index c2c2e89cd..edd2d895f 100644 --- a/_app/_includes/amsf/google_analytics +++ b/_app/_includes/amsf/google_analytics @@ -3,14 +3,12 @@ {% endcomment %} {% capture amsf_google_analytics %} {% if site.google_analytics.enabled %} + {% endif %} {% endcapture %} diff --git a/_config.yml b/_config.yml index 218ccfaaf..f6226667c 100644 --- a/_config.yml +++ b/_config.yml @@ -168,7 +168,7 @@ service_worker: google_analytics: enabled: false id: UA-xxxxxxx - url: //www.google-analytics.com/analytics.js + url: https://www.googletagmanager.com/gtag/js # Site Twitter account handle twitter: sparanoid