Linux 软件免费装
Banner图

CrumbSignal

开发者 idesolutions
更新时间 2026年10月30日 20:56
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

privacy analytics google tag manager cookie consent consent mode

下载

1.0.0

详情介绍:

CrumbSignal is a self-hosted WordPress consent manager. It stores consent in a first-party cookie, keeps configured scripts inactive until the matching category is accepted, and communicates visitor choices to Google tags. Features CrumbSignal is a technical consent tool. Correct configuration and accurate privacy disclosures remain the website owner's responsibility. This plugin does not provide legal advice or guarantee compliance with any law. External services CrumbSignal itself sends no data anywhere and has no account, dashboard or remote API. The only third-party resources it can load are Google's, and only if the site owner enters a Google Tag Manager, GA4 or Google Ads ID in Settings > CrumbSignal > Google & GTM. Google Tag Manager and the Google tag (gtag.js) Any other third-party script you mark for gating yourself loads from the address you give it, and only after the visitor accepts its category. You are responsible for disclosing those services to your visitors.

安装:

  1. Upload the crumbsignal folder to /wp-content/plugins/ or install the ZIP from Plugins > Add New > Upload Plugin.
  2. Activate CrumbSignal.
  3. Open Settings > CrumbSignal.
  4. Configure banner copy and Google tags, and mark any other scripts that require consent with a category attribute.
  5. Test Accept, Reject, and Customize in a private browser window before publishing.

屏幕截图:

  • The granular cookie preferences panel, opened from Customize or the revisit button.
  • The CrumbSignal settings screen: General tab (consent duration, banner position, GPC/DNT).
  • The Google & GTM tab: GTM/GA4/Ads IDs and Basic vs. Advanced Consent Mode.
  • The Script Gating tab: the markup that holds a script until consent, and the cookies to clear on withdrawal.
  • The Design tab: accent, background, text and button colors with a contrast check.

常见问题:

Does CrumbSignal scan my website for cookies?

No. Version 1 focuses on transparent, deterministic control of configured scripts. Automated scanners can miss scripts or classify them incorrectly.

Does Google Tag Manager load before consent?

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.

What dataLayer events are available?

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.

Can I control scripts added outside CrumbSignal?

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.

Can I use a footer link instead of the floating button?

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.

Will page caching affect the cookie banner or consent signals?

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.

更新日志:

1.0.0