{"id":412761,"date":"2026-12-02T08:04:52","date_gmt":"2026-12-02T08:04:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/saglasno\/"},"modified":"2026-12-02T08:39:22","modified_gmt":"2026-12-02T08:39:22","slug":"odluka","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/odluka\/","author":23612600,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1.9","stable_tag":"0.1.9","tested":"7.1.5","requires":"6.9","requires_php":"7.4","requires_plugins":null,"header_name":"Odluka \u2013 Cookie Consent for Serbia","header_author":"MX Web Studio","header_description":"Cookie consent banner, script blocking until consent, consent log, Google Consent Mode v2 and policy shortcodes for websites in Serbia. Latin and Cyrillic.","last_updated":"2026-12-02 08:39:22","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/mxwebstudio.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":58,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1.8":{"tag":"0.1.8","author":"mxwebstudio","date":"2026-12-02 08:04:32","revision":3839336},"0.1.9":{"tag":"0.1.9","author":"mxwebstudio","date":"2026-12-02 08:39:22","revision":3839420}},"upgrade_notice":{"0.1.9":"<p>Finds the services your website uses and warns about a second cookie banner.<\/p>","0.1.8":"<p>New name and slug; requires WordPress 6.9.<\/p>","0.1.5":"<p>Banner wording and author details.<\/p>","0.1.3":"<p>More known services in the catalog.<\/p>","0.1.2":"<p>More readable cookie table on narrow pages.<\/p>","0.1.1":"<p>Plugin settings in Serbian by default.<\/p>","0.1.0":"<p>First version.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3839336,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3839336,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3839336,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3839336,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.8","0.1.9"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3839378,"resolution":"1","location":"assets","locale":"","width":1280,"height":800},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3839378,"resolution":"2","location":"assets","locale":"","width":1280,"height":800},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3839336,"resolution":"3","location":"assets","locale":"","width":1280,"height":800},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3839336,"resolution":"4","location":"assets","locale":"","width":1280,"height":900},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3839378,"resolution":"5","location":"assets","locale":"","width":1280,"height":900},"screenshot-6.png":{"filename":"screenshot-6.png","revision":3839336,"resolution":"6","location":"assets","locale":"","width":677,"height":1727}},"screenshots":{"1":"Cookie banner in Serbian: \"Accept all\" and \"Reject all\" are equally visible.","2":"Settings panel with a switch per category and the services in each category.","3":"A YouTube video blocked until consent, with a \"Load content\" button.","4":"Choosing the services the website uses (settings in Serbian, even when WordPress is in English).","5":"Consent log with filters by action and date.","6":"Automatic cookie table for the cookie policy (cards on narrow pages)."}},"plugin_section":[],"plugin_tags":[223629,20272,16626,131785,55621],"plugin_category":[],"plugin_contributors":[297083],"plugin_business_model":[],"class_list":["post-412761","plugin","type-plugin","status-publish","hentry","plugin_tags-consent-mode","plugin_tags-cookie-banner","plugin_tags-cookie-consent","plugin_tags-gdpr","plugin_tags-serbia","plugin_contributors-mxwebstudio","plugin_committers-mxwebstudio"],"banners":{"banner":"https:\/\/ps.w.org\/odluka\/assets\/banner-772x250.png?rev=3839336","banner_2x":"https:\/\/ps.w.org\/odluka\/assets\/banner-1544x500.png?rev=3839336","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/odluka\/assets\/icon-128x128.png?rev=3839336","icon_2x":"https:\/\/ps.w.org\/odluka\/assets\/icon-256x256.png?rev=3839336","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/odluka\/assets\/screenshot-1.png?rev=3839378","caption":"Cookie banner in Serbian: \"Accept all\" and \"Reject all\" are equally visible."},{"src":"https:\/\/ps.w.org\/odluka\/assets\/screenshot-2.png?rev=3839378","caption":"Settings panel with a switch per category and the services in each category."},{"src":"https:\/\/ps.w.org\/odluka\/assets\/screenshot-3.png?rev=3839336","caption":"A YouTube video blocked until consent, with a \"Load content\" button."},{"src":"https:\/\/ps.w.org\/odluka\/assets\/screenshot-4.png?rev=3839336","caption":"Choosing the services the website uses (settings in Serbian, even when WordPress is in English)."},{"src":"https:\/\/ps.w.org\/odluka\/assets\/screenshot-5.png?rev=3839378","caption":"Consent log with filters by action and date."},{"src":"https:\/\/ps.w.org\/odluka\/assets\/screenshot-6.png?rev=3839336","caption":"Automatic cookie table for the cookie policy (cards on narrow pages)."}],"raw_content":"<!--section=description-->\n<p><strong>Na srpskom:<\/strong> Odluka je dodatak za sajtove u Srbiji: baner za pristanak na kola\u010di\u0107e (\u201ePrihvati sve\u201c i \u201eOdbij sve\u201c 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\u010di\u0107a i politiku privatnosti. Dodatak sam pronalazi servise na sajtu i upozorava ako je aktivan drugi baner za kola\u010di\u0107e. Sve je na srpskom (latinica ili \u0107irilica), i baner i pode\u0161avanja, \u010dak i kada je WordPress na engleskom. Dodatak ne \u0161alje nikakve podatke na spoljne servere i nije pravni savet.<\/p>\n\n<p>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.<\/p>\n\n<p><strong>Easy setup<\/strong><\/p>\n\n<ul>\n<li>\"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.<\/li>\n<li>A warning when another cookie banner plugin (CookieYes, Complianz, Cookiebot...) is active, so visitors are not asked twice.<\/li>\n<li>A short \"First steps\" list in the settings shows what is still missing.<\/li>\n<\/ul>\n\n<p><strong>Banner and settings panel<\/strong><\/p>\n\n<ul>\n<li>\"Accept all\" and \"Reject all\" are equally visible; \"Settings\" opens a panel with a switch per category.<\/li>\n<li>Categories: necessary (always on), functional, analytics, marketing. Optional categories are never pre-selected.<\/li>\n<li>Bottom bar or centred window, your colours and texts (defaults are translated automatically).<\/li>\n<li>Keyboard and screen reader friendly: focus moves into the banner, dialogs have proper roles, contrast warnings in the settings.<\/li>\n<li>The choice can be changed at any time: floating button, <code>[saglasno_podesavanja]<\/code> shortcode or any link to <code>#sgl-settings<\/code>.<\/li>\n<\/ul>\n\n<p><strong>Blocking until consent<\/strong><\/p>\n\n<ul>\n<li>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.<\/li>\n<li>Works for enqueued scripts and for scripts written directly in the theme (optional, through the template output buffer of WordPress 6.9+).<\/li>\n<li>YouTube, Vimeo, Google Maps and similar embeds are replaced with a placeholder and a \"Load content\" button.<\/li>\n<li>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.<\/li>\n<li>Services that are not in the list can be added by hand.<\/li>\n<\/ul>\n\n<p><strong>Google Consent Mode v2<\/strong><\/p>\n\n<ul>\n<li>Default state (everything denied except security) printed at the very top of <code>&lt;head&gt;<\/code>, <code>wait_for_update<\/code>, <code>ads_data_redaction<\/code>, <code>url_passthrough<\/code>.<\/li>\n<li>Updates after the choice: analytics \u2192 analytics_storage; marketing \u2192 ad_storage, ad_user_data, ad_personalization; functional \u2192 functionality_storage, personalization_storage.<\/li>\n<\/ul>\n\n<p><strong>Consent log<\/strong><\/p>\n\n<ul>\n<li>Every choice is recorded with an anonymous consent ID, time (UTC), action, categories, policy and banner version, page and country (from CDN headers).<\/li>\n<li>The IP address is stored only as a salted SHA-256 hash or shortened, or not at all.<\/li>\n<li>Admin list with filters and pagination. Old records are deleted automatically.<\/li>\n<\/ul>\n\n<p><strong>Policies<\/strong><\/p>\n\n<ul>\n<li><code>[saglasno_politika_kolacica]<\/code>, <code>[saglasno_politika_privatnosti]<\/code> and <code>[saglasno_tabela_kolacica]<\/code>: templates combined with your company details and the selected services, including an automatic cookie table (service, purpose, category, duration, transfer outside Serbia).<\/li>\n<li>Changing the policy version asks every visitor for consent again.<\/li>\n<\/ul>\n\n<p><strong>Latin and Cyrillic<\/strong><\/p>\n\n<p>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.<\/p>\n\n<p><strong>Cache friendly<\/strong><\/p>\n\n<p>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.<\/p>\n\n<p><strong>No external requests<\/strong><\/p>\n\n<p>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\".<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin from Plugins \u2192 Add New (search for \"Odluka Cookie Consent\") or upload the <code>odluka<\/code> folder to <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate it. The consent log table is created automatically.<\/li>\n<li>Go to <strong>Odluka \u2192 Settings<\/strong> and fill in the company details.<\/li>\n<li>On the <strong>Services<\/strong> tab click \"Find services on this website\" and tick the services your website uses.<\/li>\n<li>On the <strong>Policies<\/strong> tab click \"Create policy pages\" (drafts are created with the shortcodes), review them and publish.<\/li>\n<li>Open the website in a private window and check the banner.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20make%20my%20website%20compliant%20with%20the%20law%3F\"><h3>Does this plugin make my website compliant with the law?<\/h3><\/dt>\n<dd><p>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.<\/p>\n\n<p>(Srpski: Plugin nije pravni savet; za sadr\u017eaj sajta i obradu podataka odgovara vlasnik sajta.)<\/p><\/dd>\n<dt id=\"are%20the%20policy%20templates%20ready%20to%20use%3F\"><h3>Are the policy templates ready to use?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"a%20script%20is%20not%20blocked.%20what%20can%20i%20do%3F\"><h3>A script is not blocked. What can I do?<\/h3><\/dt>\n<dd><p>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: <code>&lt;script type=\"text\/plain\" data-sgl-category=\"analytics\"&gt;...&lt;\/script&gt;<\/code>.<\/p><\/dd>\n<dt id=\"some%20embeds%20still%20load%20%28e.g.%20a%20video%20widget%20of%20a%20page%20builder%29\"><h3>Some embeds still load (e.g. a video widget of a page builder)<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20caching%20plugins%3F\"><h3>Does it work with caching plugins?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"where%20can%20a%20visitor%20find%20their%20consent%20id%3F\"><h3>Where can a visitor find their consent ID?<\/h3><\/dt>\n<dd><p>In the cookie settings panel, below the categories. The same ID is shown in Odluka \u2192 Consent log.<\/p><\/dd>\n<dt id=\"why%20is%20everything%20in%20serbian%20when%20my%20wordpress%20is%20in%20english%3F\"><h3>Why is everything in Serbian when my WordPress is in English?<\/h3><\/dt>\n<dd><p>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 \u2192 Settings \u2192 General \u2192 \"Front-end language\" and \"Language of these settings\".<\/p><\/dd>\n<dt id=\"what%20data%20does%20the%20plugin%20store%3F\"><h3>What data does the plugin store?<\/h3><\/dt>\n<dd><p>The visitor's choice is stored in the first-party cookie <code>sgl_consent<\/code> (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).<\/p><\/dd>\n<dt id=\"for%20developers\"><h3>For developers<\/h3><\/dt>\n<dd><ul>\n<li>JavaScript: <code>Saglasno.open()<\/code>, <code>Saglasno.getConsent()<\/code>, <code>Saglasno.hasConsent('analytics')<\/code>, event <code>saglasno:consent<\/code> on <code>document<\/code>, dataLayer event <code>sgl_consent_update<\/code>.<\/li>\n<li>Filters: <code>saglasno\/services_catalog<\/code>, <code>saglasno\/script_categories<\/code>, <code>saglasno\/consent_mode_map<\/code>, <code>saglasno\/banner_config<\/code>, <code>saglasno\/policy_context<\/code>, <code>saglasno\/policy_template<\/code>, <code>saglasno\/cookie_domain<\/code>, <code>saglasno\/client_ip<\/code>, <code>saglasno\/disable<\/code> and more.<\/li>\n<li>Policy templates can be overridden in the theme: <code>yourtheme\/saglasno\/legal\/rs\/cookie-policy.php<\/code>.<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.9<\/h4>\n\n<ul>\n<li>New: \"Find services on this website\" on the Services tab suggests which services to tick (only your own website is loaded).<\/li>\n<li>New: warning when another cookie banner plugin is active.<\/li>\n<li>New: \"First steps\" list in the settings.<\/li>\n<li>Readme and translation file details after the rename to Odluka.<\/li>\n<\/ul>\n\n<h4>0.1.8<\/h4>\n\n<ul>\n<li>New name: Odluka \u2013 Cookie Consent for Serbia (slug and text domain odluka).<\/li>\n<li>Requires WordPress 6.9: scripts written directly in the theme are processed through the template output buffer of WordPress.<\/li>\n<li>Translations: the bundled Serbian file is used only when no language pack is installed.<\/li>\n<li>Readme: more precise description of how the plugin handles page caching.<\/li>\n<\/ul>\n\n<h4>0.1.5<\/h4>\n\n<ul>\n<li>Banner text uses the legal term \"pristanak\" (consent).<\/li>\n<li>Author: MX Web Studio.<\/li>\n<\/ul>\n\n<h4>0.1.3<\/h4>\n\n<ul>\n<li>Catalog: Jetpack Stats, Gauges, Sign in with Google, HighLevel review widget, Calendly, Stripe; Google tag IDs (GT-) used by Site Kit by Google.<\/li>\n<\/ul>\n\n<h4>0.1.2<\/h4>\n\n<ul>\n<li>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.<\/li>\n<\/ul>\n\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>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.<\/li>\n<li>Serbian terms in the translation (\"kratki kod\", \"dodatak\"); translated plugin description on the Plugins screen.<\/li>\n<li>Fixed the width of the checkbox column in the Services table.<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>First version: banner and settings panel, blocking of scripts and embeds, consent log, Google Consent Mode v2, policy shortcodes, Latin \/ Cyrillic, Serbian translation.<\/li>\n<\/ul>","raw_excerpt":"Cookie banner, script blocking until consent, consent log and Google Consent Mode v2 for websites in Serbia. Latin and Cyrillic.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/412761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=412761"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mxwebstudio"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=412761"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=412761"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=412761"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=412761"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=412761"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=412761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}