1var apiKey = cookieControlSettings.apiKey; 2var product = cookieControlSettings.product; 3var domain = cookieControlSettings.domain; 4var googleId = cookieControlSettings.googleId 5 6if (googleId != '') { 7 window.dataLayer = window.dataLayer || []; 8 9 function gtag() { 10 dataLayer.push(arguments); 11 } 12 13 var config = { 14 apiKey: apiKey, 15 product: product, 16 necessaryCookies: [ 17 'no-more-survey' 18 ], 19 optionalCookies: [ 20 { 21 name: 'analytics', 22 label: 'Cookies that measure website use', 23 description: 'We use Google Analytics to measure how you use the website so we can improve it based on user needs. Google Analytics sets cookies that store anonymised information about how you got to the site, the blog pages you visit, how long you spend on each page and what you click on while you\'re visiting the site.', 24 cookies: ['_gid', '_gat', '_utma'], 25 onAccept: function () { 26 (function (w, d, s, l, i) { 27 w[l] = w[l] || []; 28 w[l].push({ 29 'gtm.start': 30 new Date().getTime(), event: 'gtm.js' 31 }); 32 var f = d.getElementsByTagName(s)[0], 33 j = d.createElement(s), dl = l !== 'dataLayer' ? '&l=' + l : ''; 34 j.async = true; 35 j.src = 36 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; 37 f.parentNode.insertBefore(j, f); 38 })(window, document, 'script', 'dataLayer', googleId); 39 gtag('consent', 'update', { 40 'analytics_storage': 'granted' 41 }); 42 }, 43 onRevoke: function () { 44 gtag('consent', 'update', { 45 'ad_storage': 'denied', 46 'analytics_storage': 'denied', 47 'ad_user_data': 'denied', 48 'ad_personalization': 'denied', 49 'functionality_storage': 'denied', 50 'personalization_storage': 'denied', 51 'security_storage': 'denied' 52 }) 53 }, 54 recommendedState: true 55 } 56 ], 57 closeStyle: 'icon', 58 initialState: 'top', 59 rejectButton: true, 60 setInnerHTML: true, 61 text: { 62 title: 'This site uses cookies', 63 intro: 'Cookies are files saved on your phone, tablet or computer when you visit a website. <br/><br/> We use cookies to store information about how you use the GOV.UK blogs website, such as the pages you visit.', 64 closeLabel: 'Save and Close', 65 acceptRecommended: 'Accept all cookies', 66 rejectSettings: 'Reject all cookies', 67 necessaryDescription: 'Necessary cookies enable core functionality. The website cannot function properly without these cookies, and they can only be deactivated by changing your browser preferences.', 68 thirdPartyTitle: 'Warning: Some cookies require your attention' 69 }, 70 statement: { 71 description: 'For more information, check the', 72 name: 'cookie statement', 73 url: 'https://www.blog.gov.uk/cookies/', 74 updated: '17/12/2019' 75 }, 76 branding: { 77 removeAbout: true 78 }, 79 position: 'LEFT', 80 theme: 'LIGHT', 81 subDomains: false 82 }; 83 84 gtag('consent', 'default', { 85 'ad_storage': 'denied', 86 'analytics_storage': 'denied', 87 'ad_user_data': 'denied', 88 'ad_personalization': 'denied', 89 'functionality_storage': 'denied', 90 'personalization_storage': 'denied', 91 'security_storage': 'denied' 92 }); 93 94 CookieControl.load(config); 95}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.