Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/tombroucke/otomaties-cookie-consent/archive/refs/heads/master.zipOn Packagist as tombroucke/otomaties-cookie-consent:
composer require tombroucke/otomaties-cookie-consentNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Installation
composer require tombroucke/otomaties-cookie-consent
Prerequisites
- ACF Pro
Documentation
Filters
Allow editors to change settings
add_filter('otomaties_cookie_consent_settings_capability', 'edit_posts'),
Shortcodes
[cookie-table show="what,table,google-privacy-terms"]
Datalayer events
After each consent update, the cookie_consent_update datalayer event is dispatched.
You can use this event as a custom trigger in GTM to trigger tags after consent has been updated.