WooCommerce Settings

Facebook Advanced Purchase Tracking

Google Analytics Advanced Purchase Tracking

If the default Purchase event doesn't fire when an order is placed by the client, a Purchase event will be sent to Meta and Google using API when the order status is changed to "Completed". Meta Conversion API token and GA4 Measurement Protocol secret are required.

Track refunds on Google Analytics

A "Refund" event will be sent to Google via the API when the order status changes to "Refund". GA4 measurement protocol secret required.

General

Fire e-commerce related events. Meta events are Dynamic Ads Ready. Monetization data is sent to Google Analytics.

render_switcher_input( 'woo_enabled_save_data_to_orders',false ); ?>

Save data to orders

Save the landing page, UTMs, client's browser's time, day, and month, the number of orders, lifetime value, and average order. You can view this data when you edit an order. With the professional version you can view it under the ">WooCommerce Reports section.
render_switcher_input('woo_add_enrich_to_admin_email'); ?>

Send reports data to the New Order email

You will see the landing page, UTMs, client's browser's time, day, and month, the number of orders, lifetime value, and average order in your WooCommerce's default "New Order" email. Your clients will NOT get this info.
render_switcher_input( 'woo_enabled_save_data_to_user',false,true ); ?>

Display data to the user's profile

Display the number of orders, lifetime value, and average order.
render_switcher_input( 'woo_enabled_show_tracking_type',false,true ); ?>

Show tracking type

Show the tracking type in the orders table and on the on the order's page.
render_tags_select_input("woo_checkout_page_ids", true);?> Don't add the Checkout page IDs if you use Stripe or Klarna because conflicts are possible.

Use our dedicated plugin to upload and update your products to Meta Product Catalogs, Google Merchant, Google Ads Custom Vertical, Pinterest Catalogs, or TikTok Catalogs. Click to get Product Catalog Feed Pro

Recommended Videos:

WooCommerce AddToCart Event FIX (4:46 min) - watch now

Analyse your WooCommerce data with ChatGPT (12:06) - watch video

Enhanced Conversions for Google Ads with PixelYourSite (9:14) - watch now

Google Analytic 4 (GA4) & WooCommerce: Transaction Reports (6:51) - watch now

Google Analytics 4 (GA4) FUNNELS for WooCommerce (6:13) - watch now

Same Facebook (Meta) pixel or Google tag on multiple WooCommerce websites? (4:43) - watch now

WooCommerce First-Party Reports: Track UTMs, Traffic Source, Landing Page (13:15) - watch video

Find out your ads PROFIT - Meta, Google, TikTok, Pinterest, etc (5:48) - watch video

Brand tracking for Google Analytics

Enable Brand tracking

Transaction ID

Consider adding a prefix for transactions IDs if you use the same tags on multiple websites.

When to fire the add to cart event
render_checkbox_input( 'woo_add_to_cart_on_button_click', 'On Add To Cart button clicks' ); ?> render_checkbox_input( 'woo_add_to_cart_on_cart_page', 'On the Cart Page' ); ?> render_checkbox_input( 'woo_add_to_cart_on_checkout_page', 'On Checkout Page' ); ?>
render_select_input( 'woo_add_to_cart_catch_method', array('add_cart_hook'=>"WooCommerce hooks",'add_cart_js'=>"Button's classes",) ); ?>

ID Settings

enabled() && Helpers\isFacebookForWooCommerceActive() ) : ?>
Facebook for WooCommerce Integration

It looks like you're using both PixelYourSite and Facebook for WooCommerce Extension. Good, because they can do a great job together!

Facebook for WooCommerce Extension is a useful free tool that lets you import your products to a Facebook shop and adds a very basic Meta Pixel (formerly Facebook Pixel) on your site. PixelYourSite is a dedicated plugin that supercharges your Meta Pixel (formerly Facebook Pixel) with extremely useful features.

We made it possible to use both plugins together. You just have to decide what ID to use for your events.

