E-commerce

How to track PayPal sales in Google Analytics?

How to track PayPal sales in Google Analytics?

October 30, 2026

Are you wondering how to track your PayPal sales in Google Analytics?

Key point: configure the return URL and exclude 'paypal.com' from referrers, so your transactions are counted correctly.

Warning: the buyer leaves your store for PayPal and sometimes returns without being redirected, creating tracking gaps.

So, how to track PayPal sales in Google Analytics? In this program:

  • Why aren't PayPal sales always reported?

  • How to configure the return URL and the Auto Return parameter?

  • How to exclude paypal.com from traffic sources in GA?

  • How to test and validate transaction tracking?

  • How Qstomy simplifies tracking and the customer experience?

By following these steps, you will eliminate discrepancies between your PayPal and Google Analytics reports while offering a seamless shopping experience to your customers. You will have a reliable dashboard to manage your advertising campaigns and optimize your conversion funnel.

By applying these settings, you will gain full visibility into every step of the purchase journey, facilitating continuous optimization of your marketing campaigns.

Summary

Why are PayPal sales not always reported in Google Analytics?

When the customer clicks 'Pay with PayPal', they leave your Shopify store and go to the PayPal site. If the redirect to the confirmation page is not executed, the Google Analytics e-commerce code does not trigger. Two scenarios are then possible: either the customer never returns, or they are redirected to the homepage or a generic page that does not have the tracking code. In both cases, GA records the visit as a new session from 'paypal.com', creating 'referral' traffic instead of attributing the sale to your store.

This loss often translates to a 5 to 10% gap between PayPal reports and GA statistics, complicating the analysis of advertising campaigns and cart optimization. Identifying the problem in the first quarter allows you to adjust settings and avoid invisible sales.

Furthermore, each lost session increases the apparent bounce rate and skews engagement metrics, which can lead to erroneous marketing decisions. By closely monitoring these anomalies, you can quickly implement fixes and recover full conversion tracking.

Convert over 2,000 customers on average per month with Qstomy.

The world’s 1st Shopify AI dedicated to customer conversion

Empowering 200+ e-commerce merchants

How to correctly configure the return URL in PayPal?

The return URL tells PayPal where to send the buyer after payment. In your Shopify dashboard, go to the payment gateway settings and copy the confirmation page address (often /order-tunnel/thank_you).

Steps in PayPal

  • Connexion to your PayPal account.

  • Outils de vente → « Website preferences ».

  • Auto Return : activate the option and paste the return URL.

Once saved, PayPal will automatically redirect the buyer to your thank-you page, at which point the GA tracking code will trigger.

It is recommended to test the return URL immediately by performing a small sandbox transaction to verify that the 'rm' (Return Method) parameter returns the necessary data to GA. In case of error, recheck the absolute URL and ensure it contains no escape characters.

Do not forget to verify that the HTTPS protocol is active on your return domain to avoid browser blocks and ensure secure transmission of transaction data.

What is the importance of the 'Auto Return' parameter in PayPal?

The 'Auto Return' parameter forces the immediate redirection of the customer to the URL you defined, without them having to click a 'Return to store' link. Without this parameter, the customer sometimes remains on the PayPal confirmation page, preventing the e-commerce tracking trigger.

Activating 'Auto Return' reduces the redirect loss rate from 90% to less than 2%, according to merchant feedback. Furthermore, it improves the user experience, as the customer immediately sees their order summary and product recommendations that Qstomy can offer.

From an SEO perspective, a smooth redirect avoids intermediate pages without tags, thus preserving 'link juice' and maintaining the consistency of the purchase journey. This also helps maintain a good Core Web Vitals score on the thank-you page.

How to exclude the paypal.com domain from referrers in Google Analytics?

When the customer returns from PayPal, GA may create a new session and attribute it to the source 'paypal.com'. To avoid this, add the domain to the referral exclusion list.

Manipulation in GA

  • Admin → Tracking Info → Referral Exclusion List.

  • Click 'Add Referral Exclusion' and enter paypal.com.

  • Save the modification.

After this configuration, the customer's return will be considered a continuation of the same session, preserving the original source (e.g., Google Ads or organic search). You can read our guide on e‑commerce tracking with Google Ads to align your campaigns.

If you manage multiple domains (e.g., boutique.fr and boutique.com), remember to add each domain variant to the exclusion list to avoid session breaks across different environments.

How to verify that a PayPal transaction appears correctly in Google Analytics?

GA offers several reports to audit sales. Go to Conversions → Ecommerce → Sales Performance and search for the transaction ID provided by PayPal (or your store). If the ID appears, tracking is working.

Next, check that the source/medium is not « paypal.com / referral ». Access Acquisition → All Traffic → Source/Medium and filter for « paypal ». No results mean the exclusion has been applied correctly.

Cross‑reference this data with the report CRM and customer support to ensure every payment is linked to an identified customer. You can also use the real-time report to immediately verify the receipt of a test transaction.

How to perform a PayPal order test to validate tracking?

Performing a test guarantees that the full chain works. Create a product for 0.01 € in Shopify, choose PayPal as the payment method, and complete the transaction in sandbox or live mode.

