Skip to main content

Details about cookies on GOV.UK

GOV.UK puts small files (known as ‘cookies’) onto your computer to collect information about how you browse the site. Find out more about the cookies we use, what they’re for and when they expire.

Cookies that measure website use

We use Google Analytics cookies and a Real User Monitoring (RUM) cookie from SpeedCurve to collect information about how you use GOV.UK.

We use the following Google Analytics cookies on GOV.UK:

Name Purpose Expires
_ga These help us count how many people visit GOV.UK and other government digital services by tracking if you’ve visited before 2 years
_gid These help us count how many people visit GOV.UK and other government digital services by tracking if you’ve visited before 24 hours
_ga_S5RQ7FTGVR Used by Google Analytics to find and track an individual session with your device 2 years

You can opt out of Google Analytics cookies on the GOV.UK cookies page or by installing the Google Analytics Opt-out Browser Add-on.

You can read Google’s overview of data practices within Google Analytics.

Other government digital services also use Google Analytics cookies to collect information about how you use them and they share this information with us. Each digital service has its own consent mechanism and cookie policy that provides more information about their use of cookies.

The GOV.UK Privacy Notice has more information about the data we collect using Google Analytics cookies and information we receive from other digital services.

We also set our own cookie to understand how people move through the site:

Name Purpose Expires
analytics_next_page_call This lets us know the next page you visit on GOV.UK, so we can make journeys better When you close your browser

SpeedCurve RUM sets the following cookie:

Name Purpose Expires
lux_uid This lets us understand the web performance you experience while on GOV.UK 1 day or 30 minutes of inactivity

Comparing different versions of a webpage

We sometimes use analytics to try out different versions of pages to see which work better for users (‘multivariate testing’). We’ll save a cookie so that you consistently see the same version when browsing GOV.UK.

The cookie name will change but will be in the form ‘ABTest-[Test name]’ where the ‘Test name’ describes which part of GOV.UK is being tested.

This type of cookie will usually expire after between 1 and 4 weeks, but this may be longer for more in-depth tests.

If you have not opted in to this type of cookie, you’ll see the standard version of the page being tested.

JavaScript detection

We measure how many people visiting GOV.UK are using JavaScript, so that the site works for as many users as possible.

Name Purpose Expires
JS-Detection This tells us if you are browsing GOV.UK while running JavaScript 1 year

Cookies that help with our communications and marketing

Some GOV.UK pages may contain content from other sites, like YouTube or Flickr, which may set their own cookies. These sites are sometimes called ‘third party’ services. This tells us how many people are seeing the content and whether it’s useful.

In addition, if you share a link to a GOV.UK page, the service you share it on (for example, Facebook) may set a cookie. We have no control over cookies set on other websites - you can turn them off, but not through us.

YouTube videos

We use YouTube to show videos on some GOV.UK pages. YouTube sets cookies when you visit one of these pages.

Name Purpose Expires
_use_hitbox This is a randomly generated number that identifies your browser When you close your browser
VISITOR_INFO1_LIVE Lets YouTube count the views of embedded YouTube videos 9 months

Cookies that remember your settings

These cookies do things like remember your preferences and the choices you make, to personalise your experience of using GOV.UK.

Messages across GOV.UK

We might display a message on all GOV.UK pages to tell you about an important event or situation. We’ll save a cookie that will let us know how many times you’ve seen it, or if you’ve dismissed it.

Name Purpose Expires
global_bar_seen Remembers the number of times you’ve seen the message, or if you’ve dismissed it 12 weeks

Surveys

We will sometimes select users to take part in a survey, for example our performance survey. If you take part, or dismiss the survey, we’ll save a cookie that lets us know you’ve seen the message so that we do not show it to you again.

Name Purpose Expires
govuk_taken[NameOfSurvey] Saves a message to remember if you’ve taken the survey or dismissed it 4 months
govuk_surveySeen[NameOfSurvey] Saves a message to remember how many times you’ve seen the survey 2 years

We use SmartSurvey to collect responses to the survey. If you take part, SmartSurvey will save extra cookies to track your progress on their website.

Your location

We may give you the option of saving your home nation on pages where guidance is different if you’re in England, Scotland, Wales or Northern Ireland (for example, the UK bank holidays page).

If you save your location, we’ll save a cookie to your device so we can show you the most relevant information next time you visit that page.

Name Purpose Expires
user_nation Remembers if you saved your location on pages that can be adjusted based on your home nation 365 days

Strictly necessary cookies

Your progress when applying for a licence

When you use the ‘apply for a licence’ service, we’ll set a cookie to remember your progress through the forms. These cookies do not store your personal data and are deleted once you’ve completed the transaction.

Name Purpose Expires
licensing_session Set to remember information you’ve entered into a form when applying for a licence When you close your browser

Contacting GOV.UK

Name Purpose Expires
govuk_contact_referrer This lets us know the last page you visited before using the contact GOV.UK form 1 day

GOV.UK email subscriptions

If you sign up to receive email notifications from GOV.UK, we will save a cookie if you change your subscriptions. This cookie is deleted when you close your browser.

Name Purpose Expires
email-alert-frontend_session This remembers you as you change your email subscriptions When you close your browser

Cookies message

You may see a banner when you visit GOV.UK inviting you to accept cookies or review your settings. We’ll set cookies so that your computer knows you’ve seen it and not to show it again, and also to store your settings.

Name Purpose Expires
cookies_policy Saves your cookie consent settings 1 year
cookies_preferences_set Lets us know that you’ve saved your cookie consent settings 1 year

Change your settings

You can change which cookies you’re happy for us to use.

Updates to this page

Last updated 18 September 2024