Hi there,
the difficulty with cookie notices is the laws vary from country to country and are at risk of changing which means we would need to continue monitor these changes and make updates.
There are plenty of plugins on the WP repository to do this. If you would like to use Osano’s script then its quite simple.
In Osano – after you create your setup copy the code it generates.
Then in Appearance > GeneratePress make sure you have the Elements module activated.
Then in Appearance > Elements add New Hook.
Paste your code into the content.
Select the WP_Head
hook from the Hook List.
Go to the Display Rules Tab and set Location to: Entire Site
Publish and that should be it.