render_radio_input( 'woo_content_id_logic', 'facebook_for_woocommerce', 'Use Facebook for WooCommerce extension content_id logic' ); ?> render_radio_input( 'woo_content_id_logic', 'default', 'Use PixelYourSite content_id logic' ); ?>

* If you plan to use the product catalog created by Facebook for WooCommerce Extension, use the Facebook for WooCommerce Extension ID. If you plan to use older product catalogs, or new ones created with other plugins, it's better to keep the default PixelYourSite settings.

enabled() ) : ?>
Facebook ID setting
" style ="">
render_switcher_input( 'woo_variable_as_simple' ); ?>

Treat variable products like simple products

If you enable this option, the main ID will be used instead of the variation ID. Turn this option ON when your Product Catalog doesn't include the variants for variable products.

For product pages, track the variation data when a variation is selected

render_select_input( 'woo_content_id', array( 'product_id' => 'Product ID', 'product_sku' => 'Product SKU', ) ); ?>
render_text_input( 'woo_content_id_prefix', '(optional)' ); ?>
render_text_input( 'woo_content_id_suffix', '(optional)' ); ?>
enabled() ) : ?>
Google Analytics ID setting
render_switcher_input( 'woo_variable_as_simple' ); ?>

Treat variable products like simple products

If you enable this option, the main ID will be used instead of the variation ID. Turn this option ON when your Product Catalog doesn't include the variants for variable products.

For product pages, track the variation data when a variation is selected

render_checkbox_input( 'woo_variations_use_parent_name', "When tracking variations, use the parent name" ); ?>
render_select_input( 'woo_content_id', array( 'product_id' => 'Product ID', 'product_sku' => 'Product SKU', ) ); ?>
render_text_input( 'woo_content_id_prefix', '(optional)' ); ?>
render_text_input( 'woo_content_id_suffix', '(optional)' ); ?>
Google Ads ID Setting
enabled() ) : ?>
Pinterest Tag ID setting
render_switcher_input( 'woo_variable_as_simple' ); ?>

Treat variable products like simple products

If you enable this option, the main ID will be used instead of the variation ID.

For product pages, track the variation data when a variation is selected

render_select_input( 'woo_content_id', array( 'product_id' => 'Product ID', 'product_sku' => 'Product SKU', ) ); ?>
render_text_input( 'woo_content_id_prefix', '(optional)' ); ?>
render_text_input( 'woo_content_id_suffix', '(optional)' ); ?>
Pinterest Tag ID setting
enabled() ) : ?>
Bing Tag ID setting
render_switcher_input( 'woo_variable_as_simple' ); ?>

Treat variable products like simple products

If you enable this option, the main ID will be used instead of the variation ID.

For product pages, track the variation data when a variation is selected

render_select_input( 'woo_content_id', array( 'product_id' => 'Product ID', 'product_sku' => 'Product SKU', ) ); ?>
render_text_input( 'woo_content_id_prefix', '(optional)' ); ?>
render_text_input( 'woo_content_id_suffix', '(optional)' ); ?>
Bing Tag ID setting
Google Dynamic Remarketing Vertical
Event Value Settings

Lifetime Customer Value

Recommended events

render_switcher_input('woo_purchase_enabled');?>Track Purchases
$status_name) { PYS()->render_checkbox_input( 'woo_order_purchase_status_'.esc_attr( $status ), esc_html( $status_name ),true); } ?>
enabled() ) : ?>
render_switcher_input( 'woo_purchase_enabled' ); ?>

Enable the Purchase event on Facebook (required for DPA)

enabled() ) : ?>
render_switcher_input( 'woo_purchase_enabled' ); ?>

Enable the Checkout event on Pinterest

renderAddonNotice(); ?>
enabled() ) : ?>
render_switcher_input( 'woo_purchase_enabled' ); ?>

Enable the Purchase event on Bing

