{"id":291,"date":"2008-02-11T19:57:24","date_gmt":"2008-02-11T19:57:24","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/official-statcounter-plugin-for-wordpress\/"},"modified":"2026-08-19T14:10:37","modified_gmt":"2026-08-19T14:10:37","slug":"official-statcounter-plugin-for-wordpress","status":"publish","type":"plugin","link":"https:\/\/azb.wordpress.org\/plugins\/official-statcounter-plugin-for-wordpress\/","author":210648,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.2.0","stable_tag":"2.2.0","tested":"7.0.4","requires":"2.0.2","requires_php":"","requires_plugins":null,"header_name":"StatCounter Analytics","header_author":"Aodhan Cullen","header_description":"","assets_banners_color":"","last_updated":"2026-08-19 14:10:37","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/statcounter.com\/","header_plugin_uri":"http:\/\/statcounter.com\/","header_author_uri":"http:\/\/statcounter.com\/","rating":4,"author_block_rating":0,"active_installs":70000,"downloads":2083318,"num_ratings":47,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.3":{"tag":"1.3","author":"StatCounter","date":"2010-03-25 08:47:40"},"1.4":{"tag":"1.4","author":"StatCounter","date":"2010-03-25 09:58:56"},"1.5":{"tag":"1.5","author":"StatCounter","date":"2010-09-01 14:58:14"},"1.6":{"tag":"1.6","author":"StatCounter","date":"2011-04-08 10:13:30"},"1.6.1":{"tag":"1.6.1","author":"StatCounter","date":"2011-05-13 14:21:19"},"1.6.2":{"tag":"1.6.2","author":"StatCounter","date":"2012-03-02 11:43:57"},"1.6.3":{"tag":"1.6.3","author":"StatCounter","date":"2012-03-12 12:14:26"},"1.6.4":{"tag":"1.6.4","author":"StatCounter","date":"2013-08-19 10:28:52"},"1.6.5":{"tag":"1.6.5","author":"StatCounter","date":"2013-08-19 14:58:54"},"1.6.6":{"tag":"1.6.6","author":"StatCounter","date":"2014-04-27 13:07:28"},"1.6.7":{"tag":"1.6.7","author":"StatCounter","date":"2014-07-16 16:56:33"},"1.6.8":{"tag":"1.6.8","author":"StatCounter","date":"2014-10-21 17:43:42"},"1.6.9":{"tag":"1.6.9","author":"StatCounter","date":"2019-03-07 16:38:08"},"1.7":{"tag":"1.7","author":"StatCounter","date":"2015-02-25 11:09:31"},"1.7.1":{"tag":"1.7.1","author":"StatCounter","date":"2015-08-12 14:37:48"},"2.0":{"tag":"2.0","author":"StatCounter","date":"2015-08-26 10:24:04"},"2.0.1":{"tag":"2.0.1","author":"StatCounter","date":"2016-09-06 11:10:07"},"2.0.2":{"tag":"2.0.2","author":"StatCounter","date":"2017-11-30 16:34:12"},"2.0.3":{"tag":"2.0.3","author":"StatCounter","date":"2018-01-23 10:31:10"},"2.0.4":{"tag":"2.0.4","author":"StatCounter","date":"2018-01-23 16:00:32"},"2.0.5":{"tag":"2.0.5","author":"StatCounter","date":"2018-01-24 20:23:25"},"2.0.6":{"tag":"2.0.6","author":"StatCounter","date":"2021-06-10 12:11:56"},"2.0.7":{"tag":"2.0.7","author":"StatCounter","date":"2022-01-25 20:15:12"},"2.0.8":{"tag":"2.0.8","author":"StatCounter","date":"2022-02-02 16:04:23"},"2.0.9":{"tag":"2.0.9","author":"StatCounter","date":"2024-05-01 17:50:16"},"2.02":{"tag":"2.02","author":"StatCounter","date":"2017-10-19 10:54:18"},"2.1.0":{"tag":"2.1.0","author":"StatCounter","date":"2025-01-28 16:57:27"},"2.1.1":{"tag":"2.1.1","author":"StatCounter","date":"2025-12-02 12:40:55"},"2.1.2":{"tag":"2.1.2","author":"StatCounter","date":"2026-05-25 11:18:39"},"2.2.0":{"tag":"2.2.0","author":"StatCounter","date":"2026-08-19 14:10:37"}},"upgrade_notice":{"2.1.2":"<p>Security release: fixes a stored XSS via the post author nickname (CVE-2026-6275). All users should update.<\/p>","2.0.7":"<p>Added additional sanitation to prevent XSS attacks<\/p>","1.6.9":"<p>Fixed small bug with form<\/p>","1.6.8":"<p>Addd StatCounter https compatible code<\/p>","1.6.7":"<p>Support https\/http for wordpress admin section when viewing StatCounter stats<\/p>","1.6.6":"<p>Removed deprecated function calls<\/p>","1.6.5":"<p>Modified url used for dashboard to not include project id when it has not been set.<\/p>","1.6.4":"<p>Improved UI to give error message in dashboard when no project id has been set<\/p>","1.6.3":"<p>Bug fix to prevent user entry of whitespace characters for Project ID and Security Code<\/p>","1.6.2":"<p>Upgrade to allow for fully functioning PayPal upgrade options.<\/p>"},"ratings":{"1":9,"2":2,"3":1,"4":2,"5":33},"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":1988081,"resolution":false,"location":"assets","locale":false}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.3","1.4","1.5","1.6","1.6.1","1.6.2","1.6.3","1.6.4","1.6.5","1.6.6","1.6.7","1.6.8","1.6.9","1.7","1.7.1","2.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.02","2.1.0","2.1.1","2.1.2","2.2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3654777,"resolution":"1","location":"assets","locale":"","width":1600,"height":900},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3654777,"resolution":"2","location":"assets","locale":"","width":1600,"height":900},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3654777,"resolution":"3","location":"assets","locale":"","width":1600,"height":900}},"screenshots":{"1":"Session Replay - watch a full recording of a visitor's session, with playback controls to skip inactivity, change speed and share the recording.","2":"Heatmaps - see exactly what visitors click and tap, broken down by page element, with separate desktop and mobile views.","3":"Visitor Activity - real-time stats on every visit, including location, referring URL, browser, system and screen resolution."}},"plugin_section":[],"plugin_tags":[232,32157,55692,522,2497],"plugin_category":[36],"plugin_contributors":[276506],"plugin_business_model":[],"class_list":["post-291","plugin","type-plugin","status-publish","hentry","plugin_tags-analytics","plugin_tags-heatmaps","plugin_tags-session-replay","plugin_tags-stats","plugin_tags-visitor-tracking","plugin_category-analytics","plugin_contributors-statcounter","plugin_committers-statcounter"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/official-statcounter-plugin-for-wordpress\/assets\/icon.svg?rev=1988081","icon":"https:\/\/ps.w.org\/official-statcounter-plugin-for-wordpress\/assets\/icon.svg?rev=1988081","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/official-statcounter-plugin-for-wordpress\/assets\/screenshot-1.png?rev=3654777","caption":"Session Replay - watch a full recording of a visitor's session, with playback controls to skip inactivity, change speed and share the recording."},{"src":"https:\/\/ps.w.org\/official-statcounter-plugin-for-wordpress\/assets\/screenshot-2.png?rev=3654777","caption":"Heatmaps - see exactly what visitors click and tap, broken down by page element, with separate desktop and mobile views."},{"src":"https:\/\/ps.w.org\/official-statcounter-plugin-for-wordpress\/assets\/screenshot-3.png?rev=3654777","caption":"Visitor Activity - real-time stats on every visit, including location, referring URL, browser, system and screen resolution."}],"raw_content":"<!--section=description-->\n<p>The Official StatCounter WordPress Plugin adds StatCounter to your site in a couple of clicks - no code editing required. StatCounter has provided reliable, real-time visitor analytics to millions of websites since 1999, and now includes session replay and heatmaps.<\/p>\n\n<h4>Session Replay<\/h4>\n\n<p><a href=\"https:\/\/statcounter.com\/session-replay\/\">Watch recordings of real visits to your site<\/a> - a video-like playback of each visitor's clicks, scrolls and page navigation:<\/p>\n\n<ul>\n<li>See exactly where visitors get stuck, confused or frustrated<\/li>\n<li>Understand why visitors abandon carts, forms and signups<\/li>\n<li>Watch how visitors from a specific campaign, country or referrer actually use your site<\/li>\n<li>Improve support: replay a customer's session to see what went wrong<\/li>\n<\/ul>\n\n<h4>Heatmaps<\/h4>\n\n<p><a href=\"https:\/\/statcounter.com\/heatmaps\/\">See at a glance where your visitors click<\/a> - and what they ignore:<\/p>\n\n<ul>\n<li>Click heatmaps highlight the links, buttons and images getting the most attention<\/li>\n<li>Interactive elements like dropdowns and mobile menus are tracked too<\/li>\n<li>Spot \"dead clicks\" on elements that look clickable but aren't<\/li>\n<li>Compare engagement across desktop and mobile<\/li>\n<\/ul>\n\n<h4>Real-Time Visitor Stats<\/h4>\n\n<p>All the classic StatCounter reports, updated in real time:<\/p>\n\n<ul>\n<li>Popular pages, entry pages and exit pages<\/li>\n<li>Incoming traffic: referring sites, keywords and campaigns<\/li>\n<li>Visitor paths, visit length and returning visits<\/li>\n<li>Country, state and city stats with a recent visitor map<\/li>\n<li>Browser, OS, screen resolution and ISP stats<\/li>\n<li>Magnify individual visitors for a detailed session report<\/li>\n<li>Email reports, multiple site management and user access management<\/li>\n<li>Invisible counter option<\/li>\n<\/ul>\n\n<p><a href=\"https:\/\/statcounter.com\/features\/\">See all features<\/a><\/p>\n\n<h4>Pricing<\/h4>\n\n<p>Core visitor stats are free forever on the Basic plan. Session replay and heatmaps are premium features, and every new account starts with a 30-day free trial - no credit card required. <a href=\"https:\/\/statcounter.com\/pricing\/\">View pricing<\/a><\/p>\n\n<!--section=installation-->\n<p>To activate the StatCounter service for your WordPress site:<\/p>\n\n<ul>\n<li><a href=\"https:\/\/statcounter.com\/sign-up\/\">Sign up<\/a> with StatCounter or <a href=\"https:\/\/statcounter.com\/add-project\/\">add a new project<\/a> to your existing account<\/li>\n<li>The installation process will detect your WordPress installation and provide you with your Project ID and Security Code<\/li>\n<li>Install and activate this plugin, then enter your Project ID and Security Code on the plugin's options page<\/li>\n<li>The installation instructions are also available at <a href=\"https:\/\/statcounter.com\/wordpress.org\/\">https:\/\/statcounter.com\/wordpress.org\/<\/a><\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt id=\"do%20i%20need%20to%20edit%20my%20theme%20or%20add%20any%20code%3F\"><h3>Do I need to edit my theme or add any code?<\/h3><\/dt>\n<dd><p>No. Activate the plugin, enter your StatCounter Project ID and Security Code, and the tracking code is added to every page automatically.<\/p><\/dd>\n<dt id=\"is%20statcounter%20free%3F\"><h3>Is StatCounter free?<\/h3><\/dt>\n<dd><p>Yes - the Basic plan is free forever and includes real-time visitor stats. Session replay and heatmaps are premium features, and every new account starts with a 30-day free trial (no credit card required).<\/p><\/dd>\n<dt id=\"will%20the%20tracking%20code%20slow%20down%20my%20site%3F\"><h3>Will the tracking code slow down my site?<\/h3><\/dt>\n<dd><p>No. The StatCounter code is lightweight and loads asynchronously, so it does not block your pages from rendering.<\/p><\/dd>\n<dt id=\"do%20you%20have%20any%20other%20questions%3F\"><h3>Do you have any other questions?<\/h3><\/dt>\n<dd><p><a href=\"https:\/\/statcounter.com\/about\/contact\/\">Please contact us here with your query.<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.2.0<\/h4>\n\n<p>Added a dismissible review reminder for site admins (shown once, snoozable, only after tracking has been active for a couple of weeks). Updated plugin listing: new description and screenshots covering Session Replay and Heatmaps.<\/p>\n\n<h4>2.1.2<\/h4>\n\n<p>Security fix: properly escape the post author nickname in the front-end author tag script (CVE-2026-6275). Tested up to WordPress 7.0.<\/p>\n\n<h4>2.0.9<\/h4>\n\n<p>Updated security checks<\/p>\n\n<h4>2.0.8<\/h4>\n\n<p>Added additional security checks<\/p>\n\n<h4>2.0.7<\/h4>\n\n<p>Added additional sanitation to prevent XSS attacks<\/p>\n\n<h4>2.0.6<\/h4>\n\n<p>Readme fix<\/p>\n\n<h4>2.0.5<\/h4>\n\n<p>Bug fix for async JS support<\/p>\n\n<h4>2.0.4<\/h4>\n\n<p>Async JS support<\/p>\n\n<h4>2.0.2<\/h4>\n\n<p>Compatibility enhancements<\/p>\n\n<h4>2.0.1<\/h4>\n\n<p>Security enhancements<\/p>\n\n<h4>2.0<\/h4>\n\n<p>StatCounter Tags supported.<\/p>\n\n<h4>1.7.1<\/h4>\n\n<p>Removed unnecessary type attribute from script element<\/p>\n\n<h4>1.7<\/h4>\n\n<p>Updated constant definitions to be case sensitive<\/p>\n\n<h4>1.6.9<\/h4>\n\n<p>Fixed small bug with form<\/p>\n\n<h4>1.6.8<\/h4>\n\n<p>Addd StatCounter https compatible code<\/p>\n\n<h4>1.6.7<\/h4>\n\n<p>Support https\/http for wordpress admin section when viewing StatCounter stats<\/p>\n\n<h4>1.6.6<\/h4>\n\n<p>Removed deprecated function calls<\/p>\n\n<h4>1.6.5<\/h4>\n\n<p>Modified url used for dashboard to not include project id when it has not been set.<\/p>\n\n<h4>1.6.4<\/h4>\n\n<p>Improved UI to give error message in dashboard when no project id has been set<\/p>\n\n<h4>1.6.3<\/h4>\n\n<ul>\n<li>Bug fix to prevent user entry of whitespace characters for Project ID and Security Code<\/li>\n<\/ul>\n\n<h4>1.6.2<\/h4>\n\n<ul>\n<li>Bug fix for Upgrade with PayPal link.<\/li>\n<\/ul>\n\n<h4>1.6.1<\/h4>\n\n<ul>\n<li>Correct incorrect spelling of 'invisibility'<\/li>\n<\/ul>\n\n<h4>1.6<\/h4>\n\n<ul>\n<li>Removed the 'Logging Enabled\/Disabled' option (you can deactivate the plugin instead). Updated installation instructions.<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Removed option to set partition - no longer required.<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Added noscript to StatCounter code - allowing non-javascript enabled visitors to be tracked.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Added counter position option. Allows you to specify the position of the counter in the header or footer.<\/li>\n<li>Added 'forced invisibility' option. Allows you to enable an invisible counter without logging into your StatCounter account.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Fixed critical bug.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added ability to view StatCounter Stats from within the Wordpress Admin.<\/li>\n<\/ul>","raw_excerpt":"Real-time visitor stats, session replay and heatmaps for your WordPress site. See exactly how visitors use your site - and why they leave.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=291"}],"author":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/statcounter"}],"wp:attachment":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=291"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=291"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=291"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=291"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=291"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}