How to show online users in WordPress in real time

While you can view historic visitor statistics for your WordPress website using cPanel, there may be times where you need to analyse traffic on a real-time basis.

You can do so easily using the WP-UserOnline plugin, which adds a widget to your site with real-time visitor analysis. Detailed statistics include the number of visitors, the type of visitor (members, guests or search bots) and their location.

To get started, log into your WordPress administration dashboard and select Plugins > Add New. Search for WP-UserOnline and, when displayed, install and activate the plugin.

Plugin installation

Once installed, head to Appearance > Widgets and scroll down the lost of available widgets until you see one named UserOnline. Drag and drop the widget into your sidebar.

widgets

Edit the widget title and click the Statistics Type dropdown menu to select the statistics you’d like to display.

Statistics Type

Save the widget settings and then view the site’s front-end to monitor your site traffic in real-time.

Monitor Site Traffic on a Separate Page

Rather than display your visitor statistics publicly, you may prefer to create a private page on your site where your traffic numbers are displayed. That’s an easy job with the WP-UserOnline plugin.

Select Pages > Add New from the WordPress sidebar and use the following shortcode to display your visitor statistics in real time.

[page_useronline]

New Page

You can choose to password protect the page or make it private, by editing Visibility settings.

Visibility

Save the page, then click the Preview button to view your real-time visitor statistics.

If you notice any problems or if you need any help, please open a new support ticket from your HostPapa Dashboard. More details on how to open a support ticket can be found here.

Related Articles

Get online with our affordable web hosting

Get online with our affordable web hosting

Learn more now
HostPapa Mustache