Actions

slimstat_track_pageview

Applies to SlimStat 6.0.0 · checked

slimstat_track_pageview is an action called with one pageview array before storage. It is an observation hook, not proof that the database insert succeeded. Use slimstat_filter_pageview_stat to return modified data.

add_action( 'slimstat_track_pageview', function ( $stat ) {
    // Inspect the candidate pageview without changing its storage contract.
} );

This action runs before the final empty-record check, so the array can be empty if another filter rejected the candidate. Available fields depend on the tracking path and consent state. Do not assume an IP, username or stored row ID exists, and do not copy personal values into a public log. See the pageview filter.