Caching Compatible Cookie Opt-In and JavaScript
If you like our plugin and want to support the maintenance, please use the "Donate" button on my personal website 🙏
You can place a shortcode called [ccco-revoke]
in any page or widget you like. This will tell the visitor about the cookie-decision made and provide a button to revoke the decision.
You can place a shortcode called [ccco-inline]<script>...</script>[/ccco-inline]
in any page or widget you like. Everything inside this shortcode will be placed dynamically if allowed by the cookie-decision. The following parameters are available:
permission="base/optin"
If this script should always be executed or only if user has opted in. Default: basetype="immediate/button"
Choose "immediate" to execute the script on page load. Choose "button" to display a button which will fetch your code on click. Default: immediatebuttontext="lorem ipsum"
The text you want to display inside the button.fallbackurl="<https://www.mydomain.com>"
Provide an alternate URL as hyperlink for users who did not opt-in.fallbacktext="lorem ipsum"
Provide a text for this alternate URL hyperlinkExample 🙂
[ccco-inline permission="optin" type="button" buttontext="Show Video" fallbackurl="<https://www.youtube.com/watch?v=abc>" fallbacktext="Open in YouTube"]<iframe src="<https://www.youtube-nocookie.com/embed/abc>"></iframe>[/ccco-inline]
We provide some hooks in our code, so you can easily build your own solutions on top of our plugins.