<script src=”/wp-content/plugins/cookie-control/js/cookieControl-6.2.min.js” type=”text/javascript”></script>

<script type=”text/javascript”>

//<![CDATA[

cookieControl({

t: {

title: ‘<p>This site uses cookies to store information on your computer.</p>’,

intro: ‘<p>Some cookies on this site are essential, and the site will not work as expected without them. These cookies are set when you submit a form, login or interact with the site by doing something that goes beyond clicking on simple links. We also use some non-essential cookies to anonymously track visitors or enhance your experience of the site. If you’re not happy with this, we won’t set these cookies but some nice features of the site may be unavailable.</p>’,

full:'<p>These cookies are set when you submit a form, login or interact with the site by doing something that goes beyond clicking some simple links.</p><p>We also use some non-essential cookies to anonymously track visitors or enhance your experience of this site. If you’re not happy with this, we won’t set these cookies but some nice features on the site may be unavailable.</p><p>To control third party cookies, you can also <a class=”ccc-settings” href=”browser-settings” target=”_blank”>adjust your browser settings.</a></p><p>By using our site you accept the terms of our <a href=”/privacy/#cookies”>Privacy Policy</a>.</p>’

},

position:CookieControl.POS_RIGHT,

style:CookieControl.STYLE_TRIANGLE,

theme:CookieControl.THEME_LIGHT, // light or dark

startOpen:true,

autoHide:7000, // 7seconds

subdomains:true,

protectedCookies: [‘analytics’, ‘twitter’], // list cookies you do NOT want deleted

apiKey: ‘XXXXXX’, // GetApiKeyHere: civicuk.com/cookie-law/cookie-configurator-v6

product: CookieControl.PROD_FREE,

consentModel: CookieControl.MODEL_INFO,

onAccept:function(){ccAddAnalytics()},

onReady:function(){},

onCookiesAllowed:function(){ccAddAnalytics()},

onCookiesNotAllowed:function(){}

});

 

function ccAddAnalytics() {

// OPTIONALLY Run GTM event to trigger GA pageview

window.dataLayer = window.dataLayer || [];

dataLayer.push({

“pageVirtual”: “”, // If set to null default pageURI used

“event”: “onload_civic_pageview”

});

}

//]]>

</script>

 

CookieControl can be set to load once the page has loaded using gtm.dom ready:

image145

 

For facebook social buttons you would use…

<script>function ccAddSocial(){ // onclick social event example

FB.Event.subscribe(‘edge.create’, function(targetUrl) {

dataLayer.push({

‘event’: ‘social’,

‘network’: ‘facebook’,

‘socialAction’: ‘like’,

‘opt_target’: targetUrl, // optional

‘opt_pagePath’: window.location.pathname + window.location.search, // optional

‘eventValue’: parseInt(0.00)

});

});

});

</script>

0117 3361103