renderAddonNotice(); ?>
render_radio_input( 'woo_purchase_value_option', 'price', 'Products price (subtotal)' ); ?> render_radio_input( 'woo_purchase_value_option', 'cog', 'Price minus Cost of Goods', true, true ); ?> render_radio_input( 'woo_purchase_value_option', 'cog', 'Price minus Cost of Goods', false ); ?>
render_radio_input( 'woo_purchase_value_option', 'global', 'Use Global value' ); ?>
render_number_input( 'woo_purchase_value_global' ); ?>
enabled() ) : ?>
render_switcher_input( 'woo_purchase_enabled' ); ?>

Enable the purchase event on Google Analytics

render_checkbox_input( 'woo_purchase_non_interactive', 'Non-interactive event' ); ?>

Enable the purchase event on Google Ads

*This event will be fired on the order-received, the default WooCommerce "thank you page". If you use PayPal, make sure that auto-return is ON. If you want to use "custom thank you pages", you must configure them with our Super Pack.

render_switcher_input('woo_initiate_checkout_enabled');?>Track the Checkout Page
enabled() ) : ?>
render_switcher_input( 'woo_initiate_checkout_enabled' ); ?>

Enable the InitiateCheckout event on Facebook

enabled() ) : ?>
render_switcher_input( 'woo_initiate_checkout_enabled' ); ?>

Enable the InitiateCheckout on Pinterest

renderAddonNotice(); ?>
enabled() ) : ?>
render_switcher_input( 'woo_initiate_checkout_enabled' ); ?>

Enable the InitiateCheckout on Bing

renderAddonNotice(); ?>
render_switcher_input( 'woo_initiate_checkout_value_enabled', true ); ?>

Event value on Facebook and Pinterest

>
render_radio_input( 'woo_initiate_checkout_value_option', 'price', 'Products price (subtotal)' ); ?> render_radio_input( 'woo_initiate_checkout_value_option', 'cog', 'Price minus Cost of Goods', true, true ); ?> render_radio_input( 'woo_initiate_checkout_value_option', 'cog', 'Price minus Cost of Goods', false ); ?>
render_radio_input( 'woo_initiate_checkout_value_option', 'global', 'Use Global value' ); ?>
render_number_input( 'woo_initiate_checkout_value_global' ); ?>
enabled() ) : ?>
render_switcher_input( 'woo_initiate_checkout_enabled' ); ?>

Enable the begin_checkout event on Google Analytics

render_checkbox_input( 'woo_initiate_checkout_non_interactive', 'Non-interactive event' ); ?>

Enable the begin_checkout event on Google Ads

render_switcher_input('woo_remove_from_cart_enabled');?>Track remove from cart
enabled() ) : ?>
render_switcher_input( 'woo_remove_from_cart_enabled' ); ?>

Enable the RemoveFromCart event on Facebook

enabled() ) : ?>
render_switcher_input( 'woo_remove_from_cart_enabled' ); ?>

Enable the remove_from_cart event on Google Analytics

render_checkbox_input( 'woo_remove_from_cart_non_interactive', 'Non-interactive event' ); ?>

Enable the remove_from_cart event on Google Ads

enabled() ) : ?>
render_switcher_input( 'woo_remove_from_cart_enabled' ); ?>

Enable the RemoveFromCart event on Pinterest

renderAddonNotice(); ?>
enabled() ) : ?> render_switcher_input( 'woo_remove_from_cart_enabled' ); ?> renderAddonNotice(); ?>
render_switcher_input('woo_add_to_cart_enabled');?>Track add to cart
enabled() ) : ?>
render_switcher_input( 'woo_add_to_cart_enabled' ); ?>

Enable the AddToCart event on Facebook (required for DPA)

enabled() ) : ?>
render_switcher_input( 'woo_add_to_cart_enabled' ); ?>

Enable the AddToCart event on Pinterest

renderAddonNotice(); ?>
enabled() ) : ?>
render_switcher_input( 'woo_add_to_cart_enabled' ); ?>

Enable the AddToCart event on Bing

renderAddonNotice(); ?>
render_switcher_input( 'woo_add_to_cart_value_enabled', true ); ?>

Tracking Value

