Odluka – Cookie Consent for Serbia

Description

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

  • “Find services on this website” loads the home page and two linked pages of your own website and suggests which services from the list to tick.
  • A warning when another cookie banner plugin (CookieYes, Complianz, Cookiebot…) is active, so visitors are not asked twice.
  • A short “First steps” list in the settings shows what is still missing.

Banner and settings panel

  • “Accept all” and “Reject all” are equally visible; “Settings” opens a panel with a switch per category.
  • Categories: necessary (always on), functional, analytics, marketing. Optional categories are never pre-selected.
  • Bottom bar or centred window, your colours and texts (defaults are translated automatically).
  • Keyboard and screen reader friendly: focus moves into the banner, dialogs have proper roles, contrast warnings in the settings.
  • The choice can be changed at any time: floating button, [saglasno_podesavanja] shortcode or any link to #sgl-settings.

Blocking until consent

  • Scripts from known services (Google Analytics 4, Google Tag Manager, Google Ads, Meta Pixel, TikTok, LinkedIn, Pinterest, Hotjar, Microsoft Clarity, Matomo…) do not load until their category is allowed.
  • Works for enqueued scripts and for scripts written directly in the theme (optional, through the template output buffer of WordPress 6.9+).
  • YouTube, Vimeo, Google Maps and similar embeds are replaced with a placeholder and a “Load content” button.
  • After consent everything is activated without reloading the page. After a withdrawal, first-party cookies of the services are deleted and the page reloads with a short notice.
  • Services that are not in the list can be added by hand.

Google Consent Mode v2

  • Default state (everything denied except security) printed at the very top of <head>, wait_for_update, ads_data_redaction, url_passthrough.
  • Updates after the choice: analytics analytics_storage; marketing ad_storage, ad_user_data, ad_personalization; functional functionality_storage, personalization_storage.

Consent log

  • Every choice is recorded with an anonymous consent ID, time (UTC), action, categories, policy and banner version, page and country (from CDN headers).
  • The IP address is stored only as a salted SHA-256 hash or shortened, or not at all.
  • Admin list with filters and pagination. Old records are deleted automatically.

Policies

  • [saglasno_politika_kolacica], [saglasno_politika_privatnosti] and [saglasno_tabela_kolacica]: templates combined with your company details and the selected services, including an automatic cookie table (service, purpose, category, duration, transfer outside Serbia).
  • Changing the policy version asks every visitor for consent again.

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”.

Screenshots

Installation

  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.

FAQ

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.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Odluka – Cookie Consent for Serbia” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.1.9

  • New: “Find services on this website” on the Services tab suggests which services to tick (only your own website is loaded).
  • New: warning when another cookie banner plugin is active.
  • New: “First steps” list in the settings.
  • Readme and translation file details after the rename to Odluka.

0.1.8

  • New name: Odluka – Cookie Consent for Serbia (slug and text domain odluka).
  • Requires WordPress 6.9: scripts written directly in the theme are processed through the template output buffer of WordPress.
  • Translations: the bundled Serbian file is used only when no language pack is installed.
  • Readme: more precise description of how the plugin handles page caching.

0.1.5

  • Banner text uses the legal term “pristanak” (consent).
  • Author: MX Web Studio.

0.1.3

  • Catalog: Jetpack Stats, Gauges, Sign in with Google, HighLevel review widget, Calendly, Stripe; Google tag IDs (GT-) used by Site Kit by Google.

0.1.2

  • Cookie table: cookie names never break in the middle, durations are grouped, and in a narrow content column (block themes, phones) each service is shown as a card.

0.1.1

  • Plugin settings are in Serbian by default, even when WordPress is in English (new setting “Language of these settings”); Cyrillic when WordPress itself is in Serbian.
  • Serbian terms in the translation (“kratki kod”, “dodatak”); translated plugin description on the Plugins screen.
  • Fixed the width of the checkbox column in the Services table.

0.1.0

  • First version: banner and settings panel, blocking of scripts and embeds, consent log, Google Consent Mode v2, policy shortcodes, Latin / Cyrillic, Serbian translation.