WooCommerce tracking requirements

WP Full Picture is set up to track stores that use standard WooCommerce hooks and HTML. Some plugins and themes may however either not use them or highly modify them. In such case, tracking will not work.

The table below lists the functions and hooks that your website must have so that WP Full Picture can track WooCommerce.

Required hooks and features

Functions and hooks that are present in all WP installations were omitted. This also includes WooCommerce blocks for block themes and full-site editing feature.

UsageRequirement
Server-side trackingRest API
Tracking interactions with product teasers in product categories and tags, related products and “You may also like” sectionswoocommerce_before_shop_loop_item (action hook)
Interactions with product teasers in widgetswoocommerce_widget_product_item_end (action hook)
Interactions with products in mini-cart widgetwoocommerce_after_mini_cart (action hook)
woocommerce_cart_item_name (action filter)
Interactions with cartwoocommerce_before_cart_contents (action hook)
woocommerce_cart_item_name (action filter)
Interactions with products on product pageswoocommerce_after_add_to_cart_button (action hook)
Interactions with grouped products on product pageswoocommerce_grouped_product_list_column_label (action filter)
Checkout tracking
(checkout added with shortcode)
woocommerce_before_checkout_form (action hook)

Required HTML

UsageCSS classes of required HTML elements
Checkout tracking.wp-block-woocommerce-checkout
form.woocommerce-checkout
Add to cart (all uses).add_to_cart_button
OR .ajax_add_to_cart
Add to cart single productsform.cart
Add to cart variable productsform.cart.variations_form
Add to cart grouped productsform.grouped_form
.woocommerce-grouped-product-list-item
Remove items from mini-cart widgeta.remove.remove_from_cart_button
Adding to a wishlistDefined in the WooCommerce Tracking settings