> 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/littledata-shopify-install-guide.md).

# Littledata to Google Analytics installation guide

This guide shows you how to connect your Shopify store to the Google Analytics 4 (GA4) destination in the Littledata app. It takes about 5 minutes.

### Before you start

* You have the Littledata app installed on your Shopify store, with Shopify connected as a source.
* You can sign in to a Google account that has access to the GA4 property you want to use.
* That GA4 property has a web data stream. If it doesn't, [create a data stream in GA4](https://help.littledata.io/integrations/shopify-to-google-analytics/create-a-data-stream-in-ga4) first.
* You can turn off other Google Analytics tracking on your store (for example Shopify's Google & YouTube app or another tracking app).

### Connect Google Analytics 4

{% stepper %}
{% step %}

### Add the destination

Open the Littledata app and click **Add destination**. The **Destinations** page opens.
{% endstep %}

{% step %}

### Choose Google Analytics 4

Under **Available in your plan**, find **Google Analytics 4** and click **Connect**. The setup opens on the **Connect your store to Google Analytics** screen.
{% endstep %}

{% step %}

### Read the overview

Read the short overview, then click **Continue**.
{% endstep %}

{% step %}

### Choose your tracking preferences

On **Set up your tracking**, pick one option and click **Continue**:

* **Use best practices** (recommended): uses the Shopify order name as the order identifier, the Shopify variant ID as the product identifier, and tracks all events. You can change this later.
* **Customize your tracking**: lets you choose identifiers and events yourself. Go to the next step.

If you picked **Use best practices**, skip to **Connect your Google account**.
{% endstep %}

{% step %}

### Customize your tracking (optional)

On the **Order & product identifiers** screen, choose an **Order Identifier** and a **Product Identifier**, then click **Continue**.

On the **Tracked events** screen, untick any events you don't want sent to GA4, then click **Continue**. We recommend tracking all events.
{% endstep %}

{% step %}

### Connect your Google account

On **Connect your Google account**, click **Connect**. Google's sign-in page opens in a new tab. Sign in with the Google account that can access your GA4 property and allow access, then go back to the Littledata app tab.

You'll see **Choose your property** and your Google email address in place of **No account connected**.
{% endstep %}

{% step %}

### Choose your property

Under **Connect your Google Analytics property**, open the **Choose your property** list and pick the property that should receive your data. Click **Continue**.

If you don't see your property, click **Refresh properties**. If you signed in with the wrong Google account, click **Change account**.
{% endstep %}

{% step %}

### Turn off other Google Analytics tracking

On **Disable other tracking apps**, remove any other tracking that sends store data to GA4, so you don't count events twice:

* If you use Shopify's Google & YouTube app (Google sales channel): click the **Google Sales Channel** link on the screen. In the app, find the Google Analytics section and click **Disconnect**.
* If you use another tracking app: uninstall it, or turn off its Google Analytics tracking (see that app's docs).

You can also watch [this short video](https://youtu.be/CWr0WL-dyTw) on disconnecting Shopify's Google Analytics tracking.
{% endstep %}

{% step %}

### Confirm and continue

Back in the Littledata app, tick **I have disabled other tracking apps** and click **Continue**.
{% endstep %}

{% step %}

### Wait for tracking to install

You'll see **Adding tracking** while Littledata adds its tracking scripts and webhooks to your store. This moves on by itself. When it's done, you'll see **You're connected! Here's where to go next.**
{% endstep %}
{% endstepper %}

{% hint style="info" %}
If a property can't be selected because it has no data stream, create a web data stream for it in GA4, then click **Refresh properties**.
{% endhint %}

### Check that it works

{% stepper %}
{% step %}

### Check the Littledata app

Open the Littledata app home page. The **Google Analytics 4** card shows **Connected**.
{% endstep %}

{% step %}

### Check GA4

Visit your store in a new browser window and view a product. In GA4, go to **Reports** > **Realtime**. Within a few minutes you'll see your visit and events like `page_view` and `view_item`.
{% endstep %}
{% endstepper %}

### Related articles

* [How it works: Shopify to Google Analytics](https://help.littledata.io/integrations/shopify-to-google-analytics/how-it-works-shopify-to-ga4)
* [Create a data stream in GA4](https://help.littledata.io/integrations/shopify-to-google-analytics/create-a-data-stream-in-ga4)
* [How to fix duplicate tracking in GA4](https://help.littledata.io/integrations/shopify-to-google-analytics/fix-duplicate-tracking-ga4)
* [FAQ: Shopify to Google Analytics](https://help.littledata.io/integrations/shopify-to-google-analytics/faq-shopify-to-google-analytics)
