FAQ

Didn’t the online documentation answer all questions yet? Maybe the following answers to frequently asked questions do help.

Which areas are excluded from counting?

Statify does not count the following views:

  • feeds
  • trackbacks
  • searches
  • previews
  • views by logged in users (unless tracking is activated via the settings page)
  • error pages
  • favicon.ico redirects

This behavior can be modified with the statify__skip_tracking hook.


Can further visitor data be recorded?

Some plugin users want to capture additional visitor data, e.g. name of the device and resolution. Statify counts exclusively page views and no visitors, the desired data acquisition is not a question.


How to change who can see the Dashboard widget?

Per default only administrators can see the widget. This can be changed with the statify__user_can_see_stats hook.

Example:

add_filter(
    'statify__user_can_see_stats',
    '__return_true'
);Code language: PHP (php)

has to be added to the theme’s functions.php and adapted to your needs. This example would allow all users to see the widget.

Editing the configuration is still limited to users with edit_dashboard capability.


How to skip tracking for defined users or pages?

The conditions for tracking views can be customized according to page type and user capabilities by using the hook statify__skip_tracking.

Example:

add_filter(
    'statify__skip_tracking',
    function( $previous_result ) {
        if ( condition ) {
            return true;
        }

        return false;
    }
);Code language: PHP (php)

has to be added to the theme’s functions.php The condition has modified such that the method returns true if and only if the view should be ignored.


How to extend this plugin?