Counterize plugin for WordPress

Counterize banner

Counterize plugin for WordPress

Introduction

Counterize is a counter and statistics plugin for WordPress that doesn’t use external libraries. Download Counterize!

Notice

There has been some reports that Counterize does not work well with WordPress 4.x currently. As we do not plan to update the plugin anytime soon, we advise to use another statistics plugin.

Features

  • Hourly, daily, weekly and monthly traffic stats
  • Popular pages and posts stats
  • IP addresses stats
  • Countries stats
  • Referrers stats
  • Accurate browsers stats (browser name and version)
  • Accurate operating system stats (operating system name, version and platform)
  • Keywords stats
  • Powerful history with filters let you find precisely what you’re looking for
  • Email reports
  • Integration in the WordPress toolbar
  • No flash, no external library needed
  • Extensible thanks to WordPress actions and filters
  • Dashboard widget for a quick overview of your blog statistics
  • Complete API to use the data of Counterize charts as you like
  • An administration interface using the new WordPress Settings API is available, as well as a dashboard with detailed informations and statistics
  • The users that are authorized to display the Counterize dashboard can be defined using WordPress capabilities
  • It can display statistics in your pages and posts (visit this webpage for a demo)

Version 3 of Counterize is doing its best to be compatible with the latest release of WordPress, but this is still a work-in-progress. Feel free to report any incompatibility! Also, please note that Counterize is only guaranteed to work correctly on the latest version of WordPress.

You are welcome to propose your translation for Counterize, please follow this guide. I am not a native English speaker, so your help for a better English translation would be appreciated as well.

Here is a very short demo of what Counterize can do:

[counterize type=”os” items=”3″ subitems=”5″ collapsible=”yes” header=”Top 3 operating systems”]

Counterize is a fork of Counterize II by Steffen Forkmann (http://www.navision-blog.de/counterize) who kindly gave us the permission to continue the development of his plugin. It has since evolved to a more complete and powerful plugin, and almost doesn’t share common code anymore.

Counterize API

After you have installed the Counterize plugin, you can see a lot of diagrams on the Counterize Dashboard page (Dashboard/Counterize).

Most likely you’d like to have a counter somewhere on your pages, showing the number of visitors or similar.
Here’s an overview of the functions which can be used anywhere in your WordPress blog:

Traffic functions

counterize_getamount()                 // Returns the total hits seen by Counterize.
counterize_getpagesamount()            // Returns the total pages/posts views.
counterize_gethitstoday()              // Returns the total hits registered today.
counterize_get_online_users()          // Returns the number of currently online users.
counterize_getlatest7days()            // Returns the total amount of hits from the last 7 days.
counterize_getuniqueamount()           // Returns the total unique IP's that's been seen.
counterize_getfromcurrentip()          // Returns the total hits from the IP that's visiting.
counterize_getuniquehitstoday()        // Returns the number of different IP's registered today.
counterize_gethitstodayfromcurrentip() // Returns the daily hits from the IP that's visiting.
counterize_current_post_hits()         // Get number of hits on current post/page.
counterize_return_first_hit()          // Returns the date of the first registered entry in the database.
$counterize_plugins['traffic']->counterize_get_hits()                     // Output an HTML table with statistics about hits.
$counterize_plugins['traffic']->counterize_feed_daily_stats()             // Get the daily stats data feed.
$counterize_plugins['traffic']->counterize_render_daily_stats()           // Render the daily stats data feed.
$counterize_plugins['traffic']->counterize_feed_monthly_stats()           // Get the monthly stats data feed.
$counterize_plugins['traffic']->counterize_render_monthly_stats()         // Render the monthly stats data feed.
$counterize_plugins['traffic']->counterize_feed_weekly_stats()            // Get the weekly stats data feed.
$counterize_plugins['traffic']->counterize_render_weekly_stats()          // Render the weekly stats data feed.
$counterize_plugins['traffic']->counterize_feed_week_progression_stats()  // Get the progression between the last current week stats data feed.
$counterize_plugins['traffic']->counterize_render_week_progression_stats()// Render the progression between the last current week stats data feed.
$counterize_plugins['traffic']->counterize_feed_hourly_stats()            // Get the hourly stats data feed.
$counterize_plugins['traffic']->counterize_render_hourly_stats()          // Render the hourly stats data feed.

Referrers functions

counterize_getuniquereferers()                                              // Returns the amount of unique referrers that have been recorded.
$counterize_plugins['referers']->counterize_feed_most_seen_referers()       // Gets the most seen referrers data feed.
$counterize_plugins['referers']->counterize_render_most_seen_referers()     // Renders the most seen referrers data feed.
$counterize_plugins['referers']->counterize_feed_most_seen_referers24hrs()  // Gets the most seen referrers data feed for the last 24 hours.
$counterize_plugins['referers']->counterize_render_most_seen_referers24hrs()// Renders the most seen referrers data feed for the last 24 hours.

Pages and Posts functions

counterize_getuniqueURL()                                                 // Returns the amount of unique URL's that have been shown.
$counterize_plugins['pages']->counterize_feed_most_requested_urls()       // Gets the most requested URLs data feed.
$counterize_plugins['pages']->counterize_render_most_requested_urls()     // Renders the most requested URLs data feed.
$counterize_plugins['pages']->counterize_feed_most_requested_urls24hrs()  // Gets the most requested URLs data feed for the last 24 hours.
$counterize_plugins['pages']->counterize_render_most_requested_urls24hrs()// Renders the most requested URLs data feed for the last 24 hours.
$counterize_plugins['pages']->counterize_feed_most_popular_posts()        // Gets the most popular posts/pages data feed.
$counterize_plugins['pages']->counterize_render_most_popular_posts()      // Renders the most popular posts/pages data feed.
$counterize_plugins['pages']->counterize_feed_most_popular_posts24hrs()   // Gets the most popular posts/pages data feed for the last 24 hours.
$counterize_plugins['pages']->counterize_render_most_popular_posts24hrs() // Renders the most popular posts/pages data feed for the last 24 hours.

IP addresses functions

$counterize_plugins['ip']->counterize_feed_most_active_ips()       // Gets the most active IP addresses data feed.
$counterize_plugins['ip']->counterize_render_most_active_ips()     // Renders the most active IP addresses data feed.
$counterize_plugins['ip']->counterize_feed_most_active_ips24hrs()  // Gets the most active IP addresses data feed of the last 24 hours.
$counterize_plugins['ip']->counterize_render_most_active_ips24hrs()// Renders the most active IP addresses data feed of the last 24 hours.

Keywords functions

$counterize_plugins['keywords']->counterize_feed_most_searched_keywords()       // Gets the most searched keywords data feed.
$counterize_plugins['keywords']->counterize_render_most_searched_keywords()     // Renders the most searched keywords data feed.
$counterize_plugins['keywords']->counterize_feed_most_searched_keywords24hrs()  // Gets the most searched keywords data feed for the last 24 hours.
$counterize_plugins['keywords']->counterize_render_most_searched_keywords24hrs()// Renders the most searched keywords data feed for the last 24 hours.

Countries functions

$counterize_plugins['keywords']->counterize_feed_most_visiting_countries()       // Gets the most visiting countries data feed.
$counterize_plugins['keywords']->counterize_render_most_visiting_countries()     // Renders the most visiting countries data feed.
$counterize_plugins['keywords']->counterize_feed_most_visiting_countries24hrs()  // Gets the most visiting countries data feed for the last 24 hours.
$counterize_plugins['keywords']->counterize_render_most_visiting_countries24hrs()// Renders the most visiting countries data feed for the last 24 hours.

Browsers functions

counterize_getuniquebrowsers()                                                         // Returns the amount of unique browser strings that have visited your blog.
$counterize_plugins['browsers']->counterize_feed_most_used_browsers_collapsible()      // Gets the most used browsers data feed with detailed version statistics for each item.
$counterize_plugins['browsers']->counterize_render_most_used_browsers_collapsible()    // Renders the most used browsers data feed with detailed version statistics for each item.
$counterize_plugins['browsers']->counterize_feed_most_used_browsers_without_version()  // Gets the most used browsers without version data feed.
$counterize_plugins['browsers']->counterize_render_most_used_browsers_without_version()// Renders the most used browsers without version data feed.
$counterize_plugins['browsers']->counterize_feed_most_used_browsers()                  // Gets the most used browsers data feed.
$counterize_plugins['browsers']->counterize_render_most_used_browsers()                // Renders the most used browsers data feed.

Operating systems functions

$counterize_plugins['os']->counterize_feed_most_used_os_collapsible()      // Gets the most used os data feed with detailed version statistics for each item.
$counterize_plugins['os']->counterize_render_most_used_os_collapsible()    // Renders the most used os data feed with detailed version statistics for each item.
$counterize_plugins['os']->counterize_feed_most_used_os_without_version()  // Gets the most used os without version data feed.
$counterize_plugins['os']->counterize_render_most_used_os_without_version()// Renders the most used os without version data feed.
$counterize_plugins['os']->counterize_feed_most_used_os()                  // Gets the most used os data feed.
$counterize_plugins['os']->counterize_render_most_used_os()                // Renders the most used os data feed.

Actions

  • counterize_show_data : Let plugins show their data into the “Counterize” sub-menu page.
  • counterize_after_includes : Happens right after Counterize included its files.
  • counterize_before_insert_into_database: Let plugins do something just before some data is inserted into the database.
  • counterize_after_insert_into_database : Let plugins do something just after some data is inserted into the database.
  • counterize_init : Let plugins add a hook into Counterize initialization procedure.
  • counterize_before_install : Let plugins do something just before installation.
  • counterize_after_install : Let plugins do something just after installation.

Filters

  • counterize_before_includes : Let plugins filter which files are included.
  • counterize_server_remote_addr : Let plugins filter the $_SERVER[‘REMOTE_ADDR’] value.
  • counterize_server_http_user_agent : Let plugins filter the $_SERVER[‘HTTP_USER_AGENT’] value.
  • counterize_server_request_uri : Let plugins filter the $_SERVER[‘REQUEST_URI’] value.
  • counterize_server_referer : Let plugins filter the $_SERVER[‘HTTP_REFERER’] value.
  • counterize_server_this_url : Let plugins filter the $this_url variable.
  • counterize_bot_array : Let plugins filter the bot array.
  • counterize_check_insert_into_database : Let plugins add their own conditions for determining if data should be inserted into the database.
  • counterize_check_data : let plugins add their own diagrams.
  • counterize_shortcodes : let plugins add their own shortcodes.
  • counterize_dashboard_add_submenu : let plugins add their own sub menu.
  • counterize_mce_js_before_form_filter : let plugins output something before the form of the Counterize modal dialog in the Visual editor.
  • counterize_mce_js_before_fields_filter: let plugins output something before the fields of the Counterize modal dialog in the Visual editor.
  • counterize_mce_js_type_filter : let plugins add more type items in the Counterize modal dialog in the Visual editor.
  • counterize_mce_js_period_filter : let plugins add more period items the Counterize modal dialog in the Visual editor.
  • counterize_mce_js_after_fields_filter : let plugins output something after the fields of the Counterize modal dialog in the Visual editor.
  • counterize_mce_js_after_form_filter : let plugins output something after the form of the Counterize modal dialog in the Visual editor.
  • counterize_mce_js_options_filter : let plugins add/modify attributes and their defaults for the Counterize modal dialog in the Visual editor.
  • counterize_mce_js_radiobutton_filter : let plugins add/modify the list of attributes of type “radio button” for the Counterize modal dialog in the Visual editor.
  • counterize_mce_js_checkbox_filter : let plugins add/modify the list of attributes of type “checkbox” for the Counterize modal dialog in the Visual editor.
  • counterize_report : let plugins output some content in the email reports
  • counterize_report_what_filter : let plugins add some items in the list used to generate email reports

Shortcodes

You can insert a Counterize diagram using the Counterize button in your Visual editor. The most basic shortcode is:

[[counterize]]

This will display a short copyright notice.

All the attributes are optional. The following attributes and their values are currently available:

  • type: String. Valid values are:
    • copyright“: Shows a copyright notice (default value)
    • browsers“: Browsers diagrams
    • os“: Operating systems diagrams
    • countries“: Countries diagrams
    • ip“: IP addresses diagrams
    • hosts“: Host-names diagrams (only available if enabled in the settings)
    • outlinks“: Out-links diagrams
    • exitpages“: Exit pages diagrams
    • keywords“: Keywords diagrams
    • referers“: Referrers diagrams
    • domains“: Domains diagrams
    • hits“: Hits table
    • hourly“: Hourly stats diagrams
    • daily“: Daily stats diagrams
    • weekly“: Weekly stats diagrams
    • monthly“: Monthly stats diagrams
    • all“: All tables and diagrams
  • items: Positive and non-zero integer that represents the number of items to display in the diagram. Default value: 10
  • subitems: Positive and non-zero integer that represents the number of sub-items to display in the diagram. Only effective with collapsible diagrams. Default value: 15
  • version: String. Set to “yes” to display diagrams with version information, “no” otherwise. Only effective with Browsers and OS diagrams. Default value: “yes”
  • collapsible: String. Set to “yes” to display collapsible diagrams with each item containing child items, “no” otherwise. Only effective with Browsers and OS diagrams. Default value: “no”
  • print_header: String. Set to “yes” to display a header above the diagram, “no” otherwise. Default value: “yes”
  • header: String. Set to non-empty string to override the default header. Default value: empty string
  • period: String. Valid values are:
    • (empty string): No period limit (default value)
    • 24h“: Limit data to the latest 24 hours. Available for most diagrams except the Traffic ones
    • onlytoday“: Limit data to today only. Available for Traffic diagrams
    • onlythisweek“: Limit data to this week only. Available for Traffic diagrams
    • onlythismonth“: Limit data to this month only. Available for Traffic diagrams
    • onlythisyear“: Limit data to this year only. Available for Traffic diagrams
  • tn_width: Positive and non-zero integer. Width of the post thumbnail. Default value: 50
  • tn_height: Positive and non-zero integer. Height of the post thumbnail. Default value: 50

Development status

Legend: [status, priority] Description

  • [wip, medium] Make a Counterize widget
  • [10%, low] Add some sorting options (by label for example)
  • [ 0%, medium] Get rid of pre-3.0.0 installation scripts
  • [ 0%, medium] A new installation should have its own installation script (currently upgrading from 1.0.0 to 3.x.x…)
  • [ 0%, low] To be able to resize and move charts in the dashboard (but I consider it not urgent)
  • [ 0%, low] Using the HighCharts library as an alternative fancier display
  • [ 0%, medium] Making a standalone version of Counterize. That would allow to port it to other platforms (Drupal, Magento…).
  • [ 0%, high] Allow wildcard characters support in IP address exclusion list
  • [ 0%, high] Solve time zones problems as many reported it
  • [ 0%, high] Reduce the Counterize footprint on database [BIG JOB AS ALL QUERIES MUST BE RE-WRITTEN]
  • [ 0%, medium] Send daily, weekly or monthly reports by email
  • [ 0%, medium] Better IP exclusion list handling
  • [ 0%, low] Add more function to count unique visitors, in a similar way as hits
  • [ 0%, high] Move some Counterize functions into their respective plugins
  • [ 0%, medium] Add screen size statistics

See Counterize in action

You can see Counterize in action in the bottom of our website pages, and also on this demo page.

FAQ

Q: I know that I have incoming traffic but  Counterize stats stay at zero. Why?

A: There is probably a problem somewhere, so I will need you to do the following:

  •  Open your wp-config.php file
  • Ensure that WP_DEBUG is set to true. The line should be “define( ‘WP_DEBUG’, false );”
  • Add the following lines just after:
error_reporting( E_ALL | E_STRICT );
ini_set('display_errors', 1);
  • Reload your website in your browser
  • Tell me about any errors, warnings and notices you see, if any
  • If no errors are shown, then you probably do not have incoming traffic…

Q: Why aren’t the IP of my visitors logged?

A: You need to enable the option in the Counterize settings. It is disabled by default. 

Q: How to translate Counterize in my language?

A: Please follow these instructions

Q: Can I extend Counterize?

A: Yes. Counterize is now modularizable and you can add your own Counterize plugin. Counterize also provides several action and filter hooks.

Q: Can Counterize replace Google Analytics?

A: Not yet. But it’s a good addition/alternative. 

Q: What are the minimum requirements to run Counterize?

A: The same requirements than the current stable version of WordPress, so for example PHP 5 is required, but as with each supplementary plugin, it will use more RAM, so take this into account.
Counterize is also known to take a lot of database space in its current version, especially if your website is very visited.

Q: I see an error message like “The script whose uid is 12345 is not allowed to access /var/tmp/” or “Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent“, HELP!

A: Try adding the following 3 lines just after the PHP start tag of your wp-config.php:

if( ! isset( $_SESSION ) )
{
	session_start();
}

Also, make sure the session.save_path in your php.ini is set and point to a valid path. Please read this article for more details about this issue.

Q: Do you provide support for Counterize?

A: Sometimes, I can provide BASIC support for free. It mostly depends on my free time, because Counterize is developed on my free time too.
Nobody likes to work for peanuts, so do not expect professional level support for free.
If you need a better support or something is urgent, please contact me to discuss of a price. 

Get Counterize

Download Counterize!

462 Responses

  1. can says:

    hi thanks for plugin.

    I want to translate to Turkish plugin.

    if you send word list or please tell me what can i do ?

    • Hi can, please follow these steps:

      In the Counterize folder, you will find a file “counterize.pot”.
      Rename that file to “counterize-tr.po” (not “.pot”), then open it with a translation tool such as Poedit (http://www.poedit.net/)
      If you use Poedit, go to the Catalog>Settings menu (or whatever it is in turkish), and fill in the following informations:

      In the “Project informations” tab:

      Name and version of the project: counterize 3.0.8
      Translation team: whatever you want
      Translation team email: your email
      Language: Turkish
      Character set: UTF-8
      Do not fill-in the Country field. This way, if any other country speak turkish, they can also benefit from your translation
      Country: Select your country

      In the Path tab: add a path to where you extracted Counterize
      In the Keywords tab: add “__” and “_e” keywords

      Then save the settings
      You can now translate each sentence to turkish.
      Save your translation. A new file “counterize-tr.mo” should be created.
      Send me the two files “counterize-tr.po” and “counterize-tr.mo”

      Thats all! 🙂

      Good luck and thank you for your interest in Counterize.

  2. can says:

    i finish translate. i have counterize-tr.po and counterize-tr.mo files. but can i see on my working wordpress blog for last check ?

  3. Thank you for the translation.

    Once you have your counterize.mo and counterize.po files, just upload them in the counterize folder. Counterize should be translated automatically to the language of your blog, provided you set it to Turkish already.

    If your blog is still in English, I suggest that you read the following article: http://codex.wordpress.org/WordPress_in_Your_Language

    If you just want Counterize to be in Turkish and keep your blog in English, you can try to replace the following value in your wp-config.php file:

    Replace:
    define ('WPLANG', '');
    By:
    define ('WPLANG', 'tr');

    Hope this helps.

    Regards

  4. Sandra says:

    I’m using counterize II as a plugin in my web and always worked, but now since a few days ago the counter is always in 0 visits and i don’t know why.. there’s any solution for it?

  5. Hi,

    – Which counter exactly?
    – Which version of Counterize are you using?
    – If not the latest, can you try to upgrade to the latest one and see if it helps?
    – If it does not help, can you try to set WP_DEBUG to true in wp-config.php and report me any error message?

    Regards

  6. Miguel says:

    Thanks very much for this plugin, i have been using it for a while now, but the last update have gave me lots of errors (undefined index:…). I am using wordpress 3.1.3 with twenty ten 1.2 (very slightly modified) and counterize 3.0.13. Thanks in advance.

  7. Hi Miguel,

    Please send me the complete errors messages, all of them.

    Thanks

  8. dom says:

    hi, thanks for this great plugin.

    I would like to make counterize visible for “editors” users on my wordpress. They get a message saying they don’t have rights to see it…

    How can i do ?

    Thanks in advance

  9. Will says:

    Hello,

    Counterize doesn’t seem to work on multi-site installs. None of the sites report any data being collected, even after Counterize has been installed and active for months. Have you had a chance to test on a multi-site install yet?

  10. Hi Will,

    No I haven’t had a chance to test this on a multi-site install, sorry. If I understand well, the issue was also present with the previous version of Counterize (Counterize II 2.14.1).

    It would be useful for me if you could set WP_DEBUG to true in your wp-config.php as well as uncomment the line “error_reporting(E_ALL)” in the beginning of counterize.php, and then report any error message to me.

    Thanks for your interest in Counterize.

    Regards

  11. Anni says:

    Hi, I just installed the latest version, replacing my previous version, and now I can’t view my stats (it says I don’t have permission) – any idea what to do to fix this? Thanks!

  12. Hi Anni,

    Which role does your user have (see http://codex.wordpress.org/Roles_and_Capabilities)? Currently Counterize is disabled for non-admin users, but I could change this in the next version. Maybe make it a setting.

  13. emale says:

    When looking in the dashboard in WordPress under RTL languauge, it looks garbled.

    Can you fix that?

  14. Hi emale, maybe I can fix it, do you have a screenshot?

  15. vitaly says:

    После последнего обновления, когда в админке появилась кнопка Контерайза, пропала кнопка Записи…

  16. Steve says:

    No longer able to activate the latest versions of Counterise as the make_seed function is already declared in an existing wp-security-scan plugin

    Fatal error: Cannot redeclare make_seed() (previously declared in /homepages/34/d139455238/htdocs/wordpress/wp-content/plugins/wp-security-scan/functions.php:4) in /homepages/34/d139455238/htdocs/wordpress/wp-content/plugins/counterize/counterize.php on line 114

  17. Thanks for reporting this Steve, I will rename the function in the upcoming version. You can rename all the occurences of “make_seed” to “counterize_make_seed” if you can’t wait a few hours for the next release.

    Sorry for any inconvenience!

    Best regards,

    Gabriel Hautclocq

  18. Steve says:

    Gabriel

    Many thanks for the quick response. I didn’t want to rename the function in my copy as it would have been overwritten in later updates.

    Many thanks, great plug-in.

    Kind regards
    Steve

  19. Mike says:

    Hi,

    since one of the last updates, counterize got its own menu entry. unfortunatly somehow the article menu was removed by that??

    I’m using the latest WordPress version and the latest counterize version. Updates are done using the auto-update feature.

    thanks,

    Mike.

    P.S. Thanks for continuing and improving this great plug in. I’ve been a counterize user for many years now.

  20. tdski says:

    Great Plug-in but as above, the new menu tab in the admin replaces the Posts tab (the one at the top of the admin bar on the left of the screen). Thus, you have to continuously activate and deactivate the plug-in.

    Hope you fix this bug, it’s an otherwise excellent plug-in!

    Thanks.

  21. Hi Mike and tdski,

    It seems it’s a problem with line 2470 of counterize.php:

    $counterize_dashboard_handles[‘dashboard’] = add_menu_page(__(‘Counterize’, ‘counterize’) . ‘ – ‘ . __(‘Dashboard’, ‘counterize’), __(‘Counterize’, ‘counterize’) , $capability, “counterize_dashboard”, ‘counterize_display_dashboard_page_callback’, $counterize_plugin_url . ‘/bar_chart_20x20.png’, 5);

    A quick fix would be to change the last argument (5) by another smaller number. However I have to find how to insert this menu without replacing an existing one regardless of the wordpress installation.

    Sorry for the inconvenience, and thank you for your interest in Counterize!

    Regards

  22. This bug should be fixed in the 3.0.19 release I just committed to the WordPress repository 😉

  23. tdski says:

    Works perfectly now. Thanks a lot for that.

  24. You are welcome, I’m glad this fixed the issue.

  25. Mike says:

    Yes. Problem solved. Thanks a lot.

    Another issue: I’m trying to update a very old version of counterize with quite a bit of data to the last version. the update is working, but if you activate the plug-in, it times out after 30 seconds (that’s the max execution time for scripts on my webhost), also blocking the rest of the backend.

    I guess it’s update the database and with a lot of data is timing out. Is there a way to do this updating more efficient or at least make it a manual action?

  26. Hi Mike,

    Counterize will not work properly if it cannot update its database. What I propose is that you do the following:
    – Backup your database
    – Import it in a local web server where you can change the max execution time to a greater value than 30 seconds.
    – Let Counterize do its update job until completion
    – Export the local database
    – Import it to your webhost database

    Hope this helps!

    Regards

  27. emale says:

    I can generate s screenshot.
    To what address to send it to?

    Also, more problems:

    I want to add my CHANGING IP (for example emale199.no-ip.com) to the IP filter, and I cannot.

    Can you add support to No-IP.com and other dynamic DNS services?

  28. Nico_GH2 says:

    Hi,
    I’m running v3.0.19 on wp3.1.3 and can view statistic in the dashboard.

    I can’t get them visible in a post/page.
    When I go to Edit-plugins I find all php-files are listed as inactive except counterize.php.
    Install had no problems or errors.
    Does that ring a bell or is that normal behaviour?

  29. budi says:

    i try to my wp site

  30. @All,

    You can try to use the #- something -# syntax. I’ve verified that it works. If not, try to disable any other plugins to see if it helps.

  31. Alca says:

    Hey guys, nice script. my problem: it does not show the IP’s. Is this a known problem, or just my fault? greetz

  32. Did you enable the collection of IP addresses in Counterize options? If you can’t find that option, then you should definitely upgrade to the latest version, then enable this option 😉

  33. joni says:

    hi,
    thanks for the plugin, it is very helpful!
    🙂
    my site is in hebrew and I would like to know if there is a way to display the “most searchd words” properly. right now the plug won’t display hebrew, instead I get – “????????”
    thanks!

  34. Daniel says:

    Hi,
    I found several problems updating from an older version (no version in wp_options so update used 1.0.0) and a large amount of usage data (almost 100,000 entries in wp_Counterize).

    First problem was copying data to the new tables for pages, referers, user agents. The installation script loads all entries from wp_Counterize and does a single update for each row, this exceeded the memory limit. I would suggest just doing an update like
    UPDATE wp_Counterize c SET c.pageID = (SELECT p.pageID FROM wp_Counterize_Pages p WHERE p.url = c.url);
    I did it this way for all three tables without any problems.

    Creation of the new keyword table worked with loading all referrers after I added unset($referers) afterwards to free memory, but maybe it would be better not to do it this way because the more referrers exist, the more likely a memory problem will exist. With loading e.g. 5000 entries each time in a loop it would be safe.

    Last problem was the country update – at least there is a warning in the update script for this (however you don’t see it without looking into the installation script – especially online update via wordpress admin interface is a problem here). I suggest doing this analogue to my proposal for referrers.

    This is all about memory problems during update, functionality is perfect. I really like this plugin – thanks for it!

  35. jan says:

    Hi, I updated to the newest version (3.0.26) today. WordPress 3.1.3 german is installed. On activating the plugin I got an error in line 357 of the install.php. I had to delete the plugin folder manually. Deleting the old wp_counterize – Tables in my database didn’t help. Previous versions where working fine. Can you reproduce this problem?

  36. Sebastian says:

    hej,

    i use wordpres 3.0.3. i just want to show the unique hits on one page and tried your codes like . they dont work. worpress either formats or doesnt show any info. it looks different to the short codes wordpress usually uses or were they just for websites without wordpress?

  37. Robert Hurst says:

    FYI, for the past couple of minor revisions, the ip_files/countries.php file has to be edited to have the leading tag as “<?php" and not just "<?" for it to work properly (not dump a bunch of Array code to the browser).

    Is there anything I need to do to suppress hyperlinks from rendering the underline for the Top 10 browsers, et al? Cosmetically, it is annoying to see:

    http://robert.hurst-ri.us/about/

    Thanks!

  38. chris says:

    Hi,

    thanks for the plugin. I have a lot of external links on my page – can Counterize monitor those as well? How about downloadable files, is it possible to monitor those, too?

    I really appreciate your help,
    chris

  39. Neo says:

    But I want to show the number of visit on my blog…
    How Can I do that?

  40. Hi Neo,

    If you want to show the number of visits same as in my website, you can add something like this in the PHP code of your footer:

    visitors

  41. Neo says:

    Thx, But It doesn’t work…

  42. Could you be more precise that “it doesn’t work” ?

  43. Neo says:

    It is working now… The problem was the space “< ?php".
    Thanks a lot.

  44. Ah, right, this space is automatically inserted by WordPress when a comment is posted (for obvious security reasons 🙂 ).

  45. yarra says:

    Great plugin! Does exactly what it needs to do! Thanks!
    Just got one warning in WP

    Warning: Division by zero in /public/sites/www.domain.nl/wp-content/plugins/counterize/counterize.php on line 1842

    Warning: Division by zero in /public/sites/www.domain.nl/wp-content/plugins/counterize/counterize.php on line 1846

  46. Thanks!
    This will be fixed in the next release 🙂

  47. Hi everyone,

    The updates for Counterize are less frequent these days. That is because I am currently rewriting some Counterize old code in order to make Counterize modularizable and extensible.

    The next release should arrive quite soon, thank you for your patience.

    In the next version you should be able to:

    • Use the data from any chart to do whatever you want with it. Each chart will not use a data feed as its data source, so you will be able to create your own charts if you know some PHP.
    • Create your own modules if you need
    • Enable/Disable modules (eg: disable the Referer module if you don’t use it)

    That should be the best release of Counterize ever released 🙂

  48. D. Ian says:

    Hi, I’ve been trying to get Counterize to work but I get a message telling me “There’s no data in the database – You can’t see stats until you have data.” I have no entries for Counterize in my database and I have had visitors since installing. I’ve uninstalled and reinstalled and there are still no Counterize entries in my database and no stats show up at all.

  49. Hi D. lan, Counterize has already been reported to not record data in case your WordPress installation is a multisite one (MU). If that is the case, unfortunately I do not know how to solve this problem yet. If you have a standard WordPress installation (not multisite), you should edit your wp-config.php to set WP_DEBUG to true as well as adding the two following lines:

    error_reporting( E_ALL | E_STRICT );
    ini_set(‘display_errors’, 1);

    Then tell me of any errors, warnings and notices you may see.

  50. The modularization will actually arrive with a next version. 3.0.30 bring data feeds though.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.