Skip to content

Commit 0fe09ac

Browse files
authored
Switch from Ketch to IBM TrustArc for cookie consent (#196)
1 parent c89d059 commit 0fe09ac

File tree

3 files changed

+25
-88
lines changed

3 files changed

+25
-88
lines changed

src/js/10-ketch-consent.js

Lines changed: 0 additions & 86 deletions
This file was deleted.

src/js/10-trustarc-consent.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* eslint-disable */
2+
window._ibmAnalytics = {
3+
"settings": {
4+
"name": "DataStax",
5+
"tealiumProfileName": "ibm-subsidiary",
6+
},
7+
"trustarc": {
8+
"privacyPolicyLink": "https://www.datastax.com/legal/datastax-website-privacy-policy"
9+
},
10+
"digitalData.page.services.google.enabled": true
11+
};
12+
window.digitalData = {
13+
"page": {
14+
"pageInfo": {
15+
"ibm": {
16+
"siteId": "IBM_" + _ibmAnalytics.settings.name,
17+
}
18+
},
19+
"category": {
20+
"primaryCategory": "PC230"
21+
}
22+
}
23+
};

src/partials/head-scripts.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ analytics.load("{{this}}");
66
</script>
77
{{/with}}
88

9-
{{#with site.keys.ketchSmartTagUrl}}
10-
<script>!function(){window.semaphore=window.semaphore||[],window.ketch=function(){window.semaphore.push(arguments)};var e=document.createElement("script");e.type="text/javascript",e.src="{{this}}",e.defer=e.async=!0,document.getElementsByTagName("head")[0].appendChild(e)}();</script>
9+
{{#with site.keys.ibmAnalyticsEnabled}}
10+
<script src="//1.www.s81c.com/common/stats/ibm-common.js" type="text/javascript" async="async"></script>
1111
{{/with}}
1212

1313
<script>var uiRootPath = '{{{uiRootPath}}}'</script>

0 commit comments

Comments
 (0)