> For the complete documentation index, see [llms.txt](https://help.littledata.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.littledata.io/integrations/shopify-to-google-analytics/tracking-shopify-klarna-paypal-google-analytics.md).

# Tracking Shopify payment gateways in GA4

How Littledata tracks orders from any Shopify payment gateway, such as Shop Pay, PayPal and Klarna, and how to see the gateway in GA4 and Segment.

Littledata tracks orders from any payment gateway your Shopify store uses, such as Shop Pay, PayPal, Klarna and Affirm. This page explains how gateway orders are tracked and how to report on the gateway in GA4 and Segment.

### How payment gateway orders are tracked

Littledata tracks orders [on the server](https://help.littledata.io/integrations/shopify-to-google-analytics/how-it-works-shopify-to-ga4#server-side-events), straight from Shopify. It doesn't matter which payment gateway the customer used, or whether they left your store to pay. Every order is still tracked and linked back to the marketing campaign that brought the customer in.

Orders in other currencies are supported too. See [Multi-currency support](https://help.littledata.io/sources/shopify/multi-currency-support-for-shopify).

### How to see which payment gateway was used

Littledata sends the name of the payment gateway that Shopify records for the order.

{% hint style="info" %}
Payment gateway is not available for all orders. For example, draft orders and orders from some subscription apps don't pass it to Shopify.
{% endhint %}

#### In GA4

| Where           | Name                 | Sent with                                                                   |
| --------------- | -------------------- | --------------------------------------------------------------------------- |
| User property   | `payment_gateway_ld` | Purchase events                                                             |
| Event parameter | `payment_type`       | Checkout events (`begin_checkout`, `add_shipping_info`, `add_payment_info`) |

Littledata creates a user-scoped custom dimension called **Payment Gateway** in your GA4 property. Add it to any GA4 report or exploration to split orders, and the customers who placed them, by payment gateway. See [Custom dimensions for calculating customer lifetime value](https://help.littledata.io/google-analytics/conversions/customer-lifetime-value-google-analytics).

To report on `payment_type` in checkout events, register it as an event-scoped custom dimension in GA4.

#### In Segment

| Property                     | Sent with                                                                                |
| ---------------------------- | ---------------------------------------------------------------------------------------- |
| `payment_gateway_littledata` | Order Completed, Post purchase upsell and POS Order Placed                               |
| `payment_method`             | Checkout Started, Checkout Step Viewed, Checkout Step Completed and Payment Info Entered |

See [How it works: Shopify source for Segment](https://help.littledata.io/integrations/shopify-to-segment/how-it-works).

### What you can learn

Splitting your data by payment gateway helps you answer questions like:

* Does a new payment method help more customers in a certain country to buy?
* Do some marketing channels lead to more buy now, pay later orders, for example with Klarna or Afterpay?
* Which payment methods have a higher checkout completion rate?

### Common payment gateways

Littledata works with any gateway, so this list is not complete. These are some of the gateways our stores use most.

|                      |                 |                             |
| -------------------- | --------------- | --------------------------- |
| Adyen                | Flow\.io        | PayBright                   |
| Affirm               | Gift card       | Payfast                     |
| Afterpay             | GoPay           | Payflow                     |
| Amazon Marketplace   | Iyzico          | Payfort                     |
| Amazon Payments      | Klarna          | Paygate                     |
| Authorize.net        | Komoju          | Payment Express             |
| Bank transfer        | Laybuy          | PayPal                      |
| Bold Cashier         | Mercado Pago    | Peace Payments              |
| Braintree            | MobilePay       | Quadpay                     |
| Cash on delivery     | Mollie          | QuickPay                    |
| Cashfree             | Mondido Swish   | Razorpay                    |
| Coinbase Commerce    | Ocean Payment   | Sezzle                      |
| Credit / debit cards | Orbital         | Shop Pay / Shopify Payments |
| CyberSource          | PagSeguro       | Splitit                     |
| ePay                 | Pague no Boleto | Stripe                      |
| Facebook Marketplace | Partial.ly      | Zip                         |

{% hint style="warning" %}
If you use Flow\.io (Flow Commerce), the order number in GA4 will differ from the order number in Shopify. This is because Flow\.io overwrites the order number after the order is created.
{% endhint %}

### Related articles

* [How it works: Shopify to Google Analytics](https://help.littledata.io/integrations/shopify-to-google-analytics/how-it-works-shopify-to-ga4)
* [Custom dimensions for calculating customer lifetime value](https://help.littledata.io/google-analytics/conversions/customer-lifetime-value-google-analytics)
* [Multi-currency support](https://help.littledata.io/sources/shopify/multi-currency-support-for-shopify)
* [How it works: Shopify source for Segment](https://help.littledata.io/integrations/shopify-to-segment/how-it-works)
