diff --git a/_config.yml b/_config.yml index 77e0b68..a39c0dd 100644 --- a/_config.yml +++ b/_config.yml @@ -134,7 +134,7 @@ footer-link-col: "#404040" #gtag: "" # Fill in your Google Analytics ID to track your website using Google Analytics -google_analytics: "UA-125339405-1" #MUST ALSO BE UPDATED IN analytics.js +#google_analytics: "UA-125339405-1" #MUST ALSO BE UPDATED IN analytics.js # Google Tag Manager ID #gtm: "" diff --git a/_includes/cookie-consent.html b/_includes/cookie-consent.html index 2f4b344..07f0695 100644 --- a/_includes/cookie-consent.html +++ b/_includes/cookie-consent.html @@ -35,7 +35,7 @@ } if(readCookie('cookie-notice-option')=='true') { - {% if jekyll.environment == "production" and site.google_analytics %} + {% if jekyll.environment == "production" %} {% include analytics.js %} {% endif %} } else if (readCookie('cookie-notice-option')!='false'){ diff --git a/_includes/nav.html b/_includes/nav.html index ae8294e..b5ae857 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -49,4 +49,6 @@ {% endif %} + {% include cookie-consent.html %} +