diff --git a/config.toml b/config.toml index 4cd4bc4a0a7cc668c47b6ddab5b4af3f1b563097..f084deac7d79518bc1530bbb0bd1543f99dc9acb 100644 --- a/config.toml +++ b/config.toml @@ -2,11 +2,36 @@ baseURL = "https://soafee.io" languageCode = "en-us" title = "SOAFEE" theme = "soafee" +googleAnalytics = "GTM-WLHTXFF" [Author] name = "J. Sickmeyer" +[privacy] + [privacy.disqus] + disable = true + [privacy.googleAnalytics] + anonymizeIP = false + disable = false + respectDoNotTrack = false + useSessionStorage = false + [privacy.instagram] + disable = true + simple = false + [privacy.twitter] + disable = true + enableDNT = false + simple = false + [privacy.vimeo] + disable = true + enableDNT = false + simple = false + [privacy.youtube] + disable = true + privacyEnhanced = false + + #[[menu.main]] # name = "Home" # pre = "home" diff --git a/content/legal/privacy_policy.md b/content/legal/privacy_policy.md new file mode 100644 index 0000000000000000000000000000000000000000..b4e43393420585ba7871f295297b60b524368fd2 --- /dev/null +++ b/content/legal/privacy_policy.md @@ -0,0 +1,35 @@ +--- +Title: Cookie and Privacy Policy +--- + +# Cookie and Privacy Policy + +We take your privacy very seriously and are committed to safeguarding your personal data. This Privacy Policy ("Policy") informs you how the SOAFEE SIG collect, process, transfer and protect personal data. + +In this Policy, "personal data" means any information which on its own or combined with other information relates to and identifies (directly or indirectly) a living individual. + +## Scope + +This policy applies to all SOAFEE.io websites, domains, services, applications and products. + +It does not apply to third-party applications, websites, products, services or social media platforms that may be accessed through links that we provide to you. These sites are owned and operated independently from us and have their own separate privacy and data collection practices. Any personal data that you provide to these websites will be governed by the terms of the third party's own privacy policy. We cannot accept liability for the actions or policies of these independent sites and are not responsible for the content or privacy practices of such sites. + +## Types of Data We Collect and How + +### Data you provide + +Out website does ask for or store any personal data. + +### Data we automatically collect + +When you visit our website we automatically collect and store information about your visit using browser cookies (files which are sent by us to your computer) or similar technology. + +Cookies we use are: + +|Company/Provider | Purpose | +|-----------------|---------| +| Google | Analytics tracking (via Google Tag Manager) | + +## How we use Personal Data we collect + +Our website does not collect any personal data. \ No newline at end of file diff --git a/themes/soafee/assets/js/cookie_consent.js b/themes/soafee/assets/js/cookie_consent.js new file mode 100644 index 0000000000000000000000000000000000000000..7861a56c44e4ff6676322015031fdf7710564e2c --- /dev/null +++ b/themes/soafee/assets/js/cookie_consent.js @@ -0,0 +1,52 @@ +function setCookie(name,value,days) { + var expires = ""; + if (days) { + var date = new Date(); + date.setTime(date.getTime() + (days*24*60*60*1000)); + expires = "; expires=" + date.toUTCString(); + } + document.cookie = name + "=" + (value || "") + expires + "; path=/"; +} +function getCookie(name) { + var nameEQ = name + "="; + var ca = document.cookie.split(';'); + for(var i=0;i < ca.length;i++) { + var c = ca[i]; + while (c.charAt(0)==' ') c = c.substring(1,c.length); + if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); + } + return null; +} + +function eraseCookie(name) { + document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'; +} + +function cookieConsent() { + console.log("Checking for cookie consent"); + if (!getCookie('cookieConsent')) { + var element=document.getElementById('cookieConsent'); + var toast = new bootstrap.Toast(element); + toast.show(); + } +} + +function updateConsent() { + let event = new Event("soafee_consent_update", {"bubbles": false}); + document.dispatchEvent(event); +} + +$('#btnDeny').click(()=>{ + setCookie('cookieConsent','no',365); + $('.toast').toast('hide'); + updateConsent(); +}) + +$('#btnAccept').click(()=>{ + setCookie('cookieConsent','yes',365); + $('.toast').toast('hide'); + updateConsent(); +}) + +// load +cookieConsent(); \ No newline at end of file diff --git a/themes/soafee/layouts/_default/baseof.html b/themes/soafee/layouts/_default/baseof.html index 8a3cb93dba02e57a76684696f8b796320b4fac63..3edd89b6967caf34811cd2eb61bf38a363b39547 100644 --- a/themes/soafee/layouts/_default/baseof.html +++ b/themes/soafee/layouts/_default/baseof.html @@ -3,6 +3,9 @@ {{- partial "head.html" . -}}
+ {{ partial "google_analytics_body.html" . }} + +