Linux 软件免费装
Banner图

Odluka – Cookie Consent for Serbia

开发者 mxwebstudio
更新时间 2026年12月2日 16:39
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

gdpr cookie consent cookie banner serbia consent mode

下载

0.1.8 0.1.9

详情介绍:

Na srpskom: Odluka je dodatak za sajtove u Srbiji: baner za pristanak na kolačiće („Prihvati sve“ i „Odbij sve“ jednako vidljivi), blokiranje Google Analytics-a, Meta Pixel-a, YouTube-a i drugih servisa do pristanka, evidencija pristanka, Google Consent Mode v2 i kratki kodovi za politiku kolačića i politiku privatnosti. Dodatak sam pronalazi servise na sajtu i upozorava ako je aktivan drugi baner za kolačiće. Sve je na srpskom (latinica ili ćirilica), i baner i podešavanja, čak i kada je WordPress na engleskom. Dodatak ne šalje nikakve podatke na spoljne servere i nije pravni savet. Odluka helps websites in Serbia handle cookie consent under the Serbian Personal Data Protection Act (ZZPL). The banner, the policies and the plugin settings are in Serbian (Latin or Cyrillic) by default, even when WordPress is in English. Bosnia and Herzegovina, Montenegro and North Macedonia will follow. Easy setup Banner and settings panel Blocking until consent Google Consent Mode v2 Consent log Policies Latin and Cyrillic Serbian texts of the banner and the policies can be shown in Latin or Cyrillic. Transliteration is built in; brand names, cookie names, URLs and e-mail addresses stay as they are. Cache friendly The banner is rendered in the browser and the page HTML is the same for every visitor, so one visitor's choice is never cached for another. The consent scripts are added to the JavaScript exclusion filters of WP Rocket, LiteSpeed Cache, SiteGround Optimizer and Autoptimize. No external requests Odluka does not contact any external server, has no tracking and no ads in the dashboard. The only requests it makes go to your own website, when you click "Find services on this website".

安装:

  1. Install the plugin from Plugins → Add New (search for "Odluka Cookie Consent") or upload the odluka folder to /wp-content/plugins/.
  2. Activate it. The consent log table is created automatically.
  3. Go to Odluka → Settings and fill in the company details.
  4. On the Services tab click "Find services on this website" and tick the services your website uses.
  5. On the Policies tab click "Create policy pages" (drafts are created with the shortcodes), review them and publish.
  6. Open the website in a private window and check the banner.

屏幕截图:

  • Settings panel with a switch per category and the services in each category.
  • A YouTube video blocked until consent, with a "Load content" button.
  • Choosing the services the website uses (settings in Serbian, even when WordPress is in English).
  • Consent log with filters by action and date.
  • Automatic cookie table for the cookie policy (cards on narrow pages).

升级注意事项:

0.1.9 Finds the services your website uses and warns about a second cookie banner. 0.1.8 New name and slug; requires WordPress 6.9. 0.1.5 Banner wording and author details. 0.1.3 More known services in the catalog. 0.1.2 More readable cookie table on narrow pages. 0.1.1 Plugin settings in Serbian by default. 0.1.0 First version.

常见问题:

Does this plugin make my website compliant with the law?

No plugin can do that on its own. Odluka is a technical tool and does not give legal advice. The website owner is responsible for the content of the website and for how personal data is processed. Have your policies reviewed by a lawyer. (Srpski: Plugin nije pravni savet; za sadržaj sajta i obradu podataka odgovara vlasnik sajta.)

Are the policy templates ready to use?

The policy shortcodes already show your company details, the cookie table and the list of services. The legal text of each section is marked as a draft ("NACRT") until it has been reviewed by a lawyer and added by the plugin owner.

A script is not blocked. What can I do?

Check that the service is ticked on the Services tab. If it is not in the list, add it under "Other services" with a pattern (part of the script address). Developers can also mark a script themselves: <script type="text/plain" data-sgl-category="analytics">...</script>.

Some embeds still load (e.g. a video widget of a page builder)

Widgets that create the player with JavaScript after the page has loaded cannot be caught in the HTML. Use the standard WordPress embed (or the builder's "embed URL / HTML" option), or add the widget's script as a service.

Does it work with caching plugins?

It is built for page caching: nothing in the page depends on the visitor's choice. When a cached page is older than the security token, the browser asks for a fresh token automatically before recording the choice.

Where can a visitor find their consent ID?

In the cookie settings panel, below the categories. The same ID is shown in Odluka → Consent log.

Why is everything in Serbian when my WordPress is in English?

Odluka is made for Serbian websites, so the banner, the policies and the plugin settings are Serbian by default. The settings are in Latin script, or in Cyrillic when WordPress itself is in Serbian. To follow the WordPress language instead, change Odluka → Settings → General → "Front-end language" and "Language of these settings".

What data does the plugin store?

The visitor's choice is stored in the first-party cookie sgl_consent (consent ID, categories, version, time). The consent log stores the consent ID, time, action, categories, versions, the page address without query string, the country code from CDN headers if available, and the IP address as a salted hash or shortened (configurable, or nothing).

For developers

  • JavaScript: Saglasno.open(), Saglasno.getConsent(), Saglasno.hasConsent('analytics'), event saglasno:consent on document, dataLayer event sgl_consent_update.
  • Filters: saglasno/services_catalog, saglasno/script_categories, saglasno/consent_mode_map, saglasno/banner_config, saglasno/policy_context, saglasno/policy_template, saglasno/cookie_domain, saglasno/client_ip, saglasno/disable and more.
  • Policy templates can be overridden in the theme: yourtheme/saglasno/legal/rs/cookie-policy.php.

更新日志:

0.1.9 0.1.8 0.1.5 0.1.3 0.1.2 0.1.1 0.1.0