Revenue next to your traffic
Every completed order lands in the same dashboard as your visits, so you never have to jump between WooCommerce reports and your analytics to see how the store is doing.
GuidesWeb
See orders and revenue next to your traffic, cookieless and EU-hosted.
You already track page views on your store with the Privytics WordPress guide. This guide adds one more snippet so your orders and revenue show up right next to your traffic, so you can see which pages and campaigns actually turn into sales. It is cookieless, hosted in the EU, and works with any payment gateway. There is just one small piece of code to paste. You do not need to read it or understand it, just drop it in and you are done.
Every completed order lands in the same dashboard as your visits, so you never have to jump between WooCommerce reports and your analytics to see how the store is doing.
Because orders sit right beside traffic, you can see which pages, campaigns, and traffic sources turn into real sales instead of just clicks.
It hooks into WooCommerce itself rather than one specific provider, so Stripe, PayPal, and every other gateway get counted the same way.
No cookie banner needed for anonymous visitors, and your data is stored in the EU, so you get clean numbers without adding any privacy overhead to your checkout.
About five minutes, on the free plan, without a credit card.
Order tracking builds on the page-view tracking from the Privytics WordPress guide. If page views already show up in Privytics, you are all set here, so skip to step 2. If not, follow the WordPress guide first and then come back.
Follow the Privytics WordPress guide to add page-view tracking first.
Already seeing page views in Privytics? Skip to step 2.This is the only code you need. In your WordPress admin open WPCode, choose Add Snippet, then PHP Snippet, paste the code below, and set it to run everywhere. If you prefer, you can paste the same code at the end of your child theme's functions.php instead. You do not need to read or change any of it, just paste it and save.
add_action( 'woocommerce_thankyou', 'privytics_track_order' );
function privytics_track_order( $order_id ) {
$order = wc_get_order( $order_id );
// Send each order only once, even if the thank-you page is refreshed.
if ( ! $order || $order->get_meta( '_privytics_tracked' ) ) {
return;
}
$order->update_meta_data( '_privytics_tracked', 'yes' );
$order->save();
$data = array(
'revenue' => (float) $order->get_total(),
'currency' => $order->get_currency(),
'order_id' => (string) $order->get_order_number(),
);
echo '<script>window.op("track","purchase_completed",'
. wp_json_encode( $data, JSON_HEX_TAG | JSON_HEX_AMP ) . ');</script>';
}Place a test order in your store and complete the checkout. Within a minute or two, open Privytics and look for a purchase_completed event with the order revenue on it. If you see it, order tracking is live.
Place a test order, then open Privytics and look for a purchase_completed event with the order revenue.For page views, no, the Privytics WordPress guide is a copy-and-paste setup. For orders, you paste one PHP snippet into WPCode. That snippet is the only code involved, and you do not need to understand it, just drop it in and save.
It can, a little. Order tracking runs in the shopper's browser, so the small share of shoppers who block scripts will not be counted, and some setups that do not return the shopper to the thank-you page, like classic PayPal Standard, can be missed too. For most stores this is a tiny fraction of orders. If you need exact counts, a fully reliable server-side version is available that counts every paid order straight from your server. Just ask Privytics for it.
Yes. It uses WooCommerce's own order hooks rather than anything specific to a gateway, so Stripe, PayPal, and the rest all work the same way. The one thing to watch is off-site gateways that do not send the shopper back to your thank-you page, since the browser snippet needs that page to load. The server-side version mentioned above avoids that entirely.
It is fully cookieless, so it needs no cookie banner of its own. Your data is stored in Germany, inside the EU. The free tier includes 10,000 events a month with 12 months of retention, and paid plans add session replay and 5 years of event history.