WordPress at a glance
filter is not described

woocommerce_analytics_(field) filter-hook . WC 1.0

Filter the IDs before retrieving report data.

Allows filtering of the objects included or excluded from reports.

Usage

add_filter( 'woocommerce_analytics_(field)', 'filter_function_name_2141', 10, 4 );
function filter_function_name_2141( $ids, $query_args, $field, $context ){
	// filter...

	return $ids;
}
$ids(array)
List of object Ids.
$query_args(array)
The original arguments for the request.
$field(string)
The object type.
$context(string)
The data store context.

Where the hook is called

DataStore::get_filtered_ids()
woocommerce_analytics_(field)
woocommerce/packages/woocommerce-admin/src/API/Reports/DataStore.php 1333
$ids = apply_filters( 'woocommerce_analytics_' . $field, $ids, $query_args, $field, $this->context );

Where in WP core the hook is used WooCommerce

woocommerce/packages/woocommerce-admin/src/API/Reports/Coupons/DataStore.php 69
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 5 );
woocommerce/packages/woocommerce-admin/src/API/Reports/Customers/DataStore.php 88
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 15, 2 );
woocommerce/packages/woocommerce-admin/src/API/Reports/Products/DataStore.php 103
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 10 );
woocommerce/packages/woocommerce-admin/src/API/Reports/Products/Stats/Controller.php 50
add_filter( 'woocommerce_analytics_products_stats_select_query', array( $this, 'set_default_report_data' ) );
woocommerce/packages/woocommerce-admin/src/API/Reports/Taxes/DataStore.php 83
add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 15 );
woocommerce/packages/woocommerce-admin/src/API/Reports/Taxes/Stats/Controller.php 37
add_filter( 'woocommerce_analytics_taxes_stats_select_query', array( $this, 'set_default_report_data' ) );
woocommerce/packages/woocommerce-admin/src/API/Reports/Variations/Stats/Controller.php 48
add_filter( 'woocommerce_analytics_variations_stats_select_query', array( $this, 'set_default_report_data' ) );
woocommerce/packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php 43
add_filter( 'woocommerce_analytics_excluded_order_statuses', [ $this, 'append_draft_order_post_status' ] );