From 48fcb45a44cd2675c7492b06226e52d9b171db32 Mon Sep 17 00:00:00 2001 From: James Ratliff Date: Mon, 22 Aug 2022 16:52:18 -0700 Subject: [PATCH] WEB-1276: Adds OneTrust consent manager JS snippet and footer button Signed-off-by: Sebastiaan van Stijn --- _config_production.yml | 1 + _includes/analytics/onetrust.html | 7 +++++++ _includes/footer.html | 5 +++++ _includes/head.html | 5 ++++- 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 _includes/analytics/onetrust.html diff --git a/_config_production.yml b/_config_production.yml index 537537b5f4..24fb23a88c 100644 --- a/_config_production.yml +++ b/_config_production.yml @@ -16,6 +16,7 @@ exclude: # Google Analytics, etc. google_analytics: GTM-WL2QLG5 polldaddy_id: 8453675 +onetrust_id: 8e0ebfd9-035d-4ec2-9b2f-a2de9c09f906 # Assets # diff --git a/_includes/analytics/onetrust.html b/_includes/analytics/onetrust.html new file mode 100644 index 0000000000..078024ff50 --- /dev/null +++ b/_includes/analytics/onetrust.html @@ -0,0 +1,7 @@ +{% if include.ONETRUST_ID and include.ONETRUST_ID != '' %} + + + +{% else %}{% endif %} diff --git a/_includes/footer.html b/_includes/footer.html index 778a906eb6..dcca1f27ff 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -86,6 +86,11 @@ + {%- if jekyll.environment == 'production' and site.onetrust_id != '' -%} + + + + {%- endif -%}