Hi there! New hack is coming. Today we are going to show you how to see real time online users statistic on your WordPress website.
The best and fastest workaround is a plugin. You can use WP-UserOnline plugin. It allows you to see full statistics about your site visitors.
As usual we will start with the plugin installation. Download WP-UserOnline plugin from wordpress.org.
Navigate to Plugins > Add New page in your WordPress admin panel. Browse plugin file you downloaded. Do not forget to activate plugin after upload.
After plugin is activated, we can change default plugin settings. Open Settings > UserOnline page in your site backoffice.
You will see general plugin settings reflected here. The first section is UserOnline options:
[mfc_lightbox]
[/mfc_lightbox]
The plugin has several templates available:
[mfc_lightbox]
[/mfc_lightbox]
Here you can modify UserOnline pages layout and content.
Now we can proceed to the next step. You can add user online counter to our site. There are several ways to do this:
This widget has several statistics available:

[page_useronline]
From screenshot above you can see that 2 guests are viewing site at this moment. You can see page they visit and time when they opened your site.<?php if (function_exists('users_online')): ?>
<p>Users online: <div id="useronline-count">
<?php users_online(); ?>
</div></p>
<?php endif; ?>
That is it! You know how to add user static to your site now and find out who is online.
More hacks are coming soon 😉
Subscribe to our newsletter and access exclusive content and offers available only to MonsterPost subscribers.
Leave a Reply
You must be logged in to post a comment.