{"id":325077,"date":"2026-06-14T12:05:48","date_gmt":"2026-06-14T12:05:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/devbrothers-counter-manager\/"},"modified":"2026-06-14T12:05:30","modified_gmt":"2026-06-14T12:05:30","slug":"devbrothers-counter-manager","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/devbrothers-counter-manager\/","author":6903084,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"trunk","tested":"7.0","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"DevBrothers Counter Manager","header_author":"DevBrothers","header_description":"Manage analytics counters (Yandex.Metrika, Google Analytics) for WordPress. Easy insertion of counter code into page head.","assets_banners_color":"d0cccb","last_updated":"2026-06-14 12:05:30","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/devbrothers.ru\/counter-manager\/","header_author_uri":"https:\/\/devbrothers.ru","rating":0,"author_block_rating":0,"active_installs":0,"downloads":25,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"v1.0.1":{"tag":"v1.0.1","author":"lzolotarev","date":"2026-06-14 12:05:30"},"v1.0.2":{"tag":"v1.0.2","author":"lzolotarev","date":"2026-06-14 12:34:38"}},"upgrade_notice":{"1.0.1":"<p>Security and WordPress.org compliance update.<\/p>","1.0.0":"<p>Initial release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3571883,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3571883,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3571883,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3571883,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["v1.0.1","v1.0.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3571883,"resolution":"1","location":"assets","locale":"","width":1280,"height":720},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3571883,"resolution":"2","location":"assets","locale":"","width":1280,"height":720},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3571883,"resolution":"3","location":"assets","locale":"","width":1280,"height":720}},"screenshots":{"1":"Counter settings (Yandex.Metrika and Google Analytics)","2":"Cookie consent banner settings","3":"Cookie banner on the front end (example)"}},"plugin_section":[],"plugin_tags":[232,388,1005,550,24256],"plugin_category":[36],"plugin_contributors":[252400],"plugin_business_model":[],"class_list":["post-325077","plugin","type-plugin","status-publish","hentry","plugin_tags-analytics","plugin_tags-cookie","plugin_tags-google-analytics","plugin_tags-tracking","plugin_tags-yandex-metrika","plugin_category-analytics","plugin_contributors-lzolotarev","plugin_committers-lzolotarev"],"banners":{"banner":"https:\/\/ps.w.org\/devbrothers-counter-manager\/assets\/banner-772x250.png?rev=3571883","banner_2x":"https:\/\/ps.w.org\/devbrothers-counter-manager\/assets\/banner-1544x500.png?rev=3571883","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/devbrothers-counter-manager\/assets\/icon-128x128.png?rev=3571883","icon_2x":"https:\/\/ps.w.org\/devbrothers-counter-manager\/assets\/icon-256x256.png?rev=3571883","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/devbrothers-counter-manager\/assets\/screenshot-1.png?rev=3571883","caption":"Counter settings (Yandex.Metrika and Google Analytics)"},{"src":"https:\/\/ps.w.org\/devbrothers-counter-manager\/assets\/screenshot-2.png?rev=3571883","caption":"Cookie consent banner settings"},{"src":"https:\/\/ps.w.org\/devbrothers-counter-manager\/assets\/screenshot-3.png?rev=3571883","caption":"Cookie banner on the front end (example)"}],"raw_content":"<!--section=description-->\n<p><strong>DevBrothers Counter Manager<\/strong> lets you add and manage web analytics counters on your WordPress site without editing theme files. Paste the official counter code from Yandex.Metrika or Google Analytics, enable or disable each counter, and optionally show a cookie consent banner before scripts load.<\/p>\n\n<h4>Key Features<\/h4>\n\n<ul>\n<li><strong>Yandex.Metrika<\/strong> \u2014 paste and manage your Metrika counter code<\/li>\n<li><strong>Google Analytics<\/strong> \u2014 paste and manage your gtag.js \/ GA code<\/li>\n<li><strong>Enable \/ disable<\/strong> \u2014 turn counters on or off without deleting saved code<\/li>\n<li><strong>Insert into <code>&lt;head&gt;<\/code><\/strong> \u2014 active counter code is output in the document head<\/li>\n<li><strong>Cookie consent banner<\/strong> \u2014 optional banner; analytics loads only after visitor accepts (when enabled)<\/li>\n<li><strong>Exclude paths<\/strong> \u2014 skip the banner on selected URLs (e.g. dashboard pages)<\/li>\n<li><strong>DevBrothers Admin Panel<\/strong> \u2014 settings inside the unified DevBrothers interface<\/li>\n<\/ul>\n\n<h4>Cookie Consent (optional)<\/h4>\n\n<p>When the cookie banner is enabled:<\/p>\n\n<ul>\n<li>Analytics scripts are <strong>not<\/strong> loaded until the visitor clicks Accept<\/li>\n<li>A consent value is stored in a <strong>first-party cookie<\/strong> on your domain (<code>dbcm_cookie_consent<\/code>)<\/li>\n<li>No consent data is sent to third parties \u2014 only stored locally in the visitor's browser<\/li>\n<li>You can link to your privacy \/ cookie policy page<\/li>\n<li>Light or dark banner theme<\/li>\n<\/ul>\n\n<p>When the banner is disabled, counters behave as usual and load immediately.<\/p>\n\n<h4>Requirements<\/h4>\n\n<ul>\n<li>WordPress 5.8+<\/li>\n<li>PHP 7.4+<\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/devbrothers-admin-panel\/\">DevBrothers Admin Panel<\/a> (required dependency)<\/li>\n<\/ul>\n\n<h3>External services<\/h3>\n\n<p>This plugin integrates with third-party analytics services when you enable counters and paste their official tracking code.<\/p>\n\n<h4>Yandex.Metrika<\/h4>\n\n<p>When enabled, the plugin outputs the Yandex.Metrika counter code you provide. Data is sent to Yandex servers according to your Metrika configuration.<\/p>\n\n<p>Typical data sent to Yandex.Metrika includes page views, browser\/device information, and referrer data (see Yandex documentation for details).<\/p>\n\n<ul>\n<li>Service provider: Yandex LLC<\/li>\n<li>Terms: https:\/\/yandex.com\/legal\/metrica_termsofuse\/<\/li>\n<li>Privacy: https:\/\/yandex.com\/legal\/privacy\/<\/li>\n<\/ul>\n\n<h4>Google Analytics<\/h4>\n\n<p>When enabled, the plugin outputs the Google Analytics (gtag.js) code you provide. Data is sent to Google servers according to your Analytics configuration.<\/p>\n\n<p>Typical data sent to Google Analytics includes page views, browser\/device information, and referrer data (see Google documentation for details).<\/p>\n\n<ul>\n<li>Service provider: Google LLC<\/li>\n<li>Terms: https:\/\/www.google.com\/analytics\/terms\/<\/li>\n<li>Privacy: https:\/\/policies.google.com\/privacy<\/li>\n<\/ul>\n\n<h4>Local cookie (consent banner)<\/h4>\n\n<p>When the cookie banner is enabled, the plugin stores the visitor's choice (<code>accepted<\/code> or <code>declined<\/code>) in a first-party cookie on your site. This data is <strong>not<\/strong> transmitted to DevBrothers or any external service.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate <strong>DevBrothers Admin Panel<\/strong> from WordPress.org (or install it when prompted).<\/li>\n<li>Install and activate <strong>DevBrothers Counter Manager<\/strong>.<\/li>\n<li>Go to <strong>DevBrothers \u2192 Counter Manager<\/strong>.<\/li>\n<li>Enable a counter, paste the full code from your analytics account, and save.<\/li>\n<li>Optionally enable the cookie consent banner under the <strong>Cookie banner<\/strong> section.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"can%20i%20use%20yandex.metrika%20and%20google%20analytics%20at%20the%20same%20time%3F\"><h3>Can I use Yandex.Metrika and Google Analytics at the same time?<\/h3><\/dt>\n<dd><p>Yes. You can enable both counters simultaneously.<\/p><\/dd>\n<dt id=\"do%20i%20need%20to%20edit%20theme%20files%3F\"><h3>Do I need to edit theme files?<\/h3><\/dt>\n<dd><p>No. All settings are managed in <strong>DevBrothers \u2192 Counter Manager<\/strong>.<\/p><\/dd>\n<dt id=\"what%20happens%20when%20i%20disable%20a%20counter%3F\"><h3>What happens when I disable a counter?<\/h3><\/dt>\n<dd><p>The code is saved in settings but not output on the front end until you enable it again.<\/p><\/dd>\n<dt id=\"how%20does%20the%20cookie%20banner%20work%3F\"><h3>How does the cookie banner work?<\/h3><\/dt>\n<dd><p>If enabled, analytics scripts load only after the visitor accepts. Until then, no Metrika or GA code is printed in <code>&lt;head&gt;<\/code>. The choice is remembered via a local cookie.<\/p><\/dd>\n<dt id=\"can%20i%20hide%20the%20banner%20on%20certain%20pages%3F\"><h3>Can I hide the banner on certain pages?<\/h3><\/dt>\n<dd><p>Yes. Use <strong>Exclude paths<\/strong> in cookie banner settings (one path per line, e.g. <code>\/dashboard\/<\/code>).<\/p><\/dd>\n<dt id=\"is%20it%20safe%20to%20paste%20counter%20code%20in%20the%20admin%3F\"><h3>Is it safe to paste counter code in the admin?<\/h3><\/dt>\n<dd><p>Only users with <code>manage_options<\/code> can save settings. The plugin blocks dangerous HTML tags in counter code while allowing standard <code>&lt;script&gt;<\/code> and <code>&lt;noscript&gt;<\/code> tags used by analytics vendors.<\/p><\/dd>\n<dt id=\"why%20is%20devbrothers%20admin%20panel%20required%3F\"><h3>Why is DevBrothers Admin Panel required?<\/h3><\/dt>\n<dd><p>Counter Manager registers its settings page inside the DevBrothers admin UI. Install Admin Panel from WordPress.org first.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fix Plugin URI and Google Analytics Terms URL for WordPress.org review<\/li>\n<li>Output counter scripts via wp_print_inline_script_tag (attributes escaped, JS intact)<\/li>\n<li>Escape noscript fallback markup via wp_kses<\/li>\n<li>Strengthen counter code validation on save<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<li>Yandex.Metrika and Google Analytics support<\/li>\n<li>Optional cookie consent banner with path exclusions<\/li>\n<li>Integration with DevBrothers Admin Panel<\/li>\n<\/ul>","raw_excerpt":"Manage Yandex.Metrika and Google Analytics counters with an optional cookie consent banner. No theme file edits.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/325077","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=325077"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/lzolotarev"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=325077"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=325077"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=325077"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=325077"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=325077"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=325077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}