>
render_radio_input( 'woo_add_to_cart_value_option', 'price', 'Products price (subtotal)' ); ?> render_radio_input( 'woo_add_to_cart_value_option', 'cog', 'Price minus Cost of Goods', true, true ); ?> render_radio_input( 'woo_add_to_cart_value_option', 'cog', 'Price minus Cost of Goods', false ); ?>
render_radio_input( 'woo_add_to_cart_value_option', 'global', 'Use Global value' ); ?>
render_number_input( 'woo_add_to_cart_value_global' ); ?>
enabled() ) : ?>
render_switcher_input( 'woo_add_to_cart_enabled' ); ?>

Enable the add_to_cart event on Google Analytics

render_checkbox_input( 'woo_add_to_cart_non_interactive', 'Non-interactive event' ); ?>

Enable the add_to_cart event on Google Ads

render_switcher_input('woo_view_content_enabled');?>Track product pages
enabled() ) : ?>
render_switcher_input( 'woo_view_content_enabled' ); ?>

Enable the ViewContent on Facebook (required for DPA)

enabled() ) : ?>
render_switcher_input( 'woo_view_content_enabled' ); ?>

Enable the PageVisit event on Pinterest

renderAddonNotice(); ?>
enabled() ) : ?>
render_switcher_input( 'woo_view_content_enabled' ); ?>

Enable the PageVisit event on Bing

renderAddonNotice(); ?>
render_number_input( 'woo_view_content_delay' ); ?>
render_switcher_input( 'woo_view_content_value_enabled', true ); ?>

Tracking Value

>
render_radio_input( 'woo_view_content_value_option', 'price', 'Product price' ); ?> render_radio_input( 'woo_view_content_value_option', 'cog', 'Price minus Cost of Goods', true, true ); ?> render_radio_input( 'woo_view_content_value_option', 'cog', 'Price minus Cost of Goods', false ); ?>
render_radio_input( 'woo_view_content_value_option', 'global', 'Use Global value' ); ?>
render_number_input( 'woo_view_content_value_global' ); ?>
enabled() ) : ?>
render_switcher_input( 'woo_view_content_enabled' ); ?>

Enable the view_item event on Google Analytics

render_checkbox_input( 'woo_view_content_non_interactive', 'Non-interactive event' ); ?>

Enable the view_item event on Google Ads

render_switcher_input('woo_view_category_enabled');?>Track product category pages
enabled() ) : ?>
render_switcher_input( 'woo_view_category_enabled' ); ?>

Enable the ViewCategory event on Facebook Analytics (used for DPA)

enabled() ) : ?>
render_switcher_input( 'woo_view_category_enabled' ); ?>

Enable the ViewCategory event on Bing

renderAddonNotice(); ?>

Enable the view_item_list event on Google Ads

enabled() ) : ?>
render_switcher_input( 'woo_view_category_enabled' ); ?>

Enable the ViewCategory event on Pinterest

renderAddonNotice(); ?>
render_switcher_input( 'woo_view_cart_enabled' ); ?>Track cart pages
enabled() ) : ?>
render_switcher_input( 'woo_view_cart_enabled' ); ?>

Enable the view_cart event on Google Analytics

Track product list performance on Google Analytics
enabled() ) : ?>
render_switcher_input( 'woo_view_category_enabled_tmp',false,true ); ?>

Enable the view_item_list event on Google Analytics(categories, related products, search, shortcodes)

render_checkbox_input( 'woo_view_category_non_interactive_tmp', 'Non-interactive event',true ); ?>
render_switcher_input( 'woo_select_content_enabled_tmp',false,true ); ?>

Enable the select_content event on Google Analytics(when a product is clicked on categories, related products, search, shortcodes)

render_switcher_input('woo_complete_registration_enabled');?> CompleteRegistration for the Meta Pixel (formerly Facebook Pixel)
enabled() ) : ?>
render_checkbox_input( 'woo_complete_registration_fire_every_time', "Fire this event every time a transaction takes place"); ?>
render_switcher_input( 'woo_complete_registration_use_custom_value'); ?>

