
外掛標籤
開發者團隊
② 後台搜尋「Soglasno: Cookie Consent & 152-FZ」→ 直接安裝(推薦)
原文外掛簡介
Soglasno helps a WordPress site owner in Russia handle cookies and consent to personal data processing under Federal Law No. 152-FZ “On Personal Data”.
The plugin interface is in Russian.
What it does
Cookie banner with three modes: consent with categories, consent (accept / reject), or notice only.
Four categories: necessary, analytics, marketing, functional. Names and descriptions are editable.
Analytics and advertising scripts run only after the visitor agrees to their category. Built-in setup by ID for Yandex Metrika (Webvisor, click map, accurate bounce), Top.Mail.ru, VK Ads pixel, Google Analytics 4 and Google Tag Manager.
Auto-blocking: tracking scripts added by the theme, other plugins or pasted into the site code are found by their address and held until consent. The list is extendable.
Withdrawing consent is as easy as giving it: a floating cookie button or a [soglasno_settings] link in the footer. Cookies of withdrawn categories are deleted.
Links to your documents: pick a page of the site or paste a link to the consent document, cookie policy and privacy policy. They are used in the banner and in form checkboxes. Since 1 September 2025 consent to personal data processing must be a separate document.
Consent checkbox (unchecked by default, required) in WordPress comments, registration and Contact Form 7.
Compliance checklist and a home page check for trackers.
Works with page caching: the decision is made in the browser, so the cached page is the same for everyone.
The banner is rendered in Shadow DOM, so theme styles do not break it. Keyboard accessible, no layout shift.
Developer API
JavaScript: window.soglasno.has('analytics'), soglasno.open(), events soglasno:consent and soglasno:change on document.
PHP: sglsn_has_consent( 'marketing' ) for non-cached pages; filters sglsn/blocked_domains, sglsn/front_config, sglsn/form_checkbox, sglsn/settings_defaults; action sglsn/consent_saved.
Any
