Adding a module to make it easier to add cookie consent tracking to dashboards.
The module covers the following:
Display gov styled cookie banner
Hide banner when cookie choice has been made
Reveal banner when user clears their choice (done from button on Support and feedback panel)
Feed user choice in to stop tracking where cookies are rejected
Provide text for the support panel, confirming whether cookies have been accepted to rejeced
This can be added to a dashboard with just two lines of code in the ui.R and one line in server.R, plus copying the js file to the www/ folder.
As part of testing, I've set up a demo / test dashboard in the tests folder and added some basic shiny tests to check the cookie consent control is working as it should do. Does a basic cycle of clear consent -> accept cookies -> clear consent -> reject cookies.
Adding a module to make it easier to add cookie consent tracking to dashboards.
The module covers the following:
This can be added to a dashboard with just two lines of code in the ui.R and one line in server.R, plus copying the js file to the www/ folder.
As part of testing, I've set up a demo / test dashboard in the tests folder and added some basic shiny tests to check the cookie consent control is working as it should do. Does a basic cycle of clear consent -> accept cookies -> clear consent -> reject cookies.