Skip to content

Commit 23e6ad0

Browse files
authored
Merge pull request #54 from couchbase/DOC-7041
Update Optanon script
2 parents 5abfc90 + 5fe757e commit 23e6ad0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

netlify.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ NODE_VERSION = "10"
77
ALGOLIA_APP_ID = "NI1G57N08Q"
88
ALGOLIA_API_KEY = "d3eff3e8bcc0860b8ceae87360a47d54"
99
ALGOLIA_INDEX_NAME = "prod_docs_couchbase"
10-
OPTANON_SCRIPT_URL = "https://cdn.cookielaw.org/consent/288c1333-faac-4514-a8bf-a30b3db0ee32.js"
10+
OPTANON_SCRIPT_URL = "https://cdn.cookielaw.org/scripttemplates/otSDKStub.js"
11+
OPTANON_SCRIPT_DATA_DOMAIN_SCRIPT = "748511ff-10bf-44bf-88b8-36382e5b5fd9"
1112

1213
[context.branch-deploy]
1314
command = "node_modules/.bin/gulp preview:build && node_modules/.bin/gulp --series build bundle:pack"

src/partials/head-last.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<link rel="stylesheet" href="{{{uiRootPath}}}/css/site.css">
22
<script src="{{{uiRootPath}}}/js/vendor/jquery.js"></script>
3-
{{#with env.OPTANON_SCRIPT_URL}}
4-
<script src="{{this}}"></script>
3+
{{#if env.OPTANON_SCRIPT_URL}}
4+
<script src="{{env.OPTANON_SCRIPT_URL}}" data-domain-script="{{env.OPTANON_SCRIPT_DATA_DOMAIN_SCRIPT}}"></script>
55
<script>function OptanonWrapper(){}</script>
6-
{{/with}}
6+
{{/if}}
77
{{#with site.keys.googleAnalytics}}
88
<script>(window.dataLayer=window.dataLayer||[]).push({'gtm.start':+new Date(),event:'gtm.js'})</script>
99
<script async src="https://www.googletagmanager.com/gtm.js?id={{{this}}}"></script>

0 commit comments

Comments
 (0)