Merge pull request #15451 from jhratliff/WEB-1276

WEB-1276: Adds OneTrust consent manager JS snippet and footer button
This commit is contained in:
Usha Mandya 2022-08-24 10:33:11 +01:00 committed by GitHub
commit 780a49633d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 1 deletions

View File

@ -16,6 +16,7 @@ exclude:
# Google Analytics, etc.
google_analytics: GTM-WL2QLG5
polldaddy_id: 8453675
onetrust_id: 8e0ebfd9-035d-4ec2-9b2f-a2de9c09f906
# Assets
#

View File

@ -0,0 +1,7 @@
{% if include.ONETRUST_ID and include.ONETRUST_ID != '' %}<!-- OneTrust Cookies Consent Notice start for http://docs.docker.com -->
<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="{{ include.ONETRUST_ID }}" ></script>
<script type="text/javascript">
function OptanonWrapper() { }
</script>
<!-- OneTrust Cookies Consent Notice end for http://docs.docker.com -->
{% else %}<!-- No consent manager configured -->{% endif %}

View File

@ -86,6 +86,11 @@
<p class="copyright">
Copyright &copy; 2013-{{ site.time | date: '%Y' }} Docker Inc. All rights reserved.
</p>
{%- if jekyll.environment == 'production' and site.onetrust_id != '' -%}
<!-- OneTrust Cookies Settings button start -->
<button id="ot-sdk-btn" class="ot-sdk-show-settings">Cookie Settings</button>
<!-- OneTrust Cookies Settings button end -->
{%- endif -%}
</div>
<div class="footer_social_nav">
<ul class="nav-social">

View File

@ -29,7 +29,10 @@
{%- if page.sitemap == false or jekyll.environment != 'production' %}
<meta name="robots" content="noindex"/>
{%- endif %}
{%- if jekyll.environment == 'production' and site.google_analytics != '' -%}{%- include analytics/google_analytics.html GOOGLE_ID=site.google_analytics -%}{%- endif -%}
{%- if jekyll.environment == 'production' -%}
{%- if site.onetrust_id != '' -%}{%- include analytics/onetrust.html ONETRUST_ID=site.onetrust_id -%}{%- endif -%}
{%- if site.google_analytics != '' -%}{%- include analytics/google_analytics.html GOOGLE_ID=site.google_analytics -%}{%- endif -%}
{%- endif -%}
<title>{{ page.title | default: page_title }} | Docker Documentation</title>
<meta name="description" content="{{ page.description | default: page_description | escape}}" />
<meta name="keywords" content="{{ page.keywords | default: 'docker, docker open source, docker platform, distributed applications, microservices, containers, docker containers, docker software, docker virtualization' }}">