var config = { "apiKey": "a75e41ff06ebc2351f1e8a5020dc19d8f9c87a73", "product": "COMMUNITY", "logConsent": true, "subDomains": true, "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 window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-X7H0BQ5JNS'); // End Google Analytics }, onRevoke: function(){ // Disable Google Analytics window['ga-disable-G-X7H0BQ5JNS'] = 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": [], "onAccept": "function () {}", "onRevoke": "function () {}" }], "theme": "light", "iabCMP": false }; CookieControl.load( config );