WC_Extensions_Tracking
in package
This class adds actions to track usage of the WooCommerce Extensions page.
Table of Contents
- init() : mixed
- Init tracking.
- track_addon_install() : mixed
- Send a Tracks event when addon is installed via the Extensions page.
- track_extensions_page() : mixed
- Send a Tracks event when an Extensions page is viewed.
- track_extensions_page_connection_error() : mixed
- Send a Tracks event when the Extensions page gets a bad response or no response from the WCCOM extensions API.
- track_helper_connection_cancelled() : mixed
- Send a Tracks even when a Helper connection process is cancelled.
- track_helper_connection_complete() : mixed
- Send a Tracks even when a Helper connection process completed successfully.
- track_helper_connection_start() : mixed
- Send a Tracks even when a Helper connection process is initiated.
- track_helper_disconnected() : mixed
- Send a Tracks even when a Helper has been disconnected.
- track_helper_subscriptions_refresh() : mixed
- Send a Tracks even when Helper subscriptions are refreshed.
Methods
init()
Init tracking.
public
init() : mixed
Return values
mixed —track_addon_install()
Send a Tracks event when addon is installed via the Extensions page.
public
track_addon_install(string $addon_id, string $section) : mixed
Parameters
- $addon_id : string
-
Addon slug.
- $section : string
-
Extensions tab.
Return values
mixed —track_extensions_page()
Send a Tracks event when an Extensions page is viewed.
public
track_extensions_page() : mixed
Return values
mixed —track_extensions_page_connection_error()
Send a Tracks event when the Extensions page gets a bad response or no response from the WCCOM extensions API.
public
track_extensions_page_connection_error([string $error = '' ]) : mixed
Parameters
- $error : string = ''
Return values
mixed —track_helper_connection_cancelled()
Send a Tracks even when a Helper connection process is cancelled.
public
track_helper_connection_cancelled() : mixed
Return values
mixed —track_helper_connection_complete()
Send a Tracks even when a Helper connection process completed successfully.
public
track_helper_connection_complete() : mixed
Return values
mixed —track_helper_connection_start()
Send a Tracks even when a Helper connection process is initiated.
public
track_helper_connection_start() : mixed
Return values
mixed —track_helper_disconnected()
Send a Tracks even when a Helper has been disconnected.
public
track_helper_disconnected() : mixed
Return values
mixed —track_helper_subscriptions_refresh()
Send a Tracks even when Helper subscriptions are refreshed.
public
track_helper_subscriptions_refresh() : mixed