Functions

Unlock advanced capabilities using custom code from.

Adding Custom File Extensions in Download Tracker

By default, Data Plus allows you to track downloads of specific file types. However, if you need to track additional file types, you can easily add custom file extensions using the provided filter…

Adding Custom Exclusions

Exclusion is one of its essential features to exclude specific types of visits from being tracked, ensuring your analytics focus on genuine user interactions. The plugin offers a variety of…

Customizing User Online Status Intervals

In this document, we introduce two new filters for customizing the behavior of the WP Statistics plugin: wp_statistics_reset_user_online_time for PHP and wp_statistics_js_check_time_interval for JavaScript. 1. wp_statistics_reset_user_online_time The wp_statistics_reset_user_online_time filter allows…

Disable the FeedbackBird Widget

The FeedbackBird widget is a third-party service used for gathering user feedback within the WordPress admin interface. By default, this widget is enabled, but you can disable it using the…

Disable the “Your IP Information” Section in Settings

The “Your IP Information” section in the WP Statistics plugin, located at Settings → Advanced Options → Your IP Information, can be disabled using a WordPress filter. Follow these steps…

Customizing Cron Schedules

This guide explains how to use the wp_statistics_cron_schedules filter to modify the predefined cron schedules used in the WP Statistics plugin. By leveraging this filter, you can customize the intervals,…

Get a Page Stats List

You can make a list from Page Stats, including ID, Count, and Page Slug, by the following code:

Get a Page’s or Post’s Hits

You can get the page’s or post’s hits at different periods of time by the below examples:

Sanitize User IP

If the IP value returned from your server has a special character, you can sanitize user IP by using: wp_statistics_sanitize_user_ip filter in your WordPress for getting real user IP from…

Shortcodes

With WP Statistics, you can display different statistics using shortcodes in posts, pages, and HTML widgets. General Shortcode Format To use WP Statistics shortcodes, follow the format below: Parameters This…

Let’s get started
Take your business to next level

Become part of our growing family of +600,000 users and get the tools you need to make smart choices for your website. Simple, powerful insights are just a click away.