| 开发者 | compresso |
|---|---|
| 更新时间 | 2026年9月28日 20:41 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
crumbler-cookie-consent folder to /wp-content/plugins/, or install the plugin through the WordPress Plugins screen.Yes. The plugin is the connector to the Crumbler service; the consent banner, blocking and cookie declaration are provided by that service. You can start with a free trial at crumbler.ch.
In your Crumbler dashboard, under the respective site. It is a UUID in the format af232e06-59c2-4810-b09d-7a2b25632d1b.
No. The widget automatically detects third-party scripts based on provider patterns from the Crumbler database. You can also tag scripts manually:
<script type="text/plain" data-cmp-category="analytics" data-cmp-src="https://example.com/script.js"></script>
Yes. The widget sets gtag('consent', 'default', {...}) and updates the consent status after the user's decision.
Two options:
[crumbler_cookies] on any page or post, optionally with a language parameter: [crumbler_cookies lang="fr"].As the very first element in <head>, before the scripts of other plugins and the theme. The widget can only block scripts that come after it. If your theme hard-codes a tracking snippet in header.php above wp_head(), move it below or let a plugin add it instead. The wp_head priority can be changed with the crumbler_cc_widget_priority filter.
Yes. The widget script is marked so that WP Rocket, LiteSpeed Cache, Autoptimize, Jetpack Boost and Cloudflare Rocket Loader do not defer, delay or combine it. If you use another optimisation plugin, exclude cmp.compresso.ch/widget/cmp.min.js from "defer" and "delay JavaScript" there.
Yes. Under Settings > Crumbler there is an option to hide the widget for logged-in administrators.
<head> (before scripts of other plugins and the theme), so trackers such as Google Analytics, Tag Manager or Matomo are blocked before consent and Google Consent Mode defaults are set in time.crumbler_cc_widget_priority to change the wp_head priority.