CustomerEffortScoreTracks
Triggers customer effort score on several different actions.
Description Description
Source Source
File: packages/woocommerce-admin/src/Features/CustomerEffortScoreTracks.php
Methods Methods
- __construct — Constructor. Sets up filters to hook into WooCommerce.
- add_script_track_product_categories — Appends a script to footer to trigger CES on adding product categories.
- add_script_track_product_tags — Appends a script to footer to trigger CES on adding product tags.
- enable_survey_enqueing_if_tracking_is_enabled — Add actions that require woocommerce_allow_tracking.
- enqueue_ces_survey_for_search — Enqueue the CES survey on using search dynamically.
- enqueue_to_ces_tracks — Enqueue the item to the CES tracks queue.
- get_product_count — Get the current published product count.
- get_script_track_edit_php — Returns a generated script for tracking tags added on edit-tags.php page.
- get_shop_order_count — Get the current shop order count.
- has_been_shown — Return whether the action has already been shown.
- maybe_clear_ces_tracks_queue — Maybe clear the CES tracks queue, executed on every page load. If the clear option is set it clears the queue. In practice, this executes a page load after the queued CES tracks are displayed on the client, which sets the clear option.
- run_on_add_product_attributes — Enqueue the CES survey on adding new product attributes.
- run_on_load_edit_php — Determine on initiating CES survey on searching for product or orders.
- run_on_product_import — Maybe enqueue the CES survey on product import, if step is done.
- run_on_update_options — Enqueue the CES survey trigger for setting changes.