From dca451a16a596dce3dc5787390bf22db6541ea74 Mon Sep 17 00:00:00 2001 From: Dan <49373281+HleinaD@users.noreply.github.com> Date: Thu, 8 Feb 2024 18:46:47 +0100 Subject: [PATCH] Add cookie notice to nav.html --- _config.yml | 2 +- _includes/cookie-consent.html | 2 +- _includes/nav.html | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) 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 %} +