includes/class-wc-tracker.php


Lines:

1 to 48 of 48
<?php

/**
 * WooCommerce Tracker
 *
 * The WooCommerce tracker class adds functionality to track WooCommerce usage based on if the customer opted in.
 * No personal information is tracked, only general WooCommerce settings, general product, order and user counts and admin email for discount code.
 *
 * @class WC_Tracker
 * @since 2.3.0
 * @package WooCommerce\Classes
 */

use Automattic\Jetpack\Constants;

defined( 'ABSPATH' ) || exit;

/* class WC_Tracker */
/* function WC_Tracker::init() – Hook into cron event. */
/* function WC_Tracker::send_tracking_data() – Decide whether to send tracking data or not. */
/* function WC_Tracker::get_last_send_time() – Get the last time tracking data was sent. */
/* function WC_Tracker::is_jetpack_staging_site() – Test whether this site is a staging site according to the Jetpack criteria. */
/* function WC_Tracker::get_tracking_data() – Get all the tracking data. */
/* function WC_Tracker::get_theme_info() – Get the current theme info, theme name and version. */
/* function WC_Tracker::get_wordpress_info() – Get WordPress related data. */
/* function WC_Tracker::get_server_info() – Get server related info. */
/* function WC_Tracker::get_all_plugins() – Get all plugins grouped into activated or not. */
/* function WC_Tracker::get_helper_connected() – Check to see if the helper is connected to woocommerce.com */
/* function WC_Tracker::get_user_counts() – Get user totals based on user role. */
/* function WC_Tracker::get_product_counts() – Get product totals based on product type. */
/* function WC_Tracker::get_order_counts() – Get order counts */
/* function WC_Tracker::get_orders() – Combine all order data. */
/* function WC_Tracker::get_order_totals() – Get order totals. */
/* function WC_Tracker::get_order_dates() – Get last order date */
/* function WC_Tracker::get_orders_by_gateway() – Get order details by gateway. */
/* function WC_Tracker::get_review_counts() – Get review counts for different statuses. */
/* function WC_Tracker::get_category_counts() – Get the number of product categories. */
/* function WC_Tracker::get_active_payment_gateways() – Get a list of all active payment gateways. */
/* function WC_Tracker::get_active_shipping_methods() – Get a list of all active shipping methods. */
/* function WC_Tracker::get_all_woocommerce_options_values() – Get all options starting with woocommerce_ prefix. */
/* function WC_Tracker::get_all_template_overrides() – Look for any template override and return filenames. */
/* function WC_Tracker::get_admin_user_agents() – When an admin user logs in, there user agent is tracked in user meta and collected here. */
/* function WC_Tracker::post_contains_text() – Search a specific post for text content. */
/* function WC_Tracker::get_block_tracker_data() – Get tracker data for a specific block type on a woocommerce page. */
/* function WC_Tracker::get_cart_checkout_info() – Get info about the cart & checkout pages. */

WC_Tracker::init();
 

 View on GitHub View on Trac

Called by

    Invoked by

      Call hooks

      API Letters: ,,,,