Linux 软件免费装
Banner图

Sogo Consent

开发者 sogodigital
更新时间 2026年6月21日 14:48
PHP版本: 8.0 及以上
WordPress版本: 7.0
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

privacy gdpr cookie consent cookie notice consent banner

下载

1.1.2

详情介绍:

Sogo Consent adds a customisable cookie consent banner to your WordPress site. All settings are managed from the WordPress admin. No external services are used. No visitor data is sent anywhere. Consent modes Layout options Four layout options are available: bottom full-width strip, bottom centre card, bottom right card, bottom left card. On mobile and tablet (992px and below) all layouts automatically become a centred floating card. Behaviour options Appearance options Customise background colour, text colour, title colour, primary and secondary button colours, corner radius, and box shadow — all from the Appearance tab in admin. Consent storage Consent is stored as a first-party browser cookie named sogo_consent. It uses SameSite=Lax and Secure (HTTPS only). The cookie contains the consent status, timestamp, policy version, banner mode, and category choices. No consent data is stored in the WordPress database. Developer integration A public JavaScript API is available on every page after the plugin loads: A DOM event fires whenever consent changes: document.addEventListener('sogoconsent:change', function(e) { console.log(e.detail); }); Use this event to activate or deactivate analytics or marketing scripts based on the visitor's choice. Cache compatibility The banner HTML is always present in the page source (hidden via the hidden attribute). JavaScript reads the consent cookie on DOMContentLoaded and decides whether to show the banner. This approach works with full-page caching plugins. RTL and Hebrew support The plugin auto-detects the WordPress admin language via is_rtl(). On Hebrew installs, all admin labels and default banner text are in Hebrew. The frontend CSS includes scoped RTL layout rules for the modal, toggle, and card positioning. What this plugin does NOT do

安装:

  1. Upload the sogo-consent folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins screen in WordPress admin.
  3. Go to Settings → Cookie Consent to configure the banner.
  4. Visit the Content tab to set banner text and button labels.
  5. Visit the Behaviour tab to choose banner mode, layout, and dismiss settings.
  6. Visit the Appearance tab to customise colours and shape.

升级注意事项:

1.1.2 Internal identifiers were updated to use the final Sogo Consent prefix required by WordPress.org review. No visible changes; no action required. 1.1.1 Fixes mobile and tablet banner layout for all four layout options. No settings changes required after upgrading.

常见问题:

Does this plugin block analytics or marketing scripts automatically?

No. The plugin shows a consent banner and records the visitor's choice in a browser cookie. It provides a public JavaScript API (window.SogoConsent) and a DOM event (sogoconsent:change) so your own code, Google Tag Manager, or another tool can activate or deactivate scripts based on the visitor's consent. Script blocking is not handled by this plugin.

Where is visitor consent stored?

Consent is stored entirely in the visitor's browser as a first-party cookie named sogo_consent. No consent data is stored in the WordPress database.

Does the plugin work with caching plugins?

Yes. The banner HTML is always rendered in the page source and hidden with the hidden attribute. JavaScript reads the consent cookie client-side on page load. This approach is compatible with full-page caching plugins.

What happens when I update my privacy policy?

Update the Policy Update Version value in the Behaviour tab (for example, change 1.0 to 1.1). Any visitor whose saved consent was recorded under the old version will see the banner again the next time they visit.

Does the plugin support Hebrew?

Yes. Hebrew translations are bundled with the plugin. On Hebrew installs, admin labels and default banner text are displayed in Hebrew automatically. No additional translation files need to be installed.

How do I add a "reset consent" link to a page?

Add the shortcode [sogo_consent_reset] to any page, post, or widget. Clicking it clears the visitor's consent cookie and shows the banner again.

Does this plugin guarantee GDPR or legal compliance?

No. The plugin provides a consent interface as a starting point. Whether your implementation meets legal requirements depends on your region, audience, and the specific cookies your site sets. Consult a qualified legal or privacy professional.

What is the auto-hide feature?

When auto-hide is enabled, the banner closes automatically after the number of seconds you set. The consent record is saved with status: auto_dismissed. This is not treated as consent to analytics or marketing cookies — those remain false in the consent record.

更新日志:

1.1.2 1.1.1 1.1.0