Advanced Purchase Tracking

enabled() ) : ?>

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.

Native Data Tracking and Reporting

render_switcher_input( 'woo_enabled_save_data_to_orders' ); ?>

Enable WooCommerce Reports

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 open an order, or on the WooCommerce Reports page

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_display_data_to_orders' ); ?>

Display the tracking data on the order's page

Show the landing page, traffic source, and UTMs on the order's edit page.

Display orders data on the user's profile page

Display the number of orders, lifetime value, and average order.

General

Show tracking type

Show the tracking type in the orders table and on the order's page.


The new_customer parameter is added to the purchase event for our Google native tags and for GTM. It's use by Google for new customer acquisition. We always send it with true or false values for logged-in users. We will use these options for guest checkout.


If the Purchase event doesn't work correctly, add your Checkout page(s) ID(s) here:
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.

'https://www.youtube.com/watch?v=oZoAu8a0PNg', 'title' => 'WooCommerce AddToCart Event FIX', 'time' => '4:46', ), array( 'url' => 'https://www.youtube.com/watch?v=eoJT1fSIar0', 'title' => 'Google Automated Discounts. Step-by-Step Google Merchant Setup Guide', 'time' => '14:26', ), array( 'url' => 'https://www.youtube.com/watch?v=FjGJYAdZEKc', 'title' => 'Analyse your WooCommerce data with ChatGPT', 'time' => '12:06', ), array( 'url' => 'https://www.youtube.com/watch?v=-bN5D_HJyuA', 'title' => 'Enhanced Conversions for Google Ads with PixelYourSite', 'time' => '9:14', ), array( 'url' => 'https://www.youtube.com/watch?v=3Ugwlq1EVO4', 'title' => 'Same Facebook (Meta) pixel or Google tag on multiple WooCommerce websites?', 'time' => '4:43', ), array( 'url' => 'https://www.youtube.com/watch?v=4VpVf9llfkU', 'title' => 'WooCommerce First-Party Reports: Track UTMs, Traffic Source, Landing Page', 'time' => '13:15', ), array( 'url' => 'https://www.youtube.com/watch?v=ydqyp-iW9Ko', 'title' => 'Find out your ads PROFIT - Meta, Google, TikTok, Pinterest, etc', 'time' => '5:48', ), array( 'url' => 'https://www.youtube.com/watch?v=7B8uU3p_mjw', 'title' => 'How to track WooCommerce BRANDS on Google Analytics 4 (GA4)', 'time' => '4:05', ), array( 'url' => 'https://www.youtube.com/watch?v=LZtw6HxbFRg', 'title' => 'How to track WooCommerce VARIABLE products on Google Analytics 4 (GA4)', 'time' => '4:21', ), array( 'url' => 'https://www.youtube.com/watch?v=8CKu2krVpyA', 'title' => 'WooCommerce LISTS tracking on GA4', 'time' => '6:49', ), ); renderRecommendedVideo( $videos ); ?>

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", ) ); ?>

Event Value Settings

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 on your site. PixelYourSite is a dedicated plugin that supercharges your Meta 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 settings

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)', false, false, false, 'short' ); ?>
render_text_input( 'woo_content_id_suffix', '(optional)', false, false, false, 'short' ); ?>

WPML Detected. Select your ID logic.

render_switcher_input( 'woo_wpml_unified_id' ); ?>

WPML Unified ID logic

Default language IDs logic.

If you use localized feeds, enable the unified ID logic for the tag and we will use the native product ID for each translated item.

enabled() ) : ?>

Google Tags ID settings

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 Merchant 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)', false, false, false, 'short' ); ?>
render_text_input( 'woo_content_id_suffix', '(optional)', false, false, false, 'short' ); ?>

WPML Detected. Select your ID logic.

render_switcher_input( 'woo_wpml_unified_id' ); ?>

WPML Unified ID logic

Default language IDs logic.

If you use localized feeds, enable the unified ID logic for the tag and we will use the native product ID for each translated item.

enabled() ) : ?>

Pinterest Tag ID settings

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)', false, false, false, 'short' ); ?>
render_text_input( 'woo_content_id_suffix', '(optional)', false, false, false, 'short' ); ?>

WPML Detected. Select your ID logic.

render_switcher_input( 'woo_wpml_unified_id' ); ?>

WPML Unified ID logic

Default language IDs logic.

If you use localized feeds, enable the unified ID logic for the tag and we will use the native product ID for each translated item.

Pinterest Tag ID settings

  The paid add-on is required
enabled() ) : ?>

Bing Tag ID settings

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)', false, false, false, 'short' ); ?>
render_text_input( 'woo_content_id_suffix', '(optional)', false, false, false, 'short' ); ?>
getOption( 'woo_wpml_unified_id' ) !== NULL ) : ?>

WPML Detected. Select your ID logic.

render_switcher_input( 'woo_wpml_unified_id' ); ?>

WPML Unified ID logic

Default language IDs logic.

If you use localized feeds, enable the unified ID logic for the tag and we will use the native product ID for each translated item.

Bing Tag ID settings

  The paid add-on is required
enabled() ) : ?>

Reddit Tag ID settings

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.

render_switcher_input( 'woo_variable_data_select_product' ); ?>

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)', false, false, false, 'short' ); ?>
render_text_input( 'woo_content_id_suffix', '(optional)', false, false, false, 'short' ); ?>
getOption( 'woo_wpml_unified_id' ) !== NULL ) : ?>

WPML Detected. Select your ID logic.

render_switcher_input( 'woo_wpml_unified_id' ); ?>

WPML Unified ID logic

Default language IDs logic.

