WC_Settings_Tracking::track_settings_page_view()publicWC 1.0

Send a Tracks event for WooCommerce settings page views.

Method of the class: WC_Settings_Tracking{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Settings_Tracking = new WC_Settings_Tracking();
$WC_Settings_Tracking->track_settings_page_view();

WC_Settings_Tracking::track_settings_page_view() code WC 8.6.1

public function track_settings_page_view() {
	global $current_tab, $current_section;

	$properties = array(
		'tab'     => $current_tab,
		'section' => empty( $current_section ) ? null : $current_section,
	);

	WC_Tracks::record_event( 'settings_view', $properties );
}