diff --git a/_config.yml b/_config.yml index d4b7d9fa9..1a7d00bc2 100644 --- a/_config.yml +++ b/_config.yml @@ -5,8 +5,10 @@ description: > # this means to ignore newlines until "baseurl:" Bioschemas relies and extends from schema.org and aims to reuse existing standards and reach consensus among a wide number of life sciences organizations and communities. url: "http://bioschemas.org" # the base hostname & protocol for your site +baseurl: "" # the subpath of your site, e.g. /blog/ twitter_username: Bioschemas github_username: Bioschemas +google_analytics: G-G3BQK7PF1V # Build settings markdown: kramdown diff --git a/_includes/cookie-consent.html b/_includes/cookie-consent.html new file mode 100644 index 000000000..6f05395f7 --- /dev/null +++ b/_includes/cookie-consent.html @@ -0,0 +1,59 @@ + + + diff --git a/_includes/ga.js b/_includes/ga.js new file mode 100644 index 000000000..b2a62accf --- /dev/null +++ b/_includes/ga.js @@ -0,0 +1,17 @@ +function loadScriptAsync(scriptSrc, callback) { + if (typeof callback !== 'function') { + throw new Error('Not a valid callback for async script load'); + } + var script = document.createElement('script'); + script.onload = callback; + script.src = scriptSrc; + document.head.appendChild(script); +} + +loadScriptAsync('https://www.googletagmanager.com/gtag/js?id=G-G3BQK7PF1V', function () { + window.dataLayer = window.dataLayer || []; + function gtag() { dataLayer.push(arguments); } + gtag('js', new Date()); + gtag('config', 'G-G3BQK7PF1V', { 'anonymize_ip': true }); + console.log('Google Analytics is active'); +}) diff --git a/_includes/head.html b/_includes/head.html index ac50c911e..4dcf67e87 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -35,6 +35,4 @@ - - {% include analytics.html %} diff --git a/_layouts/default.html b/_layouts/default.html index 00130b1f5..fffec0b14 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -11,5 +11,6 @@ {% include footer.html %} + {% include cookie-consent.html %} diff --git a/pages/_about/privacy.html b/pages/_about/privacy.html new file mode 100644 index 000000000..a32fb802c --- /dev/null +++ b/pages/_about/privacy.html @@ -0,0 +1,80 @@ +--- +layout: default +title: Privacy +--- +

Privacy Policy

+

Last updated: September 16, 2024

+

This Privacy Policy explains what personal data is collected by Bioschemas website.

+ +

What data we collect

+

+ We collect data about your activity on the site, such as: +

+ +

+ The information is collected anonymously and aggregated. We cannot identify you from the information gathered, + or track your web browsing outside of this site. +

+ +

How we collect the data

+

+ We use Google Analytics to collect this data. When you visit this site, Google Analytics puts a small file called + a cookie in your browser. Cookies are widely used to store preferences and to enable shopping carts and log-in + areas on websites. +

+ +

Why we collect the data

+

+ We collect the data so that we can then generate reports about the site for our funders. + We also collect the date to help us improve the site, and ensure we design the site for the browsers and devices + that most people are using. +

+ +

Who has access to the data

+

+ The data collected from your visit to the site is sent to Google but aggregated and anonymised. + We do not have access to personally identifiable information, but Google records and stores your IP address + in order to generate the site statistics. +

+ +

+ See + Google Analytics cookies information and + Google's Safeguarding your data + article. +

+ +

If you have concerns about your data

+

+ We ask for your permission to set the cookie when you visit the site, but if you change your mind you can: +

+ +

+ Please contact steering@bioschemas.org if you have any queries + concerning the data we may have. +

+ +

Your GitHub information

+

+ If you are a contributor to the site then you will be automatically listed as a contributor, + with a link to your GitHub pages. If you would like to be removed from the contributor list then please contact + steering@bioschemas.org. +

+

+ You may also want to see the + + GitHub Privacy Statement. +

\ No newline at end of file