We'll create fresh WordPress site with Caching Compatible Cookie Opt-In and JavaScript installed. You have 20 minutes to test the plugin after that site we'll be deleted.
This lightweight plugin closes the gap between the annoying need for a cookie-banner to opt-in to some scripts (third party tracking, …) and super fast websites enabled by server-side caching plugins like WP Fastest Cache, W3 Total Cache and so on.
It is very simple:
* A visitor makes his selection by clicking the buttons in the cookie banner (use all cookies or use only necessary cookies)
* The selection is stored in a cookie
* Now after every page load our JS checks the cookie and asynchronously fetches the allowed scripts depending on the users selection
* You can also place shortcodes with inline scripts and html in your content with the same functionality and inline-warnings if no optin was made
* You can also place a shortcode to show the visitor his decision and allow him to revoke that decision, which seems necessary if you want to be gdpr compliant with your cookie solution
Our documentation including information on action and filter hooks can be found here