| 开发者 | idesolutions |
|---|---|
| 更新时间 | 2026年10月30日 20:56 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
https://www.googletagmanager.com/gtm.js (Tag Manager) and https://www.googletagmanager.com/gtag/js (GA4 and Google Ads), plus the https://www.googletagmanager.com/ns.html noscript fallback when Advanced Consent Mode is on.crumbsignal folder to /wp-content/plugins/ or install the ZIP from Plugins > Add New > Upload Plugin.No. Version 1 focuses on transparent, deterministic control of configured scripts. Automated scanners can miss scripts or classify them incorrectly.
In Advanced Consent Mode, the container may load with denied consent defaults. In Basic Consent Mode, CrumbSignal only loads the configured GTM container after analytics or marketing consent. Consent defaults are established before either mode loads Google tags.
crumbsignal_ready fires after the default or stored consent state is established. crumbsignal_consent_update fires when the visitor saves a choice. Both include consent booleans for analytics, marketing, and preferences.
Yes. CrumbSignal does not store or print scripts for you; it gates the ones you add yourself. Change the script type to text/plain, add data-crumbsignal-category="analytics" (or preferences/marketing), and move an external URL from src to data-src. The Script Gating tab also lets you list the cookie names those scripts set, so they are cleared when a visitor withdraws consent.
Yes. Turn off "Show the floating privacy choices button" in Settings > CrumbSignal > General, then add the [crumbsignal_preferences] shortcode (optionally label="Your Privacy Choices") to a footer widget or page. You can also point any menu item at a URL ending in #crumbsignal-preferences (for example #crumbsignal-preferences or https://example.com/#crumbsignal-preferences), or give any link or button the class crumbsignal-open-preferences. Clicking it reopens the preferences popup.
CrumbSignal reads and writes consent entirely in the visitor's browser: a first-party cookie plus a small bootstrap script that runs before any other script, both served as part of the normal (cacheable) page HTML. A correctly configured cache does not need to exclude pages using CrumbSignal. The one thing to check is whether your host or a JS-optimization plugin rewrites, defers, combines, or strips inline <script> tags — if so, exclude the crumbsignal-consent-bootstrap script (and the consent-gated data-crumbsignal-category scripts) from that optimization, since they must run unmodified and in order.