WC_Admin_Setup_Wizard_Tracking
in package
This class adds actions to track usage of the WooCommerce Onboarding Wizard.
Table of Contents
- $steps : array<string|int, mixed>
- Steps for the setup wizard
- add_footer_scripts() : mixed
- Add footer scripts to OBW via woocommerce_setup_footer
- add_step_save_events() : mixed
- Track various events when a step is saved.
- dequeue_non_allowed_scripts() : mixed
- Dequeue unwanted scripts from OBW footer.
- get_current_step() : string
- Get the name of the current step.
- init() : mixed
- Init tracking.
- set_obw_steps() : mixed
- Set the OBW steps inside this class instance.
- track_jetpack_activate() : mixed
- Tracks when Jetpack is activated through the OBW.
- track_next_steps() : mixed
- Tracks when last next_steps screen is viewed in the OBW.
- track_payments() : mixed
- Track payment gateways selected.
- track_ready_next_steps() : mixed
- Track the marketing form on submit.
- track_recommended() : mixed
- Track recommended plugins selected for install.
- track_shipping() : mixed
- Track shipping units and whether or not labels are set.
- track_skip_step() : mixed
- Track skipped steps.
- track_start() : mixed
- Track when tracking is opted into and OBW has started.
- track_store_setup() : mixed
- Track store setup and store properties on save.
Properties
$steps
Steps for the setup wizard
private
array<string|int, mixed>
$steps
= array()
Methods
add_footer_scripts()
Add footer scripts to OBW via woocommerce_setup_footer
public
add_footer_scripts() : mixed
Tags
Return values
mixed —add_step_save_events()
Track various events when a step is saved.
public
add_step_save_events() : mixed
Tags
Return values
mixed —dequeue_non_allowed_scripts()
Dequeue unwanted scripts from OBW footer.
public
dequeue_non_allowed_scripts() : mixed
Tags
Return values
mixed —get_current_step()
Get the name of the current step.
public
get_current_step() : string
Tags
Return values
string —init()
Init tracking.
public
init() : mixed
Tags
Return values
mixed —set_obw_steps()
Set the OBW steps inside this class instance.
public
set_obw_steps(array<string|int, mixed> $steps) : mixed
Parameters
- $steps : array<string|int, mixed>
-
Array of OBW steps.
Tags
Return values
mixed —track_jetpack_activate()
Tracks when Jetpack is activated through the OBW.
public
track_jetpack_activate() : mixed
Tags
Return values
mixed —track_next_steps()
Tracks when last next_steps screen is viewed in the OBW.
public
track_next_steps() : mixed
Tags
Return values
mixed —track_payments()
Track payment gateways selected.
public
track_payments() : mixed
Tags
Return values
mixed —track_ready_next_steps()
Track the marketing form on submit.
public
track_ready_next_steps() : mixed
Tags
Return values
mixed —track_recommended()
Track recommended plugins selected for install.
public
track_recommended() : mixed
Tags
Return values
mixed —track_shipping()
Track shipping units and whether or not labels are set.
public
track_shipping() : mixed
Tags
Return values
mixed —track_skip_step()
Track skipped steps.
public
track_skip_step() : mixed
Tags
Return values
mixed —track_start()
Track when tracking is opted into and OBW has started.
public
track_start(string $option, string $value) : mixed
Parameters
- $option : string
-
Option name.
- $value : string
-
Option value.
Tags
Return values
mixed —track_store_setup()
Track store setup and store properties on save.
public
track_store_setup() : mixed