render_select_input( 'woo_wpml_language', $languages ); ?>

If you use localized feeds, enable the unified ID logic for the tag and we will use the native product ID for each translated item.

Reddit Tag ID settings

  The paid add-on is required
enabled() ) : ?>

GTM tag settings

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 Merchant 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)', false, false, false, 'short' ); ?>
render_text_input( 'woo_content_id_suffix', '(optional)', false, false, false, 'short' ); ?>

WPML Detected. Select your ID logic.

render_switcher_input( 'woo_wpml_unified_id' ); ?>

WPML Unified ID logic

Default language IDs logic.

If you use localized feeds, enable the unified ID logic for the tag and we will use the native product ID for each translated item.

enabled() ) : ?>

Google Dynamic Remarketing Vertical

FrequentShopper Event

enabled() ) : ?>

Send the event to Facebook

enabled() ) : ?>

Send the event to Google Analytics

Enable on Google Ads

enabled() ) : ?>

Enable on Pinterest

enabled() ) : ?>

Enable on Bing

enabled() ) : ?>

Enable on Reddit

enabled() ) : ?>

Send the event to GTM dataLayer

VIPClient Event

enabled() ) : $configured = true; ?>

Send the event to Facebook

enabled() ) : $configured = true; ?>

Send the event to Google Analytics

enabled() ) : $configured = true; ?>

Enable on Pinterest

enabled() ) : $configured = true; ?>

Enable on Bing

enabled() ) : $configured = true; ?>

Enable on Reddit

enabled() ) : ?>

Send the event to GTM dataLayer

Error: No supported pixels are not configured

BigWhale Event

enabled() ) : $configured = true; ?>

Send the event to Facebook

enabled() ) : $configured = true; ?>

Send the event to Google Analytics

enabled() ) : $configured = true; ?>

Enable on Pinterest

enabled() ) : $configured = true; ?>

Enable on Bing

enabled() ) : $configured = true; ?>

Enable on Reddit

enabled() ) : ?>

Send the event to GTM dataLayer

Error: No supported pixels are not configured

FirstTimeBuyer Event

enabled() ) : $configured = true; ?>

Send the event to Facebook

enabled() ) : $configured = true; ?>

Send the event to Google Analytics

enabled() ) : $configured = true; ?>

Enable on Pinterest

enabled() ) : $configured = true; ?>

Enable on Bing

enabled() ) : $configured = true; ?>

Enable on Reddit

enabled() ) : if ( $configured ) : ?>

Send the event to GTM dataLayer

Error: No supported pixels are not configured

ReturningCustomer Event

enabled() ) : $configured = true; ?>

Send the event to Facebook

enabled() ) : $configured = true; ?>

Send the event to Google Analytics

enabled() ) : $configured = true; ?>

Enable on Pinterest

enabled() ) : $configured = true; ?>

Enable on Bing

enabled() ) : $configured = true; ?>

Enable on Reddit

enabled() ) : if ( $configured ) : ?>

Send the event to GTM dataLayer

Error: No supported pixels are not configured

Extra events

render_switcher_input( 'woo_remove_from_cart_enabled' ); ?>

Track remove from cart

enabled() ) : $configured = true; ?>
render_switcher_input( 'woo_remove_from_cart_enabled' ); ?>

Enable the RemoveFromCart event on Facebook

enabled() ) : $configured = true; ?>
render_switcher_input( 'woo_remove_from_cart_enabled' ); ?>

Enable the remove_from_cart event on Google Analytics

enabled() ) : $configured = true; ?>
render_switcher_input( 'woo_remove_from_cart_enabled' ); ?>

Enable the RemoveFromCart event on Pinterest

Error: No supported pixels are not configured
enabled() ) : ?>
render_switcher_input( 'woo_complete_registration_enabled' ); ?>

Track CompleteRegistration for the Meta Pixel

render_checkbox_input( 'woo_complete_registration_fire_every_time', "Fire this event every time a transaction takes place" ); ?>
renderValueOptionsBlock( 'woo_complete_registration', false, false, false, 'Event value on Facebook' ); ?>
render_switcher_input( 'woo_complete_registration_send_from_server' ); ?>

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

enabled() ) : ?>

Track Checkout Behavior on Google Analytics

STEP 1:

Enable the begin_checkout

Enable checkout_progress when the First Name is added

Enable checkout_progress when the Last Name is added

Enable checkout_progress when the Email is added

Enable checkout_progress when is Place Order is clicked

Track WooCommerce affiliate button clicks

renderValueOptionsBlock( 'woo_affiliate', false, true, false, '', true ); ?>
enabled() ) : ?>

Send the event to Facebook

enabled() ) : ?>

Send the event to Google Analytics

enabled() ) : ?>

Enable on Pinterest

Track WooCommerce PayPal Standard clicks

renderValueOptionsBlock( 'woo_paypal', false, true, false, '', true ); ?>
enabled() ) : ?>

Send the event to Facebook

enabled() ) : ?>

Send the event to Google Analytics

enabled() ) : ?>

Enable on Pinterest

Export transactions as offline conversions - Facebook (Meta)

Learn how to use it: watch video

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

WooCommerce Parameters

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)

transactions_count (PRO)

tax (PRO)

predicted_ltv (PRO)

average_order (PRO)

coupon_used (PRO)

coupon_name (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)

About WooCommerce Events Parameters

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

The Meta Pixel events are Dynamic Ads ready.

The Google Analytics events track Monetization data (GA4).

The Google Ads events have the required data for Dynamic Remarketing (official help).

The Pinterest events have the required data for Dynamic Remarketing.

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).