The stress of plugin is on simplicity, which also gives developers open hands to do customization as prefered.
With proper use, you can make your website GDPR and PECR compliant. The basic principles are that user must be clearly informed about cookies that you use on a webpage (even from external services – web pages), and that user should be given a choice to decide if he wants to accept these cookies. The exception are cookies that do not identify computer (without unique identificator) and which are necessary for proper page functioning, like remembering shoping basket in an online store.
How to use
On the plugin settings page, you should give short information about cookies or other similar technologies (from now on I will refer simple as “cookies”, although that also refers to local storage, session storage, …) used and ID of the page which tells user more about use of such technologies. This info shows as info window and is customizable via css. Two examples,css_example1.css and css_example2.css are given to show different styling of this info window (or ribbon). The “learn more” page (whose ID is given) should also provide mechanism to choose between allowing only necessary cookies or allowing all cookies. More about this page later.
Then you have to enter code in the header and footer which places cookies and the code that calls that code, separately. In this way, the code that places cookies is executed only when user allows.
Finally, you can enter opt-out code which will block functions which place cookies if user decides not to use them.
There is also posibility to enter custom code which will run on window load event (when page fully loads) which you can use to add special effects to info window or anything else you wish.
Learn more page
On learn more page (you have to build it yourself) you should explain about the cookies and their usage in simple and understandable way to general public. The information about all cookies on your web and their purpose should be given (including third-party).
Important: Two buttons (or links) should also be given on this page, with id’s: ‘btnAcceptCookies’ and ‘btnRefuseCookies’ (without apostrophes). These buttons shall be used to enable user to choose if cookies will be used or not (except necessary ones).
No screenshots provided