From 1d2c4d09aae3322951c53fa64ac509ca9f7b20dd Mon Sep 17 00:00:00 2001 From: Ashley Henry Date: Wed, 11 Dec 2024 12:39:53 -0500 Subject: [PATCH] Adding cookie consent to theme --- _extensions/posit-docs/_extension.yml | 6 ++++-- _extensions/posit-docs/assets/_analytics.html | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/_extensions/posit-docs/_extension.yml b/_extensions/posit-docs/_extension.yml index b8a5efd..30d4b2e 100644 --- a/_extensions/posit-docs/_extension.yml +++ b/_extensions/posit-docs/_extension.yml @@ -9,6 +9,9 @@ contributes: website: favicon: "assets/images/favicon.svg" bread-crumbs: true + cookie-consent: + type: express + style: headline navbar: pinned: true logo: "assets/images/posit-icon-fullcolor.svg" @@ -33,5 +36,4 @@ contributes: link-external-newwindow: true toc: true toc-expand: true - # NEW SITES ONLY - DO NOT USE GOOGLE ANALYTICS - WE NEED TO ADD COOKIE CONSENT TO THEME. EXISTING SITES - YOU CAN ENABLE THE _ANALYTICS.HTML FILE BELOW TO CONTINUE USING GA - # include-in-header: "assets/_analytics.html" + include-in-header: "assets/_analytics.html" diff --git a/_extensions/posit-docs/assets/_analytics.html b/_extensions/posit-docs/assets/_analytics.html index 6ba7036..6bdbe92 100644 --- a/_extensions/posit-docs/assets/_analytics.html +++ b/_extensions/posit-docs/assets/_analytics.html @@ -1,5 +1,5 @@ -