JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://cc.cdn.civiccomputing.com/9/cookieControl-9.6.1.min.js"type="text/javascript"></script>
JavaScript
var config = {
apiKey: '592b99ebdf88c091dad9b556b6d8de236ac97687',
product: 'PRO_MULTISITE',
text : {
thirdPartyTitle : 'Warning: Some cookies require your attention',
thirdPartyDescription : 'Consent for some third party cookies can not be automatically revoked. Please follow the link below if you want to opt out of them.'
},
optionalCookies: [
{
name : 'matomo',
label: 'Matomo Cookies',
description: 'Matomo cookies help us to improve our website by collecting and reporting information on its usage.',
cookies: ['_pk_hsr','_pk_ref','_pk_cvar','_pk_id','_pk_ses'],
onAccept : function(){
// Give consent to Matomo
_paq.push(['rememberConsentGiven']);
},
onRevoke: function(){
// Remove consent from Matomo
_paq.push(['forgetConsentGiven']);
}
}
],
};
CookieControl.load( config );