SlimStat Analytics 6.1.2 has 21 actions and 50 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when SlimStat Analytics fires an action
add_action( 'slimstat_consent_granted', function( $stat, $stat2 ) {
// Your code runs here.
}, 10, 2 );
// Change a value SlimStat Analytics is about to use
add_filter( 'slimstat_live_analytics_load_assets', function( $value, $screen ) {
// Change $value here.
return $value;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
slimstat_consent_granted
action/** * Fires when a consent upgrade request is processed. */ do_action( 'slimstat_consent_granted', $stat['id'], $stat ); -
slimstat_daily_license_check
action/** * Fires daily to allow license status revalidation. */ do_action( 'slimstat_daily_license_check' ); -
slimstat_heatmap_viewer
action/** * Renders one page's heatmap. Pro hooks it; the list below is skipped. */ do_action( 'slimstat_heatmap_viewer', $page_key ); -
/** * Allow developers to load Live Analytics assets on custom pages */ apply_filters( 'slimstat_live_analytics_load_assets', ( $is_slimstat_page || $is_dashboard ), $screen ); -
/** * Round "now" down to a multiple of this many seconds when clamping a live * window. */ apply_filters( 'slimstat_live_window_bucket_seconds', 0 ); -
slimstat_rate_limit_key
filter/** * Filters the identity a rate-limit budget is tracked against. */ apply_filters( 'slimstat_rate_limit_key', $ip ); -
slimstat_rest_controllers
filter/** * Filter: slimstat_rest_controllers */ apply_filters( 'slimstat_rest_controllers', $controllers ); -
slimstat_widget_max_entries
filter/** * Filters how many goals or funnels one render computes numbers for. */ apply_filters( 'slimstat_widget_max_entries', $tier_max, $type ); -
slimstat_custom_wpdb
filterapply_filters( 'slimstat_custom_wpdb', $GLOBALS['wpdb'] ); -
slimstat_max_goals
filterapply_filters( 'slimstat_max_goals', 1 ); -
slimstat_max_funnels
filterapply_filters( 'slimstat_max_funnels', 0 ); -
slimstat_heatmap_row_url
filterapply_filters( 'slimstat_heatmap_row_url', '', $page_key ); -
slimstat_consent_revoked
actiondo_action( 'slimstat_consent_revoked', $parsed_consent, $source ); -
do_action( 'slimstat_gdpr_consent_changed', $consent ); -
slimstat_get_results_sql
filterapply_filters( 'slimstat_get_results_sql', $_sql, $_select_no_aggregate_values, $_order_by, $_group_by, $_aggregate_values_add ); -
slimstat_get_var_sql
filterapply_filters( 'slimstat_get_var_sql', $_sql, $_aggregate_value ); -
slimstat_maxmind_path
filterapply_filters( 'slimstat_maxmind_path', $upload_dir ); -
apply_filters( 'slimstat_report_header_buttons', $header_buttons, $_report_id ); -
slimstat_set_visit_cookie
filterapply_filters( 'slimstat_set_visit_cookie', ($force || ($piiAllowed && $cookieEnabled)) ); -
slimstat_track_success
actiondo_action( 'slimstat_track_success' ); -
slimstat_ai_page
actiondo_action( 'slimstat_ai_page', $ai_tab ); -
apply_filters( 'slimstat_black_friday_2026_banner', self::in_window(current_datetime()) ); -
slimstat_can_track
filterapply_filters( 'slimstat_can_track', $default, self::buildFilterContext() ); -
slimstat_column_names
filterapply_filters( 'slimstat_column_names', self::$all_columns_names ); -
apply_filters( 'slimstat_db_filters_normalized', $fn, $_filters_raw ); -
slimstat_db_pre_filters
filterapply_filters( 'slimstat_db_pre_filters', $filters_raw ); -
apply_filters( 'slimstat_ecommerce_dimensions', [] ); -
do_action( 'slimstat_ecommerce_group_actions', $dimension, $data ); -
apply_filters( 'slimstat_ecommerce_product_details', false ); -
do_action( 'slimstat_email_report_content' ); -
slimstat_filter_browscap
filterapply_filters( 'slimstat_filter_browscap', $browser ); -
slimstat_filter_ip_address
filterapply_filters( 'slimstat_filter_ip_address', $ipArray ); -
apply_filters( 'slimstat_filter_options_limit', 500, $dimension ); -
apply_filters( 'slimstat_filter_pageview_data_js', \wp_slimstat::$raw_post_array ); -
apply_filters( 'slimstat_filter_pageview_stat', $stat ); -
apply_filters( 'slimstat_filter_pageview_stat_init', $stat ); -
slimstat_filter_pre_tracking
filterapply_filters( 'slimstat_filter_pre_tracking', !$_is_internal_endpoint ); -
apply_filters( 'slimstat_filter_pre_tracking_js', true ); -
slimstat_goals_hard_cap
filterapply_filters( 'slimstat_goals_hard_cap', 50 ); -
slimstat_heatmap_content
actiondo_action( 'slimstat_heatmap_content' ); -
slimstat_init_options
filterapply_filters( 'slimstat_init_options', self::$settings ); -
slimstat_js_params
filterapply_filters( 'slimstat_js_params', $params ); -
apply_filters( 'slimstat_live_users_cache_ttl', 60 ); -
slimstat_native_ai_available
filterapply_filters( 'slimstat_native_ai_available', false ); -
slimstat_native_ai_config
filterapply_filters( 'slimstat_native_ai_config', [ 'native' => false, 'can_manage' => current_user_can('manage_options'), 'upgrade' => \SlimStat\Utils\ProLinks::url('ai-analysis', 'reports', true), 'explore' => admin_url('admin.php?page=slimai'), ] ); -
slimstat_native_ai_heatmap
filterapply_filters( 'slimstat_native_ai_heatmap', null, $context, $fs ); -
apply_filters( 'slimstat_network_merge_active', false ); -
slimstat_options_on_page
filterapply_filters( 'slimstat_options_on_page', $settings ); -
slimstat_rate_limit_enabled
filterapply_filters( 'slimstat_rate_limit_enabled', $has_persistent_cache, $ip ); -
do_action( 'slimstat_register_ajax_handlers' ); -
apply_filters( 'slimstat_report_header_after_title', '', $_report_id ); -
slimstat_report_registered
actiondo_action( 'slimstat_report_registered', $report ); -
slimstat_report_unregistered
actiondo_action( 'slimstat_report_unregistered', $id ); -
apply_filters( 'slimstat_reports_di_container', $container ); -
slimstat_reports_info
filterapply_filters( 'slimstat_reports_info', self::$reports ); -
slimstat_reports_loaded
actiondo_action( 'slimstat_reports_loaded', $loaded ); -
do_action( 'slimstat_reports_system_initialized' ); -
slimstat_save_options
filterapply_filters( 'slimstat_save_options', wp_slimstat::$settings ); -
slimstat_screens_info
filterapply_filters( 'slimstat_screens_info', self::$screens_info ); -
slimstat_set_data_js
filterapply_filters( 'slimstat_set_data_js', $data_js ); -
slimstat_set_stat
filterapply_filters( 'slimstat_set_stat', $stat ); -
slimstat_track_event_enabled
filterapply_filters( 'slimstat_track_event_enabled', true, $event_info ); -
do_action( "slimstat_track_exit_{abs($errorCode)}", \wp_slimstat::get_stat() ); -
do_action( "slimstat_track_exit_{abs($stat['id'])}" ); -
slimstat_track_pageview
actiondo_action( 'slimstat_track_pageview', $stat ); -
do_action( "slimstat_track_warning_{abs($warningCode)}", \wp_slimstat::get_stat() ); -
slimstat_trusted_proxy
filterapply_filters( 'slimstat_trusted_proxy', false, $ip ); -
apply_filters( 'slimstat_upgrade_to_pro_title', __('Upgrade to Pro', 'wp-slimstat') ); -
wp_slimstat_reports_init
actiondo_action( 'wp_slimstat_reports_init' ); -
wpml_register_single_string
actiondo_action( 'wpml_register_single_string', 'wp-slimstat', $name, $value ); -
wpml_translate_single_string
filterapply_filters( 'wpml_translate_single_string', $value, 'wp-slimstat', $name );
Generated from SlimStat Analytics's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: