# Installation

> Install the app and connect your GA4 account

Source: https://help.pasilobus.com/google-analytics/installation
App: GA4 Tracking (on the Shopify App Store as "Pasilobus Google Analytics")
Shopify App Store: https://apps.shopify.com/pasilobus-google-analytics
App help: https://help.pasilobus.com/google-analytics
Section: Getting started
Last updated: 2026-02-08
Support: email support@pasilobus.com or send a request from https://cloud.pasilobus.com/support (no chat)

## Installing from the App Store

1. Visit the [Pasilobus Google Analytics](https://apps.shopify.com/pasilobus-google-analytics) app listing on the Shopify App Store
2. Click **Add app** to begin the installation
3. Follow the prompts to complete installation

## Connecting with Google

The quickest way to connect is **Connect with Google** on the app's home page (first setup step) or on **Settings > GA4 Credentials**:

1. Click **Connect with Google**. Google's sign-in page opens in the full browser window.
2. Sign in with the Google account that manages your GA4 property and allow access to Google Analytics.
3. Back in the app, choose your GA4 web data stream from the list. Streams are grouped by Google Analytics account and property, so pick the account, then the property, then its web stream.
4. Tick the box to accept Google's user data collection terms for that property (Google requires this before an API secret can be created).
5. Click **Use this data stream**.

The app fills in the Measurement ID and creates a Measurement Protocol API secret on that stream for you. It then gives up its access to your Google account: nothing else in Google Analytics is changed, and no Google login is kept.

If you prefer, or if your Google account cannot manage the property, enter the two values by hand as described below.

## Getting Your GA4 Credentials by Hand

Before the app can send data to Google Analytics, you need two pieces of information from your GA4 account:

### Finding Your Measurement ID

1. Go to [analytics.google.com](https://analytics.google.com)
2. Click the **Admin** gear icon in the bottom-left corner
3. Open **Data collection and modification > Data streams**
4. Select your web data stream
5. Your **Measurement ID** (starts with G-) is shown at the top—copy it

![Open Google Analytics Admin](https://pixels.pasilobus.com/docs/tutorial1.png)

![Open Data Streams](https://pixels.pasilobus.com/docs/tutorial2.png)

![Copy Measurement ID](https://pixels.pasilobus.com/docs/tutorial3.png)

### Creating an API Secret

1. In the same Data Stream details page, scroll down
2. Click **Measurement Protocol API secrets**
3. Click **Create** to generate a new secret
4. Give it a name (e.g., "Shopify Pasilobus Google Analytics")
5. Copy the **Secret value**

![Open Measurement Protocol secrets](https://pixels.pasilobus.com/docs/tutorial4.png)

![Create API Secret](https://pixels.pasilobus.com/docs/tutorial5.png)

![Copy the secret value](https://pixels.pasilobus.com/docs/tutorial6.png)

## Entering Credentials in the App

1. Open the Pasilobus Google Analytics app in your Shopify admin
2. Enter your **Measurement ID** in the first field
3. Enter your **API Secret** in the second field
4. Click **Save**

Once saved, the API Secret is hidden and never shown again. To change it, paste a new secret into the field and save. Leaving the field empty keeps the secret you already saved.

The app refuses a value that cannot be an API secret (for example the secret's nickname, or text with spaces). Google accepts events sent with any secret without reporting an error, so use **Send test event** (below) to confirm the secret belongs to your data stream.

![Enter credentials in app](https://pixels.pasilobus.com/docs/tutorial7.png)

## Verifying Tracking is Working

To check your credentials straight away, open **Settings > GA4 Credentials** and click **Send test event**. The app sends an event named `pasilobus_connection_test` in debug mode; open **Admin > DebugView** in Google Analytics and it should appear within a minute. If it does not, the API secret does not belong to that data stream.

To confirm everything is set up correctly:

1. Visit your store and browse a few pages
2. Add a product to cart
3. Wait 24-48 hours for data to appear in GA4 reports

For real-time verification, use GA4's **DebugView**:
1. In Google Analytics, go to Admin > DebugView
2. Browse your store in a separate tab
3. Watch for events appearing in real-time

If events aren't showing, check the [Events Not Showing](https://help.pasilobus.com/troubleshooting/events-not-showing) troubleshooting guide.

## Enabling the App Embed

After saving your credentials, enable the app on your theme:

1. Select your theme from the dropdown
2. Click **Open Theme Editor**
3. In the theme editor, find "Pasilobus Google Analytics" in the App Embeds section
4. Toggle it **On** and click **Save**
