> 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/google-analytics/acquisition/how-to-track-shopify-sales-channels-in-ga4.md).

# How to track Shopify Sales Channels in GA4

Do you feel frustrated whenever you see revenue without any source in GA4?

One reason could be that a Shopify sales channel other than the online store brings in purchases. Sales channels and other apps may drive a lot of purchases to your business but they don’t always bring visitors to your website in a traditional way, and because of that those purchases don’t have a proper marketing attribution.

### What is the App Name dimension?

Littledata solves this problem by attaching the name of the sales channel or order app to every purchase that comes in as a custom parameter called `app_name`.

Whenever a purchase happens, the `app_name` parameter gets populated with the order app or channel. This is different to the ‘source’ in Google Analytics, which is the source of the marketing campaign or click which brought the revenue.

The default value is “Shopify Online Store”, for the Shopify checkout, and the others can look like this:

![shopify-sales-channels-in-ga4](https://3956158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QhTbrMraNWciQeDvu1b%2Fuploads%2Fgit-blob-841d2b13a18be9c40d008639cd1c1b3667e18371%2Fapp-name-list-img1.png?alt=media)

{% hint style="info" %}
Littledata creates the **App Name** custom dimension in GA4 for you when you connect GA4. You don't need to set it up by hand. See [custom parameters](https://help.littledata.io/integrations/shopify-to-google-analytics/how-it-works-shopify-to-ga4#custom-parameters) for the full list.
{% endhint %}

### How to use the App Name dimension

This App Name custom dimension can be combined with marketing attribution dimensions so that you can understand which channel should be credited when it comes to these, otherwise non-attributable purchases:

![shopify-sales-channels-attribution-in-ga4](https://3956158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QhTbrMraNWciQeDvu1b%2Fuploads%2Fgit-blob-feb193e5b7140d1f8c3d23812d2a70b8dc30e94a%2Fapp-name-attr-img2.png?alt=media)

In the example above you can see that Email (1) helped overall revenue (3) coming from the Facebook sales channel almost as much as Paid Social (2) channel did! (\~18K vs 21K).

In the next example we combined App Name with another Littledata custom dimension called [Purchase Count](/google-analytics/conversions/customer-lifetime-value-google-analytics.md#sample-use-case) - just like the name suggests, it updates the number of purchases, each time a user buys something (recurring orders included!)

![shopify-purchase-count-by-sales-channel](https://3956158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QhTbrMraNWciQeDvu1b%2Fuploads%2Fgit-blob-7379064632727c68cdaee50a8f80ecc6a9ef9711%2Fapp-name-vs-pc-img3.png?alt=media)

It’s interesting to see that on this store the Shop app is way more efficient than TikTok and Facebook when it comes to bringing in repeat purchases.

Another Littledata-specific dimension that is useful to combine with App name is Littledata Lifetime Revenue. This time we created user segments based on a certain spend threshold:

![shopify-customer-lifetime-value-by-sales-channel](https://3956158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QhTbrMraNWciQeDvu1b%2Fuploads%2Fgit-blob-29f837b06fca6eba3cc218de726b51cbe60106ef%2Fapp-name-vs-ltv-img4.png?alt=media)

Again, the customers who buy via Shop app prove to be of a higher quality - those with LTV > $50 outnumber the ones who spent less than that at a 3:1 ratio, whereas Facebook app buyers split almost equally between those two LTV user groups.

Such insight can help when determining which products/bundles to promote on each platform.

### How to exclude apps from Google Analytics reports?

{% hint style="success" %}
If you only want to leave a channel out of one report, create a segment in GA4 using the App Name dimension instead.
{% endhint %}

You can stop orders from certain sales channels being sent to GA4 at all. This is useful for orders like POS sales, Shop app orders, or channels that can't be attributed, like Facebook and Instagram shops.

{% stepper %}
{% step %}

### **Open your GA4 settings**

In the Littledata app, open **Settings** for your GA4 destination.
{% endstep %}

{% step %}

### **Go to Data customization**

Open the **Data customization** tab.
{% endstep %}

{% step %}

### **Add the channel to the exclusion list**

Under **Order channels exclusion list**, add the sales channels you want to exclude.

<figure><img src="https://3956158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QhTbrMraNWciQeDvu1b%2Fuploads%2FYZRKd0P0zoCTkEQYGsUu%2Fimage.png?alt=media&amp;token=67894fbb-9843-40a4-986c-e25449a97552" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### **Save**

Click **Save** to apply the change.
{% endstep %}
{% endstepper %}

{% hint style="success" %}
Shopify POS is on the exclusion list by default. Remove it if you want POS orders in GA4.
{% endhint %}

For more detail, see [how to exclude orders by order channel](https://help.littledata.io/advanced/troubleshooting/how-to-exclude-orders-by-source).

### 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)
* [How to exclude orders by order channel](https://help.littledata.io/advanced/troubleshooting/how-to-exclude-orders-by-source)
* [Tracking all your sales channels](https://help.littledata.io/google-analytics/acquisition/sales-channels-tracking)