Event value on Facebook

render_radio_input("woo_complete_registration_custom_value","price", "Order's total") ?> render_radio_input( 'woo_complete_registration_custom_value', 'cog', 'Price minus Cost of Goods', true, true ); ?> render_radio_input( 'woo_complete_registration_custom_value', 'cog', 'Price minus Cost of Goods', false ); ?> render_radio_input("woo_complete_registration_custom_value","percent", "Percent of the order's total") ?>
render_number_input( 'woo_complete_registration_percent_value' ); ?>
render_radio_input("woo_complete_registration_custom_value","global", "Use global value") ?>
render_number_input( 'woo_complete_registration_global_value' ); ?>
render_switcher_input( 'woo_complete_registration_send_from_server'); ?>

Send this from your server only. It won't be visible on your browser.

PRO Events

Advanced Marketing Events

FrequentShopper Event

Send the event to Facebook

Send the event to Google Analytics

Send the event to Google Ads

Enable on Pinterest

Enable on Bing

VIPClient Event

Send the event to Facebook

Send the event to Google Analytics

Send the event to Google Ads

Enable on Pinterest

Enable on Bing

BigWhale Event

Send the event to Facebook

Send the event to Google Analytics

Send the event to Google Ads

Enable on Pinterest

Enable on Bing

FrequentShopper Event

Send the event to Facebook

Send the event to Google Analytics

Send the event to Google Ads

Enable on Pinterest

Enable on Bing

FirstTimeBuyer Event

Send the event to Facebook

Send the event to Google Analytics

Send the event to Pinterest

Send the event to Bing

ReturingCustomer Event

Send the event to Facebook

Send the event to Google Analytics

Send the event to Pinterest

Send the event to Bing

Extra events

Track WooCommerce affiliate button clicks

Send the event to Facebook

Enable on Pinterest

Enable on Bing

Tracking Value

Send the event to Google Analytics

Send the event to Google Ads

Track WooCommerce PayPal Standard clicks

Send the event to Facebook

Enable on Pinterest

Enable on Bing

Tracking Value

Send the event to Google Analytics

Send the event to Google Ads

WooCommerce Parameters

About WooCommerce Events Parameters

All events get the following Global Parameters for all the tags: page_title, post_type, post_id, event_URL, user_role, plugin,landing_page(pro), event_time (pro), event_day (pro), event_month (pro), traffic_source (pro), UTMs (pro).



The Meta Pixel (formerly Facebook Pixel) events are Dynamic Ads ready.

The Google Analytics events track Monetization data (GA4).

The Pinterest events have the required data for Dynamic Remarketing (paid add-on requiered).



The Purchase event will have the following extra-parameters: category_name, num_items, tags, total (pro), transactions_count (pro), tax (pro), predicted_ltv (pro), average_order (pro), coupon_used (pro), coupon_code (pro), shipping (pro), shipping_cost (pro), fee (pro).

Control the WooCommerce Parameters
You can use these parameters to create audiences, custom conversions, or goals. We recommend keeping them active. If you get privacy warnings about some of these parameters, you can turn them OFF.
render_switcher_input( 'enable_woo_category_name_param' ); ?>

category_name


render_switcher_input( 'enable_woo_num_items_param' ); ?>

num_items


render_switcher_input( 'enable_woo_tags_param' ); ?>

tags


render_switcher_input( 'enable_woo_fees_param' ); ?>

fees


total (PRO)


tax (PRO)


transactions_count (PRO)


predicted_ltv (PRO)


average_order (PRO)


coupon_used (PRO)


coupon_code (PRO)


shipping (PRO)


shipping_cost (PRO)


content_ids (mandatory for DPA)


content_type (mandatory for DPA)


value (mandatory for purchase, you have more options on event level)


Track more actions and additional data with the PRO version: UPGRADE
Export transactions as offline conversions - Facebook (Meta)

Learn how to use it: watch video

$label) : $checked = ""; if($key == "wc-completed") { $checked = "checked"; } ?>