Functions

Unlock advanced capabilities using custom code from.

Making the Geolocation Database Download Work in a Private Network

This document provides instructions on how to host the GeoIP database and make it compatible with a private network, spe…

Track Google “Web Stories” Using WP Statistics

If you’re using the Google Web Stories plugin along with WP Statistics on your WordPress website, you might have noticed an important issue: Visits to your Web Stories are not…

Modify Tracker.js Loading Strategy

Available since version 14.12.3 The wp_statistics_tracker_loading_strategy filter allows you to customize the loading strategy of the tracker.js script. WP Statistics uses tracker.js to track user activity, and it is typically…

Modifying the Location String

Available since version 14.11.4 The wp_statistics_location_column_value filter allows you to modify the location string displayed in WP Statistics reports. This hook provides access to location data such as the city,…

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,…

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.