Automattic\WooCommerce\Internal\VariationGallery

Telemetry::record_eventpublic staticWC 1.0

Record a Tracks event.

Method of the class: Telemetry{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = Telemetry::record_event( $event_name, $properties ): void;
$event_name(string) (required)
One of the EVENT_* class constants.
$properties(array)
.
Default: array()

Telemetry::record_event() code WC 10.9.1

public static function record_event( string $event_name, array $properties = array() ): void {
	if ( ! function_exists( 'wc_admin_record_tracks_event' ) ) {
		return;
	}
	wc_admin_record_tracks_event( $event_name, $properties );
}