Checkpoints

  • Redirection : the customer must land on the /thank_you page.

  • GA code trigger : check in the network console or via the Tag Assistant extension.

  • Transaction ID presence : confirm its appearance in the Sales Performance report.

If any of these steps fail, revisit the return URL or referral exclusion settings.

To automate these tests, you can set up a Cypress or Puppeteer script that simulates a complete purchase flow and validates the presence of the parameter gtm in the dataLayer.

Which metrics to monitor to detect PayPal tracking losses?

Two key metrics help identify discrepancies:

  • Taux de redirection : compare the number of PayPal transactions recorded in your back‑office with the number of « purchase » events in GA.

  • Source/medium paypal.com : a spike indicates a missing exclusion.

  • Temps moyen de redirection : a delay exceeding 3 seconds may signal a technical issue (firewall, server slowness).

By regularly monitoring these metrics, you can intervene before the gap impacts your taux de conversion.

Qstomy also offers email or Slack alerts as soon as an abnormal spike is detected, allowing you to act quickly without manually monitoring reports.

How to reduce tracking discrepancies between PayPal and Google Analytics?

Beyond technical settings, some best practices improve tracking reliability.

  • Standardize URLs : avoid different tracking parameters between the product page and the thank-you page.

  • Optimize site speed A fast page load time for the confirmation page ensures the GA script executes before the customer leaves the page.

  • Display a patience message : inform the customer that they will be automatically redirected, which limits abandonment during the transition.

To further optimize speed, consult notre guide d’optimisation Google.

Using a CDN (Content Delivery Network) to serve the thank you page assets further reduces response time, ensuring the tracking code has time to load even on slow mobile connections.

What role do Shopify settings play in PayPal tracking?

Shopify natively integrates Google Analytics tracking, but you must ensure the 'Enhanced Ecommerce' mode is enabled. In the Shopify dashboard, go to Settings → Cart → Google Analytics Tracking and check the corresponding box.

Then, ensure the tracking script is present on the thank you page (/tunnel de commande/thank_you). Qstomy automatically injects this script and adds upsell and cross-sell events, enriching your reports.

For more details on gateway configuration, refer to our dedicated article on payment gateways.

Also verify that the snippet gtag(’event’,’purchase’,...) is placed after the DOM has fully loaded to avoid data loss when a customer uses the browser's 'Back' button.

How does Qstomy facilitate payment tracking and the customer experience?

Qstomy acts as a dedicated AI assistant for your Shopify store. It synchronizes payment events with Google Analytics, automatically adds tracking tags on every critical page, and triggers product recommendations immediately on the confirmation page.

Thanks to its package tracking module, every customer receives an email containing the tracking number, which reduces post-purchase abandonment. Additionally, the Qstomy dashboard unifies PayPal sales data, conversion metrics, and support tickets (see customer support during flash sales), offering a 360° view.

Case studies show that stores using Qstomy see a 12% increase in conversion rates thanks to automated recommendations and a 15% reduction in support requests related to order tracking.

How does Qstomy help optimize PayPal sales tracking?

Qstomy automates two often overlooked actions: adding the domain paypal.com to the referral exclusion list and verifying the return URL after every store update. When an inconsistency is detected, Qstomy sends you a direct alert in your dashboard and offers a 'Fix Now' button.

Furthermore, the AI proposes A/B testing for the thank you page to optimize post-payment conversion rates, as explained in our conversion rate optimization guide. You thus benefit from continuous tracking without manual intervention.

In the next version, Qstomy will integrate a data anonymization engine to comply with GDPR requirements while maintaining the granularity needed for advanced analytics.

What checklist before launching PayPal tracking and FAQ?

Checklist rapide

  • URL de retour filled out and tested.

  • Auto Return enabled in PayPal.

  • paypal.com added to the GA referral exclusion list.

  • Enhanced Ecommerce enabled in Shopify.

  • Test de transaction Realized and confirmed in the Sales Performance report.

FAQ

  • Q: What if the customer never returns? A: Most losses (≈10%) are due to a timeout or browser closure. You can reduce this rate by displaying a 'Redirecting...' message and increasing the GA session timeout.

  • Q: Should I add other domains to the exclusion list? A: Add only the domains that interrupt the session (e.g., paypal.com, stripe.com).

  • Q: Can Qstomy handle multiple payment processors? A: Yes, Qstomy supports Stripe, Apple Pay, and others, with the same referral exclusion logic.

By following this checklist, you secure the traceability of every PayPal sale and gain confidence in your marketing decisions.

For any further questions, our help center offers detailed guides on multi-payment configuration and advanced Google Analytics integration.

Enzo

October 30, 2026

Convert over 2,000 customers on average per month with Qstomy.

The world’s 1st Shopify AI dedicated to customer conversion

Empowering 200+ e-commerce merchants

Subscribe to the newsletter and get a personalized e-book!

No-code solution, no technical knowledge required. AI trained on your e-shop and non-intrusive.

*Unsubscribe at any time. We do not send spam.

Subscribe to the newsletter and get a personalized e-book!

No-code solution, no technical knowledge required. AI trained on your e-shop and non-intrusive.

*Unsubscribe at any time. We do not send spam.