CINXE.COM
How we use cookies – The City of Edinburgh Council
<!DOCTYPE html> <!--[if lt IE 7]> <html class="lt-ie10 lt-ie9 lt-ie8 lt-ie7 no-js" lang="en"> <![endif]--> <!--[if IE 7]> <html class="lt-ie10 lt-ie9 lt-ie8 no-js" lang="en"> <![endif]--> <!--[if IE 8]> <html class="lt-ie10 lt-ie9 no-js" lang="en"> <![endif]--> <!--[if IE 9]> <html class="lt-ie10 no-js" lang="en"> <![endif]--> <!--[if gt IE 9]><!--> <html class=" no-js" lang="en"><!--<![endif]--> <head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("http://web.archive.org/web"); __wm.wombat("https://www.edinburgh.gov.uk/cookies","20221016150232","http://web.archive.org/","web","/_static/", "1665932552"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <meta charset="UTF-8"> <title>How we use cookies – The City of Edinburgh Council</title> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="alternate" type="application/rss+xml" href="/web/20221016150232/https://www.edinburgh.gov.uk/rss/news"> <link rel="apple-touch-icon" sizes="180x180" href="/web/20221016150232im_/https://www.edinburgh.gov.uk/site/images/favicons/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="32x32" href="/web/20221016150232im_/https://www.edinburgh.gov.uk/site/images/favicons/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="/web/20221016150232im_/https://www.edinburgh.gov.uk/site/images/favicons/favicon-16x16.png"> <link rel="manifest" href="/web/20221016150232/https://www.edinburgh.gov.uk/site/images/favicons/site.webmanifest"> <link rel="mask-icon" href="/web/20221016150232im_/https://www.edinburgh.gov.uk/site/images/favicons/safari-pinned-tab.svg" color="#6d3465"> <link rel="shortcut icon" href="/web/20221016150232im_/https://www.edinburgh.gov.uk/site/images/favicons/favicon.ico"> <meta name="msapplication-TileColor" content="#6d3465"> <meta name="msapplication-config" content="/site/images/favicons/browserconfig.xml"> <meta name="theme-color" content="#ffffff"> <link href="http://web.archive.org/web/20221016150232cs_/https://fonts.googleapis.com/css?family=Roboto:400,400i,500,500i,700,700i" rel="stylesheet"> <link rel="stylesheet" href="/web/20221016150232cs_/https://www.edinburgh.gov.uk/site/dist/orbit.css"> <link rel="stylesheet" type="text/css" href="/web/20221016150232cs_/https://www.edinburgh.gov.uk/site/styles/150120.css"> <meta name="revisit-after" content="2 days"> <meta name="robots" content="index,follow"> <meta name="author" content="beta.edinburgh.gov.uk"> <meta name="keywords" content=""> <meta name="description" content="Read about the cookies we use"> <meta property="dcterms:creator" content="Ana Dragic"> <meta property="dcterms:rightsHolder" content="beta.edinburgh.gov.uk"> <meta property="dcterms:coverage" content="UK"> <meta property="dcterms:identifier" content="https://www.edinburgh.gov.uk/cookies"> <meta property="dcterms:publisher" content="beta.edinburgh.gov.uk"> <meta property="dcterms:subject" content=""> <meta property="dcterms:description" content="Read about the cookies we use"> <meta property="dcterms:title" content="How we use cookies"> <meta property="dcterms:format" content="text/html"> <meta property="dcterms:language" content="en"> <meta property="dcterms:created" content="2019-03-13"> <meta property="dcterms:modified" content="2019-03-13"> <meta property="og:title" content="How we use cookies – The City of Edinburgh Council"> <meta property="og:site_name" content="The City of Edinburgh Council"> <meta property="og:type" content="website"> <meta property="og:url" content="http://web.archive.org/web/20221016150232/https://www.edinburgh.gov.uk/cookies"> <meta property="og:image" content="http://web.archive.org/web/20221016150232im_/https://www.edinburgh.gov.uk/site/dist/icons/png/logo.png"> <meta property="og:image:alt" content="The City of Edinburgh Council"/> <script src="/web/20221016150232js_/https://www.edinburgh.gov.uk/site/dist/libs/modernizr-custom.js"></script> <meta name="google-site-verification" content="NqqP9OeqOPLQvc9M8ID4KiYlHGMcTnp_daEi2MTTe6I"/> <script src="/web/20221016150232js_/https://www.edinburgh.gov.uk/site/js/swfobject.min.js"></script> </head> <body class="two-column document-article"> <nav class="skip-links" aria-label="Skip link Navigation"> <ul class="list list--skip-links"> <li class="list__item"> <a class="list__link" href="#content" rel="nofollow"> Skip to content </a> </li> <li class="list__item"> <a class="list__link" href="#js-menu-toggle" rel="nofollow"> Skip to navigation </a> </li> </ul> </nav> <header class="site-header" id="top"> <div class="container"> <div class="identity"> <a href="/web/20221016150232/https://www.edinburgh.gov.uk/" class="identity__link" title="The City of Edinburgh Council Home Page"> <picture> <source srcset="/web/20221016150232im_/https://www.edinburgh.gov.uk/site/dist/images/edinburgh-logo.svg" type="image/svg+xml"> <img src="/web/20221016150232im_/https://www.edinburgh.gov.uk/site/dist/images/edinburgh-logo.png" class="identity__logo" alt="Logo: The City of Edinburgh Council"/> </picture> <span class="visually-hidden">The City of Edinburgh Council</span> </a> </div> <nav class="nav nav--primary-navigation" aria-label="Main Navigation"> <div class="account-navigation"><ul class="list list--inline"><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/myaccount">My Account</a></li></ul></div><div class="navigation-buttons"><ul class="list list--inline"><li class="list__item list__item--account"><a class="button button--icon" href="/web/20221016150232/https://www.edinburgh.gov.uk/myaccount"><span class="icon icon-ui-account-primary"></span><span class="icon-fallback">My Account</span></a></li><li class="list__item"><a class="button button--icon list__link js-search-toggle js-toggle" id="js-search-toggle" href="#js-search" data-a11y-toggle="js-search"><span class="icon icon-ui-search-primary search-icon"></span><span class="icon toggle-icon toggle-icon--search"><span class="toggle-icon__line"></span></span><span class="button__text">Search</span></a><button class="visually-hidden search-hidden-focus" data-focus="search-site-header">Search our site</button></li><li class="list__item"><a class="button button--icon list__link js-menu-toggle js-toggle" id="js-menu-toggle" href="#js-menu" data-a11y-toggle="js-menu"><span class="icon toggle-icon"><span class="toggle-icon__line"></span></span><span class="button__text">Menu</span></a></li></ul></div> </nav> </div> <form class="site-search form form--search site-search--header" id="js-search" action="/web/20221016150232/https://www.edinburgh.gov.uk/site-search/results/" method="get"> <div class="container"> <div class="form__control"> <label class="form__label visually-hidden" for="search-site-header"> Search </label> <div class="form__append-group"> <input class="form__field" type="search" size="18" maxlength="40" name="q" placeholder="Search" id="search-site-header"> <button class="button" type="submit"> <span class="icon icon-ui-search"></span> <span class="icon-fallback">Search</span> </button> </div> </div> </div> <button class="visually-hidden site-search__focus-button" data-focus="js-search-toggle">View menu</button> </form> <div class="menu-navigation" id="js-menu"> <div class="container"> <nav class="nav" aria-label="Our services"> <h2 class="nav__heading">Our services</h2> <ul class="list list--3up"><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/archives/edinburgh-city-archives-1">Archives</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/benefits-grants">Benefits and grants</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/bins-recycling">Bins and recycling</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/births-marriages-deaths">Births, marriages and deaths</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/business">Business</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/council-democracy">Council and Committees</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/council-tax">Council Tax</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/emergencies-safety-crime">Emergency, safety and crime</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/events-venues">Events and venues</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/say">Have your say</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/housing">Housing</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/jobs-training-volunteering">Jobs, training and volunteering</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/leisure-sport-culture">Leisure, sports and culture</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/libraries">Libraries</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/MovingtoEdinburgh">Moving to Edinburgh</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/news">News</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/pay">Pay a bill</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/pests-pollution-noise-food">Pests, pollution, noise and food</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/planning-building">Planning and building</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/request">Request a service</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/report">Report an issue</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/roads-travel-parking">Roads, travel and parking</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/schools-learning">Schools and learning</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/social-care-health">Social care and health</a></li><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/strategy-performance-research">Strategy, performance and research</a></li></ul> </nav> </div> </div> </header> <nav class="breadcrumb" aria-label="Breadcrumb Navigation"> <div class="container"> <ol class="list list--breadcrumb"> <li class="list__item"> <a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/" rel="home"> Home </a> </li> <li class="list__item"> <a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/council-democracy"> Council and Committees </a> </li> <li class="list__item"> <a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/managing-information"> Managing information </a> </li> <li class="list__item"><span>How we use cookies</span></li> </ol> </div> </nav> <main class="site-main"> <div class="container"> <section class="site-content" id="content" tabindex="-1" aria-label="Site content area"> <h1 class="page-heading"> How we use cookies </h1> <div class="page-content"> <div class="editor"> <p>We want to make services we deliver on the internet easy, and our content richer and relevant. This sometimes involves placing cookies on your computer or mobile device.</p> <p>Cookies are simple pieces of data stored on your hard drive. They are safe as they cannot be used to spread viruses. Cookies we use cannot be used to identify you personally as no personal information such as telephone numbers or email addresses is in these cookies.</p> <h2>Cookies used on our website</h2> <h3>Operational cookies</h3> <p>These cookies expire as soon as a user quits their browser.</p> <p>These cookies are necessary for our site to operate and do not contain personal data. We consider these cookies necessary to provide a service to the user.</p> <ul> <li><strong>__cfduid</strong> checks visitors are genuine for security purposes.</li> <li><strong>CookieControl</strong> remembers your cookie settings</li> <li><strong>PHPSESSID</strong> stores the session id of a user. This determines whether a user is logged in to our website. Session data is also stored when a user is filling in a form, but the data is stored on the server and not in the cookie</li> </ul> <h3>Operational cookies for logging in</h3> <p>The following session cookies are only used for users that authenticate (log in) to edinburgh.gov.uk and are automatically destroyed when the browser is closed.</p> <p>These cookies are necessary for our site to operate and do not contain personal data. These cookies are essential to let you log in to the site.</p> <ul> <li><strong>IV_JCT </strong>maintains state during authentication</li> <li><strong>edi_sms</strong> is used for presentation purposes only, to tell that a user has logged on</li> <li><strong>AMWEBJCT!%2Fsps!JSESSIONID</strong> maintains state during authentication</li> <li><strong>AMWEBJCT!%2FCAS!JSESSIONID </strong>maintains state during authentication</li> <li><strong>AMWEBJCT!%2FCAS!FIM_IVTAPP_TARGET</strong> maintains state during authentication</li> <li><strong>AMWEBJCT!%2FCAS!https%3A%2F%2Fauth.edinburgh.gov.uk%2Fsps%2FCAS%2Fsaml20FIMSAML20</strong> maintains state during authentication</li> </ul> <p>The following cookie is set to expire after 1 hour</p> <ul> <li><strong>edi_redirect</strong> - preserves the original requested url during authentication with MyGovScot myaccount. </li> </ul> <h3>Usage and analytics cookies</h3> <p>We use Google Analytics to collect statistical data about our visitors. We collect this information in a way that does not identify you and the data is not shared with anybody else.</p> <ul> <li><strong>_ga</strong> expires after 2 years and is used to distinguish users.</li> <li><strong>_gid</strong> expires after 24 hours and is used to distinguish users.</li> <li><strong>_gat</strong> expires after 1 minute and is used to throttle request rate.</li> </ul> <p>Information on how to opt out of being tracked by Google Analytics across all websites and Google's use of cookies can be found on <a href="http://web.archive.org/web/20221016150232/https://tools.google.com/dlpage/gaoptout">Google Analytics Opt-out</a> and <a href="http://web.archive.org/web/20221016150232/http://www.google.com/policies/privacy/">Google privacy pages</a>.</p> <h3>Embedded content and social media cookies</h3> <p>The Council website may contain an embedded content and social media third-party cookies.</p> <p>Cookies placed on your computer or mobile device from a third party are not related to edinburgh.gov.uk. The Council does not control how a third party uses their cookies. Please check third party websites' privacy policies.</p> <p>Our site has a number of pages with embedded videos or other content that utilise cookies from a third party to enable this.</p> <ul> <li><a href="http://web.archive.org/web/20221016150232/https://twitter.com/privacy">Twitter privacy policy</a></li> <li><a href="http://web.archive.org/web/20221016150232/http://www.youtube.com/t/privacy">YouTube privacy policy</a></li> <li><a href="http://web.archive.org/web/20221016150232/https://www.facebook.com/policy.php">Facebook Data use policy</a></li> </ul> <h2>Deleting cookies</h2> <p>You can delete cookies from your device and change cookies setting in your browser <a href="http://web.archive.org/web/20221016150232/http://www.aboutcookies.org/how-to-delete-cookies/">How to delete cookies</a>.</p> </div> </div> <aside class="aside aside--sidebar" aria-label="Aside Navigation"> </aside> </section> <script> if (document.cookie.split(';').some(function (item) { return item.trim().startsWith('CookieControl='); })) { let cookieControl = document.cookie .split('; ') .find(function (row) { return row.startsWith('CookieControl'); }) .split('=')[1]; let analyticsCookie = JSON.parse(cookieControl); if (analyticsCookie.optionalCookies.analytics === 'accepted') { let request = new XMLHttpRequest(); request.open('GET', 'http://web.archive.org/web/20221016150232/https://www.edinburgh.gov.uk/webbots/snippet', true); request.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); request.onload = function() { if (request.status === 200) { let response = request.responseText; let head = document.querySelector('head'); let snippet = document.createRange().createContextualFragment(response); head.appendChild(snippet); } }; request.send(); } } </script> </div> </main> <footer class="site-footer"> <div class="container container--flex"> <nav class="site-footer__group" aria-label="Footer Navigation"> <ul class="list list--4up"><li class="list__item"><a class="list__link" href="/web/20221016150232/https://www.edinburgh.gov.uk/news">News</a></li><li class="list__item"><a class="list__link" href="http://web.archive.org/web/20221016150232/https://www.edinburgh.gov.uk/contact">Contact us</a></li><li class="list__item"><a class="list__link" href="http://web.archive.org/web/20221016150232/https://www.edinburgh.gov.uk/workforus">Work for us</a></li><li class="list__item"><a class="list__link" href="http://web.archive.org/web/20221016150232/https://www.edinburgh.gov.uk/cookies">Cookies</a></li><li class="list__item"><a class="list__link" href="http://web.archive.org/web/20221016150232/https://www.edinburgh.gov.uk/privacy">Privacy</a></li><li class="list__item"><a class="list__link" href="http://web.archive.org/web/20221016150232/https://www.edinburgh.gov.uk/terms">Terms and disclaimer</a></li><li class="list__item"><a class="list__link" href="http://web.archive.org/web/20221016150232/https://www.edinburgh.gov.uk/languages">Languages</a></li><li class="list__item"><a class="list__link" href="http://web.archive.org/web/20221016150232/https://www.edinburgh.gov.uk/accessibility">Accessibility</a></li></ul> </nav> </div> <div class="container"> <nav class="nav nav--social-links" aria-label="Social Links"><ul class="list list--inline"><li class="list__item"><a class="list__link" href="http://web.archive.org/web/20221016150232/https://www.facebook.com/edinburghcouncil" title="Find us on Facebook" target="_blank" rel="noopener"><span class="icon icon-social-facebook"></span><span class="visually-hidden">Find us on Facebook</span></a></li><li class="list__item"><a class="list__link" href="http://web.archive.org/web/20221016150232/https://www.youtube.com/user/EdinburghCouncil" title="Youtube" target="_blank" rel="noopener"><span class="icon icon-social-youtube"></span><span class="visually-hidden">Youtube</span></a></li><li class="list__item"><a class="list__link" href="http://web.archive.org/web/20221016150232/https://twitter.com/Edinburgh_CC" title="Follow us on Twitter" target="_blank" rel="noopener"><span class="icon icon-social-twitter"></span><span class="visually-hidden">Follow us on Twitter</span></a></li><li class="list__item"><a class="list__link" href="http://web.archive.org/web/20221016150232/https://www.flickr.com/photos/edinburghcouncil" title="Flickr" target="_blank" rel="noopener"><span class="icon icon-social-flickr"></span><span class="visually-hidden">Flickr</span></a></li><li class="list__item"><a class="list__link" href="http://web.archive.org/web/20221016150232/https://www.linkedin.com/company/city-of-edinburgh-council/" title="Linkedin" target="_blank" rel="noopener"><span class="icon icon-social-linkedin"></span><span class="visually-hidden">Linkedin</span></a></li><li class="list__item"><a class="list__link" href="http://web.archive.org/web/20221016150232/https://www.pinterest.co.uk/edinburghcc/" title="Pinterest" target="_blank" rel="noopener"><span class="icon icon-social-pinterest"></span><span class="visually-hidden">Pinterest</span></a></li></ul></nav> </div> <div class="site-footer__bottom"> <div class="container"> <p class="site-footer__text site-footer__rights">© The City of Edinburgh Council</p> <p class="site-footer__text"> Designed and Powered by <a class="site-footer__link" href="http://web.archive.org/web/20221016150232/https://www.jadu.net/">Jadu</a>. </p> <a class="button button--square back-to-top" href="#top" rel="nofollow" data-scroll-to="#top" title="Back to Top"> <span class="visually-hidden">Back to the top</span> <span class="icon icon-ui-chevron-up-black"></span> </a> </div> </div> </footer> <link rel="stylesheet" href="/web/20221016150232cs_/https://www.edinburgh.gov.uk/site/dist/icons/icons.data.svg.css"> <script src="//web.archive.org/web/20221016150232js_/https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="/site/dist/libs/jquery.min.js"><\/script>');</script> <script src="/web/20221016150232js_/https://www.edinburgh.gov.uk/site/dist/orbit.js"></script> <script src="/web/20221016150232js_/https://www.edinburgh.gov.uk/site/js/almond.min.js"></script> <script src="/web/20221016150232js_/https://www.edinburgh.gov.uk/site/js/util.min.js"></script> <script> // IE Polyfill if (typeof Object.assign !== 'function') { // Must be writable: true, enumerable: false, configurable: true Object.defineProperty(Object, "assign", { value: function assign(target, varArgs) { // .length of function is 2 'use strict'; if (target == null) { // TypeError if undefined or null throw new TypeError('Cannot convert undefined or null to object'); } var to = Object(target); for (var index = 1; index < arguments.length; index++) { var nextSource = arguments[index]; if (nextSource != null) { // Skip over if undefined or null for (var nextKey in nextSource) { // Avoid bugs when hasOwnProperty is shadowed if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) { to[nextKey] = nextSource[nextKey]; } } } } return to; }, writable: true, configurable: true }); } (function() { function CludoAnalytics (params) { this.baseUrl = params.apiHostname + '/api/v3/'; this.customerID = params.customerID; this.engineID = params.engineID; this.query = this.htmlDecode(params.query); this.queryID = params.queryID; this.resultsFound = params.resultsFound; this.referralUrl = params.referralUrl; this.sessionId = ''; this.querySessionId = ''; this.sessionExpiry = 30 * 60 * 1000; // get ref values form localStorage, then remove to prevent erroneous duplication this.refurl = this.getValue('refurl'); this.refpt = this.getValue('refpt'); this.removeValue('refurl'); this.removeValue('refpt'); // if null, user went directly to search results page, so use as ref if (this.refurl === null) { this.refurl = window.location.protocol + '//' + window.location.hostname + window.location.pathname; } if (this.refpt === null) { this.refpt = document.title; } } CludoAnalytics.prototype.storeValue = function (key, value) { if (this.isLocalStorageSupported()) { localStorage.setItem(key, value); return true; } return false; }; CludoAnalytics.prototype.getValue = function (key) { if (this.isLocalStorageSupported()) { return localStorage.getItem(key); } }; CludoAnalytics.prototype.removeValue = function (key) { if (this.isLocalStorageSupported()) { return localStorage.removeItem(key); } }; CludoAnalytics.prototype.isLocalStorageSupported = function () { try { localStorage.setItem('jadu', 'jadu'); localStorage.removeItem('jadu'); return true; } catch (error) { return false; } }; CludoAnalytics.prototype.generateUuid = function () { var dateTime = new Date().getTime(); return 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function(char) { var r = (dateTime + Math.random() * 16) % 16 | 0; dateTime = Math.floor(dateTime / 16); return (char === 'x' ? r :(r & 0x3 | 0x8)).toString(16); }); }; CludoAnalytics.prototype.isSessionExpired = function (sessionLastActive) { var currentTime = new Date(); var lastActiveTime = new Date(sessionLastActive); return ((currentTime - lastActiveTime) > this.sessionExpiry); }; CludoAnalytics.prototype.getSessionUuid = function () { var sessionId = this.getValue('JaduCludoSessionId'); var sessionLastActive = this.getValue('JaduCludoSessionLastActive'); if (sessionId === null || this.isSessionExpired(sessionLastActive)) { sessionId = this.generateUuid(); this.storeValue('JaduCludoSessionId', sessionId); } this.storeValue('JaduCludoSessionLastActive', new Date()); return sessionId; }; CludoAnalytics.prototype.getQuerySessionUuid = function () { var querySessionId = this.getValue('JaduCludoQuerySessionId'); if (querySessionId === null) { querySessionId = this.generateUuid(); this.storeValue('JaduCludoQuerySessionId', querySessionId); } return querySessionId; }; CludoAnalytics.prototype.appendParams = function (baseUrl, params) { params = params || {}; var queryString = ''; Object.keys(params).map(function (key) { if (queryString !== '') { queryString += '&'; } queryString += key + '=' + encodeURIComponent(params[key]) }); if (queryString === '') { return baseUrl; } return baseUrl + '?' + queryString; }; CludoAnalytics.prototype.postRequest = function (url, onSuccess, onFailure) { var request = new XMLHttpRequest(); request.open('POST', url, true); request.setRequestHeader('Content-type', 'application/json;charset=UTF-8'); request.onload = function () { if (request.status === 200) { if (typeof onSuccess === 'function') { onSuccess(JSON.parse(request.responseText)); } } if (typeof onFailure === 'function') { onFailure(); } }; if (typeof onFailure === 'function') { request.onerror = onFailure; } request.send(); }; CludoAnalytics.prototype.buildBaseParams = function () { var params = { sw: this.query, hn: window.location.hostname, rc: this.resultsFound, qid: this.queryID, sid: this.getSessionUuid(), qsid: this.getQuerySessionUuid() }; if (this.refurl !== null && this.refpt !== null) { // set refurl / refpt to those set in localStorage params.refurl = this.refurl; params.refpt = this.refpt; } else if (this.referralUrl !== '') { // if localStorage not available, default to symfony supplied referral, if set params.refurl = this.referralUrl; params.refpt = this.referralUrl; } return params; }; CludoAnalytics.prototype.htmlDecode = function (string) { var whiteListCharacters = { '&': '&', '>': '>', '<': '<', '"': '"', ''': '\'', ''': '\'' }; if (!string) { return ''; } Object.keys(whiteListCharacters).map(function (escapedString) { string = String(string).replace(new RegExp(escapedString, 'g'), whiteListCharacters[escapedString]); }); return string; }; CludoAnalytics.prototype.getUrlParameter = function(parameterName) { var items = location.search.substr(1).split('&'); for (var i = 0; i < items.length; i++) { var currentItem = items[i].split('='); if (currentItem[0] === parameterName) { return decodeURIComponent(currentItem[1]); } } return null; }; CludoAnalytics.prototype.queryLog = function (additionalParams) { if (this.getUrlParameter('startNum') !== null) { // we're on a paginated search result page, so don't post queryLog return; } var baseUrl = this.baseUrl + this.customerID + '/' + this.engineID + '/search/pushstat/querylog'; var baseUrlParams = this.buildBaseParams(); var params = typeof additionalParams === 'object' ? Object.assign(additionalParams, baseUrlParams) : baseUrlParams; var requestUrl = this.appendParams(baseUrl, params); this.postRequest(requestUrl); }; CludoAnalytics.prototype.clickLog = function (additionalParams, onSuccessCallback, onErrorCallback) { var baseUrl = this.baseUrl + this.customerID + '/' + this.engineID + '/search/pushstat/clicklog'; var baseUrlParams = this.buildBaseParams(); var params = typeof additionalParams === 'object' ? Object.assign(additionalParams, baseUrlParams) : baseUrlParams; var requestUrl = this.appendParams(baseUrl, params); this.postRequest(requestUrl, onSuccessCallback, onErrorCallback); }; CludoAnalytics.prototype.addSearchFormListener = function () { var searchForm = document.querySelectorAll('form.site-search'); if (!searchForm || !searchForm[0]) { console.warn('Unable to find search form \'form.site-search\''); return; } searchForm[0].addEventListener('submit', function () { this.storeValue('refurl', window.location.protocol + '//' + window.location.hostname + window.location.pathname); this.storeValue('refpt', document.title); this.storeValue('JaduCludoQuerySessionId', this.generateUuid()); }.bind(this)); }; CludoAnalytics.prototype.getCludoBannerProperties = function () { var banners = document.querySelectorAll('div.cludo-banner'); if (!banners || !banners[0]) { return; } // only one banner is shown, so get the first element var bannerId = banners[0].getAttribute('data-banner-id'); if (bannerId === null || bannerId === '') { return; } return { ban: 1, bnrs: bannerId }; }; CludoAnalytics.prototype.initCludoBannerClickLog = function () { var banners = document.querySelectorAll('div.cludo-banner'); if (!banners || !banners[0]) { return; } // only one banner is shown, so get the first element var banner = banners[0]; var bannerId = banner.getAttribute('data-banner-id'); if (bannerId === null || bannerId === '') { return; } var bannerLinks = banner.querySelectorAll('a'); this.initLinkClickLog(bannerLinks, { cloi: bannerId, ls: 'banner' }); }; CludoAnalytics.prototype.initLinkClickLog = function (links, additionalParams) { if (!links.length) { return; } for (var i = 0; i < links.length; i++) { var link = links[i]; link.onclick = function (event) { var e = event || window.event; var target = e.currentTarget || e.srcElement; // detect if link should be opened in a new tab var openInNewTab = ( e.ctrlKey || e.shiftKey || e.metaKey || (e.button && e.button === 1) ); if (target.getAttribute('target') === '_blank') { openInNewTab = true; } if (openInNewTab) { var newWindow = window.open('', '_blank'); } // prevent default event to allow ajax request to complete before forwarding user if (e.preventDefault()) { e.preventDefault(); } else { e.returnValue = false; } if (e.stopPropagation()) { e.stopPropagation(); } else { e.cancelBubble = true; } var linkUrl = target.getAttribute('href'); var linkTitle = typeof target.text !== 'undefined' ? target.text : ''; function goToResult() { if (newWindow) { newWindow.location = linkUrl; } else { window.location = linkUrl; } } var baseParams = { clurl: linkUrl, cli: i, title: linkTitle }; var params = typeof additionalParams === 'object' ? Object.assign(additionalParams, baseParams) : baseParams; this.clickLog(params, function () { // onSuccess callback goToResult(); }, function () { // onError callback goToResult(); }); }.bind(this); } }; function initAnalytics() { var apiHostname = 'http://web.archive.org/web/20221016150232/https://api-eu1.cludo.com'; var engineID = 10781; var customerID = 2361; var query = ''; var queryID = ''; var resultsFound = 0; var referralUrl = 'http://web.archive.org/web/20221016150232/https://www.edinburgh.gov.uk/'; var cludoAnalytics = new CludoAnalytics({ apiHostname: apiHostname, engineID: engineID, customerID: customerID, query: query, queryID: queryID, resultsFound: resultsFound, referralUrl: referralUrl }); cludoAnalytics.addSearchFormListener(); if (engineID === -1 || customerID === -1) { // without engineID or customerID cannot post to API, so return return; } if (queryID === '') { // if queryID is empty, we're not on the results page, so return return; } var queryLogParams = {}; var bannerProperties = cludoAnalytics.getCludoBannerProperties(); if (bannerProperties) { queryLogParams = Object.assign(bannerProperties, queryLogParams); } cludoAnalytics.queryLog(queryLogParams); cludoAnalytics.initCludoBannerClickLog(); var searchResults = document.querySelectorAll('ul.search-results > li a'); if (!searchResults.length) { return; } cludoAnalytics.initLinkClickLog(searchResults); } window.addEventListener('load', function () { initAnalytics(); }); }()) </script> <!-- GOOGLE ANALYTICS --> <noscript><iframe src="//web.archive.org/web/20221016150232if_/https://www.googletagmanager.com/ns.html?id=GTM-P39M2V" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//web.archive.org/web/20221016150232/https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-P39M2V');</script> <!-- GA4 ANALYTICS gtag --> <script async src="http://web.archive.org/web/20221016150232js_/https://www.googletagmanager.com/gtag/js?id=G-ENB58TQFF8"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-ENB58TQFF8'); </script> <!-- COOKIE TOOL --> <!-- our additional styling --> <style> /* makes focus visible on the footer icon for accessibility */ #ccc-icon:focus { filter: invert(100%); border: 1px dotted dimgrey; } /* removes overlay to fix search issue and removes analytics section with toggle */ #ccc-overlay, #ccc-optional-categories { display: none; } </style> <!-- the code for the tool itself--> <script src="http://web.archive.org/web/20221016150232js_/https://cc.cdn.civiccomputing.com/9/cookieControl-9.x.min.js"></script> <script> var config = { apiKey: '1d635334d612bbaeef94d8028c6905934aec283f', product: 'PRO', necessaryCookies: ['IV_JCT','edi_sms', 'AMWEBJCT!%2Fsps!JSESSIONID', 'AMWEBJCT!%2FCAS!JSESSIONID', 'AMWEBJCT!%2FCAS!FIM_IVTAPP_TARGET', 'AMWEBJCT!%2FCAS!https%3A%2F%2Fauth.edinburgh.gov.uk%2Fsps%2FCAS%2Fsaml20FIMSAML20', 'edi_redirect', 'amFkdSBjbG91ZGZsYXJlIGNkbiBieXBhc3MgbGl2ZQ'], optionalCookies: [{ name : 'analytics', label: 'Analytics 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(){(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date(); a=s.createElement(o), m=s.getElementsByTagName(o)[0]; a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','http://web.archive.org/web/20221016150232/https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-11731499-1', 'auto'); ga('send', 'pageview');}, onRevoke: function(){window['ga-disable-UA-11731499-1'] = true;}, recommendedState: true, }], statement: { description: 'For more information visit our', name: 'cookies page', url: '/cookies', updated: '06/04/2020' }, initialState: 'OPEN', position: 'left', theme: 'DARK', closeStyle: 'icon', text: { intro: "<p>Some cookies are necessary for the site to work. You can only disable these by changing your browser preferences.</p><p>We'd also like to use analytics cookies, as they help us improve our website by providing information on its usage.</p>", acceptSettings: "OK to use analytics cookies", rejectSettings: "Don't use analytics cookies", necessaryTitle: "", necessaryDescription: "" }, setInnerHTML: true, branding: { fontFamily: 'Roboto, sans-serif', fontSizeTitle: '1.2em', fontSizeIntro: '1em', fontSizeHeaders: '1em', fontSize: '1em', backgroundColor: '#6D3465', toggleText: '#fff', toggleColor: '#2f2f5f', toggleBackground: '#111125', removeAbout: true }, accessibility: { highlightFocus: true, outline: true } }; CookieControl.load( config ); </script> </body> </html> <!-- FILE ARCHIVED ON 15:02:32 Oct 16, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 04:35:12 Dec 12, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.605 exclusion.robots: 0.043 exclusion.robots.policy: 0.03 esindex: 0.011 cdx.remote: 2.989 LoadShardBlock: 46.596 (3) PetaboxLoader3.datanode: 61.137 (4) load_resource: 101.474 PetaboxLoader3.resolve: 49.325 -->