New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cookie banner #12
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Also: (how) is this different from the cookies link in the footer? |
I'm going to add this to my service. One question: should it say 'GOV.UK uses...' or 'Service name uses...' - I reckon the latter. It's the service setting the cookies, and the service's cookie policy you'll get to when you visit the link. |
Just to note that a version of this was added to |
@MalcolmVonMoJ Thanks for sharing. Just a comment on the mandatory cookies - I didn't understand the logic of accept mandatory cookies as a thing, but like what you have done. Hope your UR will explore the user journey between GOV.UK and Legal Aid and how users perceive the two banners. |
Mandatory cookies: my terminology for "strictly necessary cookies".
Our service uses some cookies that fall into this category, so if we offered a choice to reject all cookies, this would either be misleading or essentially stop them from using the service. We'd therefore need to rephrase it to something akin to "only accept strictly necessary cookies" or "reject all optional cookies". Various different ways of phrasing it but they are all a bit wordy. Anyway, user research continues... The journey from GOV.UK to the service is part of the research. |
Hi again. Also interested in your reasoning
Again, that would be great to explore in UR as there's been a lot of supposition around the need for a consistent pattern. (But may be there a consistently differentiated pattern??) |
@peter-jordan, I just realised I didn't answer you - or at least not here. Apologies. If I recall correctly, testing shewed that users could become exasperated when they had just accepted cookies on the GOV.UK page - perhaps the one with the Start button - but then are asked again when they enter the service. It was thought that a distinct pattern (from the main GOV.UK) would help them understand that the question was different, that we are asking for this service only and not the whole of GOV.UK. |
Quick response, as I'm not working this pm. I'd like a next week if poss. Monday? |
I am working from Tuesday next week. If you want to talk about our decisions, I should be able to find some time. Ordinarily, it would be wise to include our interaction designer as well, but unfortunately today is his last day for a fortnight. I'll see if I can get his thoughts on this and will post them here. |
Hey Malcolm. Any chance of a chat Tue pm or Wed am? I'm trying to pull together an idea of what different depts have been doing. |
@peter-jordan, yes, I should think so. How can I contact you? I have a few slots this afternoon, most of tomorrow before midday is free too. |
On ukgovernmentdigital.slack.com Slack @peterbjordan_gds ?? I'm free 15:00-17:30 today or 09:30-11:00 Wed |
For reference, this is what the “Find postgraduate teacher training” service did: |
Cheers @fofr |
@fofr Really useful and interesting to read that. I've also not seen a design history site like that before, great concept. (Reminds me of something in "The Design of Design" by Fred Brooks of keeping a diary of design decisions during a project, both for the project itself, and for others to learn from.) |
Really great work on this – we will soon be AB testing a variety of cookie banner options on Teaching Vacancies at DfE and will make sure to feed back our findings as well. One thing I'm not sure I understand is why there is a version for "only essential cookies" at all – my understanding is that that negates the need for a cookie banner, and is something IMHO every service should strive for anyway because they're one of the worst things to ever happen the internet (but that's a personal opinion). See e.g. Github's move to eliminate non-essential cookies. Perhaps a wider piece of guidance for services around cookies and avoiding them may be helpful, as well as alternatives to serving the business need of gathering data and improving their service – but that's obviously a bit beyond the remit of the Design System! |
Could be. Users might still expect to see something telling them what the deal is with cookies, given that they frequently will on other sites. (I'm not familiar with any research on this, so I'm just speculating.) |
Accessibility of the GOV.UK Design System cookie bannerWe have a card to consider publishing some of these findings in the Design System guidance. Summary of what the GOV.UK Design System team did to make the cookie banner accessible
What we tested for
Issues we found in the first round of manual testing
Fixes we made before a second round of manual testingTo try and fix the above, we did the following:
Findings from the second round of manual testing
Feedback from the GDS accessibility clinic
Outcomes from the accessibility testing and related fixes
|
We’ve updated the guidance in the cookie banner componentWe've added more guidance in the cookie banner component to help service teams take the best approach depending on the cookies they use — organised into 3 options. Teams who added the GOV.UK Design System cookie banner component to their service using the past guidance do not need to make any changes. Problems we wanted to solveSince releasing the cookie banner component, service teams told us they still needed to understand:
What we decided and what has changedWe’ve worked to:
How you can help our ongoing user researchShare your research or feedback by commenting on this issue or propose a change – read more about how to propose changes in GitHub |
Findings from A:B testing this pattern on Teaching VacanciesThe Teaching Vacancies team A:B tested a range of cookie opt-in banners on our service, including ones based on this design pattern. While user behaviour will differ from service to service, we wanted to share our findings here so that they can help inform future iterations of this design pattern and help to set expectations of cookie opt-in rates for other services. For context, Teaching Vacancies is a free job-listing service from the Department for Education. It allows hiring staff at schools, multi-academy trusts in England to list jobs, and allows jobseeking teachers and leaders to search and apply for these jobs, save jobs and set up job alerts. We carried out 2 rounds of testing with a total of 254,756 daily users, and evaluated the cookie opt in rate alongside indicators of user engagement and task success (bounce rate, site search rate, vacancy view rate and jobseeker account creation rate) for 6 different cookie opt-in banner design variants in each round of testing. Findings from the first round of testing informed the designs that we tested in the second round. The designs included displaying no banner at all, banners with and without an explicit ‘Reject analytics cookies’ button, banners placed at the top and bottom of the screen, banners with different background colours, and a full screen modal design that required users to make a choice about their cookie preferences to be able to see the site. A sample are shown at the bottom of this post. Our key findings were as follows:
We eventually decided to implement the GDS design pattern, but positioned at the bottom of the screen, because it maximised the opt in rate, minimised the skew, showed no quantitative evidence of reducing user engagement with the service and ensured that users were able to make a clear choice about their cookie preferences. We hope this is helpful. Feel free to reach out to me on cross-government Slack (steven.legg_dfe) if you’d like to know more. Screenshots of banner designs testedOur original banner, and the new GDS design pattern we also tested: The same banners, positioned at the bottom of the page - these had higher opt in rates than when positioned at the top of the page: |
Following on from the community meeting on 9th July, @ImranH-GDS asked me to summarise a few questions and decisions we made whilst locking horns with this issue. Banner when JavaScript disabledOn gov.uk, when JavaScript is disabled, the cookie banner is still shewn. Since analytical cookies require JS, quite right the accept and reject buttons are hidden. Problem
Decision
Rejecting analytical cookiesWhat should happen when a user who has previously accepted cookies clicks reject cookies or turns them off via the cookie settings form? ProblemAnalytics cookies have generic names and are on a high level domain (in our specific case, DecisionAfter looking at other government services, and given that the likelihood of this specific situation was so slight, we opted to delete the cookies when the user clicks reject. More specific cookie informationThe information about whether a cookie is active or not could be displayed on the cookie information page. As well as giving more information to the user, this might have benefited our automated tests. DecisionWe didn't take this idea any further given the lack of identified user need (we had enough to do already). Example of the idea
Functional cookiesIt didn't seem right to use the cookie banner to disable functional cookies. We use 3 functional cookies.
Decision
|
Apologies if I’m weighing in on something I shouldn’t be. I just wanted to point out that the illustrated implementation in the GOV Design System might fall foul of the Cumulative Layout Shift (CLS) metric if that’s something that’s considered when creating components if the banner is shown dynamically (i.e. with JavaScript after page load). So if the page loads, and then a few milliseconds layer the cookie banner is shown (and “shunts” the website content down the screen) then that may be visually jarring. Apologies if this is something that has already been considered, or if I’m crossing a boundary to bring this up here! |
Hi @martinbean , Thanks for your message. This is something which came up while we were implementing the cookie banner component and it's also something we had to tackle ourselves recently as we're in the process of adding a cookie banner to the design system site itself. We decided to go down the route of having a bit of inline JavaScript immediately below the cookie banner HTML to show the banner as soon as possible. When we were testing, we found this improved the CLS score (from 0.178 and 0.541 on desktop and mobile respectively) to pretty much 0. There's a bit more discussion in the pull request itself. |
I'm no longer involved directly with building government services, but hopefully you don't mind me chipping in here. As more services create joined-up journeys between them, I've been increasingly noticing multiple cookie banners on a single journey - because I'm bouncing through multiple difference service domains - even though from an end-user-perspective I'm still on "gov.uk". I personally find this rather annoying, especially on mobile as the banner is quite large. I also expect that this would be far less likely to get noticed during the normal per-service user-testing that takes place - unless someone explicitly set out to test for it. I would if it would be feasible to define a standard set of banner-acceptance cookies across services, to reduce the banner churn for users who interact with multiple services and would like their cookie preferences to be saved once and re-used. |
This definitely seems sub-optimal, especially as users are meant to think of GOV.UK as 'a single website' and so are likely to be confused by having to set their cookie preferences over and over. Unfortunately the architecture of GOV.UK makes this a difficult problem to solve, almost by design – although it presents as a single website, |
@divisathyan sorry, it looks like we missed your comment. Have you been able to resolve this since you posted? All of the text in the cookie banner component is configurable, so you should be able to customise the text that you are passing it when the rest of the page is in Welsh. |
Ah, I hadn't appreciated that - I had assumed that because I could imagine a simple API that allowed requests from *.gov.uk origins with |
Recently had a DAC audit flag the "Hide this message" as not descriptive enough for WCAG AA (below taken from the report) DAC AuditMedium Priority WCAG Level AA WCAG Reference: URL: https://www.staging.tax.service.gov.uk/agent-subscription/business-type Page title: What type of business are you? - Create an agent services account - GOV.UK What type of business are you? Original comment: Current code ref(s): Hide this message Retest Solution: Hide cookies message Similar issue (specific to HMRC implementation) hmrc/tracking-consent-frontend#168 |
@GaryCullenDev the published pattern has a range of different text suggestions depending on what you're accepting or rejecting - I think they might cover your concern? |
We’ve updated the recommended button text for the cookie confirmation messageWe’ve updated our guidance in the cookie banner component to make the component more accessible. When a user chooses to accept or reject cookies, a confirmation message should be displayed. We recommend that the hide button text should be updated to "Hide cookie message" to provide more information for users of assistive tech when read out of context. Thank you to everyone who raised this issue with us and brought it to our attention. What you need to doTeams using the GOV.UK Design System cookie banner component will need to make this change manually in their own service. Replace "Hide this message" with "Hide cookie message". How you can help our ongoing user researchShare your research or feedback by commenting on this issue or propose a change – read more about how to propose changes in GitHub |
Hopefully this is the best place to report this rather than the colours discussion? We’ve had an accessibility audit on the beta version of the digital identity service and the audit picked up that the colour contrast is 4.62:1 between feedback link (#1d70b8 and grey background (#f3f2f1). This passes AA but fails AAA. Please let me know if you’d like to see the full section of the report for more information. |
Not an area I work on but thought it would be useful to share a variation of the cookie banner that is currently in-use on the Help for Households campaign site, linked to from the GOV.UK homepage. It includes three default button types which goes against the "Avoid using multiple default buttons on a single page" design system guidance for the button component although the current cookie banner in the design system uses two default buttons and a text link. The buttons on the Help for Households site cookie banner are:
Desktop and mobile screenshots: |
What
Help users manage their personal data by telling them when you store cookies on their device.
The text was updated successfully, but these errors were encountered: