Filters

slimstat_filter_pre_tracking

Applies to SlimStat 6.0.0 · checked

This filter receives the current tracking decision. Return false to disable tracker registration for the request. Preserve an incoming false so your integration does not re-enable an excluded internal request.

Callback signature

add_filter( 'slimstat_filter_pre_tracking', function ( $is_tracking ) {
    return $is_tracking && empty( $_GET['preview'] );
} );

Test callbacks on staging with your tracking mode and report context. See the database API and building an add-on.