Skip to main content
WooCommerce guide

Referring Domain for WooCommerce Stores

By ยท Updated ยท 6 min read

What a Referring Domain Means in a WooCommerce Context

A referring domain is any external website that sends at least one visitor to your store via a clickable link. In WooCommerce, this concept carries extra weight because the platform runs on WordPress, meaning your analytics layer is entirely separate from your store engine โ€” WooCommerce itself records no referral data natively. Every insight about which domains send you traffic, and whether that traffic converts, must come from a third-party analytics integration or a dedicated plugin.

This separation matters for store operators because a mismatch between WooCommerce order data and your analytics platform is easy to create and hard to diagnose. A customer who clicks a link from a review site, bounces through a coupon aggregator, and completes checkout gets logged as an order in WooCommerce with no domain-level origin attached unless you have configured that connection deliberately.

How WooCommerce Handles (and Misses) Referral Attribution by Default

Out of the box, WooCommerce stores order metadata โ€” product, price, customer email, status โ€” but no marketing attribution fields. The order record in wp_postmeta has no column for referring domain. That means if you export orders as a CSV or query the database directly, you get zero traffic-source information without additional instrumentation.

WordPress itself sets no session cookies for attribution. If a visitor arrives from a referring domain and takes more than 30 minutes to purchase โ€” common for considered purchases โ€” the session expires and the referral is lost entirely unless your analytics tool uses its own persistent cookie or local storage. Google Analytics 4, for example, uses a 30-minute session window by default but stores the campaign source in a cookie with a longer lifespan, so the original referral is not always lost, but the session is reset.

The practical consequence is that WooCommerce store operators routinely undercount the contribution of referring domains to revenue because the order confirmation page โ€” the only reliable conversion event โ€” fires after the checkout redirect, and any interruption in that redirect chain (PayPal, Klarna, bank 3DS pages) breaks the referral chain in analytics.

Plugins and Tools That Surface Referring Domain Data for WooCommerce

The WooCommerce ecosystem has several plugins that attach attribution data to orders at the time of purchase. Plugins like WooCommerce's own built-in order attribution feature (introduced in WooCommerce 8.5) stamp each order with a source type and source value, which includes the referring domain for organic referral traffic. This data appears directly in the WooCommerce admin under each order and is queryable via the REST API.

Google Analytics 4 with the WooCommerce Google Analytics Integration plugin passes purchase events server-side or via the data layer, so a completed order is linked to the traffic source that originated the session. For stores where the checkout flow leaves the WordPress environment โ€” such as those using PayPal Standard โ€” the measurement protocol must be used to stitch the transaction back to the original session, which requires developer configuration.

More attribution-focused plugins like PixelYourSite or Metorik connect order data with referral sources and expose per-domain revenue reporting. Metorik in particular pulls order data from the WooCommerce REST API and joins it with UTM parameters or referrer strings stored as order meta, giving operators a domain-level revenue view without leaving the WooCommerce ecosystem. These tools do not replace a proper analytics platform but fill the gap between raw order exports and traffic data.

WooCommerce-Specific Limitations That Distort Referring Domain Data

Several architectural facts about WooCommerce distort referring domain attribution in ways that generic analytics advice does not address. First, WooCommerce stores frequently use page caching plugins โ€” WP Rocket, W3 Total Cache, LiteSpeed Cache โ€” that serve cached HTML to returning visitors. If the analytics JavaScript fires before the cache layer is bypassed, the referral cookie may not be written correctly, especially on the first page load.

Second, WooCommerce's default checkout flow sends customers through /checkout/, then to a thank-you page at /checkout/order-received/. If a CDN or caching rule intercepts the order-received page, the GA4 purchase event may not fire, creating a gap between actual WooCommerce orders and reported conversions. This is a common source of the discrepancy operators notice between WooCommerce revenue totals and GA4 e-commerce revenue.

Third, WordPress multisite setups with separate WooCommerce storefronts under different subdomains create cross-domain tracking challenges. A link from a blog subdomain to the shop subdomain appears as a referring domain in analytics even though it is the same brand property, inflating internal referral counts and understating the true contribution of external referring domains.

How to Attribute Referring Domain Revenue Accurately in WooCommerce

Start by enabling WooCommerce's native order attribution feature if running version 8.5 or later. This writes the referral source directly into order meta at the moment of purchase, using the browser's document.referrer and any UTM parameters present, making it immune to the thank-you page tracking gap because the write happens server-side at order creation.

Add cross-domain tracking configuration in GA4 if any part of your checkout flow leaves your primary domain. In Google Tag Manager, configure the GA4 tag's cross-domain measurement settings to include PayPal, Klarna, or any other payment domain that redirects back to your order-received page. Without this, every returning customer from an offsite payment page is counted as a new direct visit, erasing the original referring domain.

Audit your WooCommerce permalink structure and confirm that /checkout/order-received/ is excluded from all caching rules. In WP Rocket, this exclusion is added under the 'Never Cache' URLs setting. In LiteSpeed Cache, add the URL to the exclusion list under Cache > Exclusions. This single change eliminates the most common source of under-reported purchase events from referring domain traffic.

Frequently asked questions

Does WooCommerce track referring domains natively?

WooCommerce does not track referring domains in order records by default prior to version 8.5. From version 8.5 onward, the built-in order attribution feature writes the referring source into order meta at the time of purchase. Stores on earlier versions need a plugin or a custom implementation to connect order data with traffic source information.

Why does my WooCommerce revenue in GA4 not match the WooCommerce admin totals?

The most common causes are caching rules that block the GA4 purchase event on the order-received page, offsite payment gateways breaking the session, and missing cross-domain tracking configuration. Each of these drops a transaction from GA4 while WooCommerce still records the order. Fixing the caching exclusion and cross-domain settings closes most of the gap.

How do WooCommerce order attribution and GA4 differ for referring domain tracking?

WooCommerce order attribution records the referral source server-side at order creation, so it is not affected by client-side tracking failures like ad blockers or caching. GA4 tracks the full session path and can show which pages from a referring domain a visitor viewed before converting, but it relies on JavaScript firing correctly on every page including the thank-you page.

Which WooCommerce plugin is best for referring domain revenue reporting?

Metorik provides the most detailed per-order attribution reporting by querying the WooCommerce REST API and joining order meta with UTM and referral data. For stores already using Google Analytics 4, the WooCommerce Google Analytics Integration plugin combined with GTM cross-domain tracking is the standard setup. The right choice depends on whether the operator wants reporting inside or outside the WooCommerce admin.

How does WordPress page caching affect referring domain attribution in WooCommerce?

Caching plugins serve pre-built HTML before WordPress or WooCommerce execute, which can prevent analytics scripts from writing attribution cookies on the first visit. More critically, if the order-received page is cached, the GA4 purchase event never fires, removing that transaction from referral attribution reports entirely. Excluding /checkout/ and /checkout/order-received/ from caching resolves this.

MG
Written by

Matt is the founder of RunOctopus. He built All Angles Creatures from zero to page-1 rankings in reptile feeder insects in under 60 days using exactly this method โ€” turning a hard, entrenched niche into RunOctopus's proof store for programmatic SEO and AI search citation.

Connect on LinkedIn →

See what Otto would build for your store

Free architecture preview. No card required. Five minutes.

Generate Preview →