# Tracking Shopify payment gateways in Google Analytics

Littledata supports a large number of different payment gateways and payment solutions. Due to the [unique way we track orders](https://help.littledata.io/integrations/shopify-to-google-analytics/how-it-works-shopify-to-ga4) on the Shopify server, our app will also **attribute sales by default** for any other payment gateway you use, including but not limited to Shopify Payments, PayPal, Klarna and Affirm (see below for a full list).

All of the payment gateways also have [multi-currency support](https://help.littledata.io/shopify/multi-currency-support-for-shopify), so payments in any global currency are converted to your store currency for analysis.

### How to see which payment gateway was used

{% hint style="info" %}
Payment gateway is not available for all orders, including draft orders and some subscription apps which do not pass this information on to Shopify
{% endhint %}

If you have activated Littledata's [Shopify to Google Analytics connection](https://help.littledata.io/integrations/shopify-to-google-analytics/broken-reference), you can also segment all of your orders (and customer behavior before they purchased) by the payment gateway they used. Payment gateway is only set on checkout step 2, so you can analyze any customers who got that far. For this destination, the parameter is named `payment_gateway_ld.`

For our [Segment destination](https://help.littledata.io/integrations/shopify-to-segment/how-it-works) the `payment_gateway_littledata` event property will be sent with checkout and order events.

Analyzing your Google Analytics data by payment method let's you take a deep into questions such as:

* Is a new payment solution allowing a higher proportion of customers in a particular country to buy?
* Are particular marketing channels leading to payments in installments with a payment method such as Klarna or Afterpay?
* Which payment methods see a higher checkout completion rate?

To do this analysis, you can use one of the [custom dimensions](https://help.littledata.io/google-analytics/conversions/customer-lifetime-value-google-analytics) our app adds in Google Analytics. To segment by payment gateway, just add '**Payment Gateway**' as a [dimension](https://support.google.com/analytics/answer/6086074?hl=en) to any report in Google Analytics.

### Payment gateways tracked by Littledata

Here are the most popular payment gateways our stores use. All of these payment methods are tracked automatically, and any of the orders that run through these payment methods can be linked back to your marketing campaigns.

| **Payment method**          |
| --------------------------- |
| Adyen                       |
| Affirm                      |
| Afterpay                    |
| Amazon Marketplace          |
| Amazon Payments             |
| Authorize.net               |
| Bank transfer               |
| Bold Cashier                |
| Braintree                   |
| Cash on delivery            |
| Cashfree                    |
| Coinbase Commerce           |
| Credit / Debit Cards        |
| Cyber Source                |
| ePay                        |
| Facebook Marketplace        |
| Flow\.io\*                  |
| Gift card                   |
| GoPay                       |
| Iyzico                      |
| Klarna                      |
| Komuju                      |
| Laybuy                      |
| Mercado Pago                |
| Mobilepay                   |
| Mollie                      |
| Mondido Swish               |
| Ocean Payment               |
| Orbital                     |
| Pag Seguro                  |
| Pague no Boleto             |
| Partial.ly                  |
| Paybright                   |
| Payfast                     |
| Payflow                     |
| Payfort                     |
| Paygate                     |
| Payment Express             |
| PayPal                      |
| Peace Payments              |
| Quadpay                     |
| QuickPay                    |
| Razorpay                    |
| Sezzle                      |
| Shop Pay / Shopify Payments |
| SplitIt                     |
| Stripe                      |
| ZipPay                      |

\* When using Flow\.io (Flow Commerce), the order number in Google Analytics will differ from the order number in Shopify. This is because Flow\.io overwrites the order number after it is created.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.littledata.io/integrations/shopify-to-google-analytics/tracking-shopify-klarna-paypal-google-analytics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
