GA4 Purchase Event for WooCommerce Orders
Sends a Google Analytics 4 "purchase" event with the order ID, value, tax, shipping and items when a customer reaches the order received page, once per order.
Snippet Library
Snippets for analytics and tracking: add Google Analytics, Tag Manager or ad pixels, exclude logged-in users and track clicks or form sends. For marketers who want the tracking code in place without editing the theme.
Sends a Google Analytics 4 "purchase" event with the order ID, value, tax, shipping and items when a customer reaches the order received page, once per order.
Sends a GA4 "begin_checkout" event with the cart value and items when the customer opens the checkout page.
Sends GA4 ecommerce events when a shopper views a product page and when they add a product to the cart, from the product page or with AJAX buttons on shop pages.
Loads the Google Ads tag and reports a purchase conversion with the order value and transaction ID on the WooCommerce order received page.
Fires the Meta (Facebook) Pixel "Purchase" event with the order value, currency and product IDs on the order received page, once per order.
Sends Meta (Facebook) Pixel "ViewContent" on product pages and "AddToCart" when products are added, so you can build retargeting audiences and optimize ads.
Pushes a GA4-style "purchase" ecommerce object to the Google Tag Manager dataLayer on the order received page, ready for GA4, Google Ads or Meta tags in GTM.