In this guide
Why a payment provider appears as a traffic source
A South African online store advertises products through Google Ads, social media and email. Customers browse the store, pay through an external provider and return to the order confirmation page. In GA4 reports, the payment gateway domain sometimes appears as a referral source.
That referral does not necessarily mean the gateway brought a new customer to the shop. It may simply be the site that referred the shopper back after payment. Without appropriate measurement configuration, the return journey can confuse channel analysis and make the marketing campaign look less effective than it actually was.
The solution is to distinguish legitimate new visitors from traffic that temporarily left your website to complete an existing checkout.
Trace a real customer journey first
Choose a test transaction where you control the browser and have permission to inspect analytics. Start with a tagged campaign link or a clearly identifiable source, view the product, proceed to checkout and complete the payment using the provider's supported test process.
Record which domains the browser visits and where it returns. Examine GA4's available event and traffic-source reporting after processing, recognising that some reports are delayed. Keep a record of the purchase transaction ID and the events generated along the way.
If the checkout opens another domain and then sends the customer back, that round trip is a candidate for unwanted referral handling. But a referral from an unrelated blog or partner website may be completely valid and should not be suppressed.
Know what an unwanted referral setting does
GA4 provides an unwanted-referrals configuration for domains that should not be treated as referral traffic sources. Google's documentation specifically includes third-party payment processors as a common use case.
When properly configured, relevant events receive an instruction that the referrer should not be used as a traffic source. This helps prevent the payment provider being credited for bringing in a customer who was already shopping with you.
The setting is not a time machine. Historical acquisition reporting does not simply rewrite itself to match a configuration change, and existing session or attribution rules still apply. Validate changes using new test traffic and allow for reporting delays.
Avoid excluding every external domain
A store might use PayFast, a third-party booking platform, a customer finance provider and a delivery tracking service. Their roles are not identical. Some domains are part of a checkout flow; others may legitimately send referrals from their own websites.
Review the specific return path and domain before adding it to an unwanted-referral list. Broad exclusions can hide genuine sources of business. Maintain a short documented list explaining why each domain belongs there.
If an external website represents a genuine extension of your own user journey, cross-domain measurement may be appropriate where both sites support compatible tagging. Do not assume you can implement cross-domain tracking on a payment provider that you do not control.
Separate session attribution from purchase tracking
Correctly handling referrals does not guarantee your purchase event fires. Some stores rely on a thank-you page for purchase measurement. A customer may pay successfully but close the browser before returning, leaving the payment recorded in WooCommerce without a corresponding browser-side purchase event.
Conversely, a shopper can revisit the confirmation page or refresh it. If your implementation emits a new purchase each time without durable checks, GA4 can receive duplicate transaction events.
Use the WooCommerce order and its stable transaction reference as the business source of truth. Configure purchase measurement so the transaction ID is consistent and duplicates are prevented as far as your chosen collection method allows. Reconcile analytics purchases against confirmed store orders rather than trusting one report in isolation.
Consent and privacy still apply
Tracking configuration must respect the business's applicable privacy and consent obligations. Do not use server-side measurement as a method of bypassing a customer's expressed choices. Share only the data necessary for the authorised purpose and control who can access analytics and transaction information.
Analytics transaction IDs should not expose a customer's email address or other personal detail. A suitable non-personal business reference is preferable to placing sensitive identifiers in URLs or reports.
Check Google Ads separately
A business using Google Ads should confirm which conversion actions it optimises for. A GA4 purchase event, a Google Ads conversion and an internal WooCommerce sale are related but not necessarily identical measurements. Differences can arise from attribution methods, processing delays, consent and implementation errors.
Keep diagnostics specific: does GA4 show the correct purchase count? Does the campaign source persist through checkout? Does Google Ads import or measure the chosen conversion appropriately? Fixing unwanted referrals addresses one part of the journey, not every discrepancy in advertising reports.
Make a controlled change and retest
Document the current GA4 data stream settings. Add only verified payment-return domains that should be ignored as referrals. Then repeat the test journey with a fresh browser session, distinct campaign parameters and a unique order reference.
Check that the payment return no longer creates an unwanted source, the transaction is recorded once and the original marketing channel remains visible where measurement conditions permit. Test cancellations and failed payments as well as successful orders. A cancelled payment must not be reported as a purchase simply because the shopper returned to the site.
Also check for payment-provider changes or alternate subdomains. Different payment methods may use different checkout hostnames, so one successful test does not cover every path.
Turn cleaner tracking into better decisions
A marketing dashboard should connect sessions and campaign engagement with verified checkout outcomes. It should display differences between website checkout starts, confirmed transactions, refunds and measured analytics conversions rather than silently treating all those counts as equal.
If a payment provider appears as the largest source of orders, investigate before increasing marketing spend based on that report. The objective is to recognise the real acquisition channel while acknowledging measurement limits.
Watch the difference between a report and an event
A GA4 acquisition report can attribute users or sessions differently from an ecommerce event report. Before concluding that attribution is broken, check which dimension and reporting scope the team is comparing. A purchase event may arrive after a consent change or another visit, while the original user acquisition information has its own rules. Maintain a small reconciliation sheet for controlled test orders with the campaign source, payment domain, order ID, event ID and observed conversion status. This gives your marketing team a repeatable test rather than a debate over screenshots from different GA4 reports. It also helps isolate genuine missing purchases from attribution differences that are expected.
How Digital4Front can help
Digital4Front builds ecommerce websites and integrates the payment, tracking and business processes around them. If GA4 is crediting your gateway instead of the campaign that attracted the shopper, we can review the complete checkout route, event handling and conversion configuration.
The useful outcome is not a prettier dashboard. It is a dependable enough picture of customer acquisition to support marketing decisions without confusing payment processing with traffic generation.
