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
1. Plugin Installation
- Upload plugin-folder to your “/wp-content/plugins/” directory.
- Activate the plugin through the Plugins-menu in WordPress.
2. Plugin Setup
Scripts-Tab: Fill in the scripts you would like to execute
Settings-Tab: Choose your custom wording and styling
Where are the settings?
Look for “Cookie-Optin & JS” in your Settings-Tab in the WordPress dashboard.
Why so many input fields?
Yes, we provide a shortcode for that which enables the same functionality as for the head or body scripts.
Yes, we provide a shortcode which will display a button to revoke. Additionally, you can define the name of cookies which you want to unset when a user clicks this revoke button.
What about multilingual sites?
So far we only support polylang. If you use polylang, you can translate the strings which will be visible in the banner in the “Strings translations” settings from polylang. If you use any other plugin or want to change texts and settings programmatically, you can use actions and filters like described in our documentation
Do you have further questions?
We will do our best to answer them in the support threads.
تعاون ڪندڙ & ڊولپرز
ڊولپمينٽ ۾ دلچسپي؟
ڪوڊ براؤز ڪريو، چيڪ ڪريو SVN مخزن، يا رڪنيت حاصل ڪريو ڊولپمينٽ لاگ پاران RSS.
لاگ تبدیل ڪريو
- Added documentation, action and filter hooks
- Added the ccco-inline shortcode to place scripts and html everywhere in content
- Added functionality to unset cookies on revoke also from top-level-domain (like google analytics sets them)
- Added possibility to unset cookies on revoke
- Added shortcode to provide a revoke functionality
- Bugfix button style
- Initial public release