SlimStat Analytics icon
Analytics & Tracking

SlimStat Analytics hooks reference

  • By VeronaLabs
  • v6.1.2 New
  • Updated

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.

functions.phpyour child theme
// 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

  • src/Services/CronEventManager.php line 78
    /**
     * Fires daily to allow license status revalidation.
     */
    do_action( 'slimstat_daily_license_check' );
  • admin/view/heatmaps.php line 117
    /**
     * Renders one page's heatmap. Pro hooks it; the list below is skipped.
     */
    do_action( 'slimstat_heatmap_viewer', $page_key );
  • src/Reports/Types/Analytics/LiveAnalyticsReport.php line 562
    /**
     * Allow developers to load Live Analytics assets on custom pages
     */
    apply_filters( 'slimstat_live_analytics_load_assets', ( $is_slimstat_page || $is_dashboard ), $screen );
  • admin/view/wp-slimstat-db.php line 1074
    /**
     * Round "now" down to a multiple of this many seconds when clamping a live
     * window.
     */
    apply_filters( 'slimstat_live_window_bucket_seconds', 0 );
  • src/Tracker/Ajax.php line 85
    /**
     * Filters the identity a rate-limit budget is tracked against.
     */
    apply_filters( 'slimstat_rate_limit_key', $ip );
  • src/Providers/RestApiManager.php line 79
    /**
     * Filter: slimstat_rest_controllers
     */
    apply_filters( 'slimstat_rest_controllers', $controllers );
  • admin/view/wp-slimstat-reports.php line 2267
    /**
     * Filters how many goals or funnels one render computes numbers for.
     */
    apply_filters( 'slimstat_widget_max_entries', $tier_max, $type );
  • admin/index.php line 834 · used in 5 places
    apply_filters( 'slimstat_custom_wpdb', $GLOBALS['wpdb'] );
  • admin/index.php line 3139 · used in 5 places
    apply_filters( 'slimstat_max_goals', 1 );
  • admin/index.php line 3239 · used in 4 places
    apply_filters( 'slimstat_max_funnels', 0 );
  • admin/index.php line 2421 · used in 3 places
    apply_filters( 'slimstat_heatmap_row_url', '', $page_key );
  • admin/view/wp-slimstat-db.php line 589 · used in 2 places
    apply_filters( 'slimstat_get_results_sql', $_sql, $_select_no_aggregate_values, $_order_by, $_group_by, $_aggregate_values_add );
  • admin/view/wp-slimstat-db.php line 696 · used in 2 places
    apply_filters( 'slimstat_get_var_sql', $_sql, $_aggregate_value );
  • uninstall.php line 219 · used in 2 places
    apply_filters( 'slimstat_maxmind_path', $upload_dir );
  • admin/view/wp-slimstat-reports.php line 1123 · used in 2 places
    apply_filters( 'slimstat_report_header_buttons', $header_buttons, $_report_id );
  • src/Tracker/Ajax.php line 313 · used in 2 places
    do_action( 'slimstat_track_success' );
  • admin/view/ai-analysis.php line 101
    do_action( 'slimstat_ai_page', $ai_tab );
  • src/Services/BlackFriday2026.php line 29
    apply_filters( 'slimstat_black_friday_2026_banner', self::in_window(current_datetime()) );
  • src/Utils/Consent.php line 80
    apply_filters( 'slimstat_can_track', $default, self::buildFilterContext() );
  • admin/view/wp-slimstat-db.php line 163
    apply_filters( 'slimstat_column_names', self::$all_columns_names );
  • admin/view/wp-slimstat-db.php line 1011
    apply_filters( 'slimstat_db_filters_normalized', $fn, $_filters_raw );
  • admin/view/wp-slimstat-db.php line 287
    apply_filters( 'slimstat_db_pre_filters', $filters_raw );
  • src/Ecommerce/Report.php line 313
    apply_filters( 'slimstat_ecommerce_dimensions', [] );
  • admin/view/partials/ecommerce.php line 147
    do_action( 'slimstat_ecommerce_group_actions', $dimension, $data );
  • admin/view/partials/ecommerce.php line 141
    apply_filters( 'slimstat_ecommerce_product_details', false );
  • admin/view/email-report.php line 54
    do_action( 'slimstat_email_report_content' );
  • src/Services/Browscap.php line 89
    apply_filters( 'slimstat_filter_browscap', $browser );
  • src/Tracker/Utils.php line 473
    apply_filters( 'slimstat_filter_ip_address', $ipArray );
  • admin/index.php line 4220
    apply_filters( 'slimstat_filter_options_limit', 500, $dimension );
  • src/Tracker/Ajax.php line 226
    apply_filters( 'slimstat_filter_pageview_data_js', \wp_slimstat::$raw_post_array );
  • src/Tracker/Processor.php line 484
    apply_filters( 'slimstat_filter_pageview_stat', $stat );
  • src/Tracker/Processor.php line 156
    apply_filters( 'slimstat_filter_pageview_stat_init', $stat );
  • wp-slimstat.php line 412
    apply_filters( 'slimstat_filter_pre_tracking', !$_is_internal_endpoint );
  • wp-slimstat.php line 413
    apply_filters( 'slimstat_filter_pre_tracking_js', true );
  • admin/index.php line 3162
    apply_filters( 'slimstat_goals_hard_cap', 50 );
  • admin/view/heatmaps.php line 121
    do_action( 'slimstat_heatmap_content' );
  • wp-slimstat.php line 327
    apply_filters( 'slimstat_init_options', self::$settings );
  • wp-slimstat.php line 1638
    apply_filters( 'slimstat_js_params', $params );
  • src/Reports/Types/Analytics/LiveAnalyticsReport.php line 439
    apply_filters( 'slimstat_live_users_cache_ttl', 60 );
  • src/Reports/AiPromptButton.php line 54
    apply_filters( 'slimstat_native_ai_available', false );
  • admin/index.php line 1952
    apply_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'), ] );
  • src/Reports/AiReport.php line 443
    apply_filters( 'slimstat_native_ai_heatmap', null, $context, $fs );
  • src/Utils/NetworkMerge.php line 82
    apply_filters( 'slimstat_network_merge_active', false );
  • admin/config/index.php line 789
    apply_filters( 'slimstat_options_on_page', $settings );
  • src/Tracker/Ajax.php line 71
    apply_filters( 'slimstat_rate_limit_enabled', $has_persistent_cache, $ip );
  • src/Reports/Bootstrap.php line 203
    do_action( 'slimstat_register_ajax_handlers' );
  • admin/view/wp-slimstat-reports.php line 1130
    apply_filters( 'slimstat_report_header_after_title', '', $_report_id );
  • src/Reports/Registry/ReportRegistry.php line 118
    do_action( 'slimstat_report_registered', $report );
  • src/Reports/Registry/ReportRegistry.php line 147
    do_action( 'slimstat_report_unregistered', $id );
  • src/Reports/Bootstrap.php line 176
    apply_filters( 'slimstat_reports_di_container', $container );
  • admin/view/wp-slimstat-reports.php line 1007
    apply_filters( 'slimstat_reports_info', self::$reports );
  • src/Reports/Registry/ReportLoader.php line 100
    do_action( 'slimstat_reports_loaded', $loaded );
  • src/Reports/Bootstrap.php line 113
    do_action( 'slimstat_reports_system_initialized' );
  • admin/config/index.php line 1024
    apply_filters( 'slimstat_save_options', wp_slimstat::$settings );
  • admin/index.php line 255
    apply_filters( 'slimstat_screens_info', self::$screens_info );
  • wp-slimstat.php line 180
    apply_filters( 'slimstat_set_data_js', $data_js );
  • wp-slimstat.php line 215
    apply_filters( 'slimstat_set_stat', $stat );
  • src/Tracker/Ajax.php line 518
    apply_filters( 'slimstat_track_event_enabled', true, $event_info );
  • src/Tracker/Utils.php line 118
    do_action( "slimstat_track_exit_{abs($errorCode)}", \wp_slimstat::get_stat() );
  • src/Tracker/Ajax.php line 291
    do_action( "slimstat_track_exit_{abs($stat['id'])}" );
  • src/Tracker/Processor.php line 485
    do_action( 'slimstat_track_pageview', $stat );
  • src/Tracker/Utils.php line 131
    do_action( "slimstat_track_warning_{abs($warningCode)}", \wp_slimstat::get_stat() );
  • src/Tracker/Utils.php line 498
    apply_filters( 'slimstat_trusted_proxy', false, $ip );
  • admin/index.php line 236
    apply_filters( 'slimstat_upgrade_to_pro_title', __('Upgrade to Pro', 'wp-slimstat') );
  • admin/view/wp-slimstat-reports.php line 1057
    do_action( 'wp_slimstat_reports_init' );
  • admin/config/index.php line 1048
    do_action( 'wpml_register_single_string', 'wp-slimstat', $name, $value );
  • src/Services/GDPRService.php line 197
    apply_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: