WP User Online Plugin
WordPress User Online plugin is a very useful plugin. It enables you to see how many people are online on your site and also whether they are people or bots and what page they are on currently. Also if they have left you a comment in the past it will also show up as their name rather than guest.
1. First you need to download the plugin from here then unzip it and upload it to your wp-content >> plugins folder. Alternatively you can download the plugin from Plugins >> Add New on your WordPress dashboard. Search wp user online and then click Install.
2. Activate the plugin. Then go to Settings >> UserOnline on your WordPress Dashboard. Make sure this is left blank.

3. Download this zip file from Ip2nation here Unzip the file and then you should see a file called ip2nation.sql
4. Go to your phpMyAdmin webpage on your Cpanel and log in with your MySql details.
Select your WordPress database and click on the Import tab.
5. Browse for the ip2nation.sql file then click Go. After a few seconds ip2nationCountries and ip2nation tables will be created.
6. Finally insert this code where you want your useronline to show up on your page.
Online: <?php if (function_exists('useronline')): ?>
<li><div id="useronline-count"><?php get_useronline(); ?></div></li>
<?php endif; ?>




