You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The buttons on the cookie banner will now set a couple of cookies
indicating that cookie preferences have been set and what the user's
preference is regarding usage tracking
The preference cookie "cookies_policy" follows the pattern of
govuk_publishing_components: a stringified object. We only set the
`usage` property on this object for now, but the approach provides some
extensibility in case there's later a use for other preference-tracking
properties like those included in govuk_publishing_components
https://github.com/alphagov/govuk_publishing_components/blob/a35e0852f02f1fcfc1036ec2e254477e65b44e17/app/assets/javascripts/govuk_publishing_components/lib/cookie-functions.js#L7-L12
The cookie banner is now hidden by default and only shown if cookie
preferences haven't been set (in addition to the required config being
set, which is checked in the Ruby/ERB code)
0 commit comments