slimstat_filter_pageview_data_js
Applies to SlimStat 6.0.0 · checked
The PHP filter receives the decoded browser payload array in the shared browser-request processor before its fields are validated and processed. Return an array. This is a PHP hook, not a browser-side JavaScript callback. Treat all payload values as untrusted and preserve signature validation.
Callback signature
add_filter( 'slimstat_filter_pageview_data_js', function ( $data ) {
return $data;
} );
Test callbacks on staging with your tracking mode and report context. See the database API and building an add-on.