Edit in JSFiddle

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 : 'analytics',
            label: 'Analytical Cookies',
            description: 'Analytical cookies help us to improve our website by collecting and reporting information on its usage.',
            cookies: ['_ga', '_gid', '_gat', '__utma', '__utmt', '__utmb', '__utmc', '__utmz', '__utmv'],
            onAccept : function(){
                // Add Google Analytics
                    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

                ga('create', 'UA-XXXXX-Y', 'auto');
                ga('send', 'pageview');
                // End Google Analytics
            onRevoke: function(){
                // Disable Google Analytics
                window['ga-disable-UA-XXXXX-Y'] = true;
                // End Google Analytics
            name : 'marketing',
            label: 'Marketing Cookies',
            description: 'We use marketing cookies to help us improve the relevancy of advertising campaigns you receive.',
            cookies: ['fr'],
            onAccept : function(){
                // Add Facebook Pixel
                fbq('init', 'xxxxxxxxxxxxxxx');
                fbq('track', 'PageView');
                fbq('consent', 'grant');
                // End Facebook Pixel
            onRevoke: function() {
            	fbq('consent', 'revoke');
            name : 'socialsharing',
            label: 'Social Sharing Cookies',
            description: 'We use some social sharing plugins, to allow you to share certain pages of our website on social media',
            cookies: ['__atuvc', '__atuvs'],
            onAccept : function(){
                // Add addThis
                var script = document.createElement("script");
                script.src = "//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-581b3669203a9a52";
                // End addThis
            onRevoke: function(){
            thirdPartyCookies: [{"name": "AddThis", "optOutLink": "http://www.addthis.com/privacy/opt-out"}]

CookieControl.load( config );