NSW Cookie banner component
Standardising user consent through a NSW Design System component
Standardising user consent through a NSW Design System component
We've received multiple requests from various NSW government departments for the need to create a cookie banner, to strengthen privacy information by gaining user consent, particularly for those using analytics tools, such as heatmapping tools like Hotjar.
This marked the beginning of our journey to design a cookie banner that would standardise a reusable cookie banner which would allow users to have more control over the storage of their personal information while enforcing compliance for NSW government agencies.
A key objective of the research was to determine the necessity of including a cookie banner as a component in the NSW Design System. Given our tight schedule, it was important to make our research activities quick and focused. By the end of the research I aimed to gather a set of actionable recommendations that would enable us to make more informed design decisions.
Engaging with privacy team SMEs highlighted key privacy concerns and the need for a stricter tier for GDPR and CCPA compliance, especially for agencies interacting with European organizations. It also revealed risks such as higher bounce rates and the potential impact for marketing teams on measuring performance.
During this phase I started sketching various common use cases by mapping user stories where two common tiers were identified based on the strength of privacy.
I evaluated 48 customer websites and competitor design systems looking at common themes, and identifying potential gaps. The purpose of the evaluation focused on:
The creation of the banner involved me looking at common elements between each tier, looking at which smaller components from the NSW Design System could be used and how they fit together. By focusing on the reuse of these smaller, modular components, we were able to establish a solid foundation, addressing potential accessibility issues and ensured they displayed correctly across various devices and screen sizes with minimal effort.
I then looked at the position of the banner. Given the importance of accessibility, especially in government, the consensus was that the banner would appear relative as the first element on the page. Even though 80% of the banners reviewed were fixed to the screen, we didn't want to run the risk of obstructing any content, and disrupting the reading order for users who rely on tabbing to navigate the page. Part of this process, I also looked at other UI elements such as the Global Alert, which could potentially be displayed at the same time, in the same position. This assessment included considering their display priority and identifying potential conflicts, such as micro-interactions and color use.
Once we had a clear understanding of the design requirements, I created a prototype, allowing us to evaluate how well it met the needs of our customers and their users.
The addition of the cookie banner component to the NSW Design System has marked a significant milestone and we hope it becomes a model for all Australian government websites. It shows the design system's ability to adjust to a variety of needs while setting a solid foundation for future implementations. Moving forward, we plan to keep refining our approach based on the feedback we receive.