This comprehensive guide covers everything you need to know about connecting and configuring Google Analytics 4 (GA4) with Analyzely.

Overview

The Analytics Setup page is the central hub for configuring your Google Analytics integration. From here, you can:

  • Connect your Google account
  • Select your GA4 property and Measurement ID
  • Enable server-side tracking
  • Configure eCommerce events
  • Set up Google Consent Mode V2

Accessing Analytics Setup

  1. Open the Analyzely app from your Shopify Admin
  2. Click Analytics Setup in the sidebar, or
  3. Click Setup from the dashboard’s analytics setup overview card

Section 1: Login with Google

Connecting Your Account

The first step is to authenticate with your Google account:

  1. Click the Login with Google button
  2. A popup window will appear asking you to select a Google account
  3. Choose the account that has access to your Google Analytics properties
  4. Review the requested permissions and click Allow

Required Permissions

Analyzely requests the following Google permissions:

PermissionPurpose
View Analytics dataRead your analytics reports and metrics
Manage Analytics propertiesAutomatically configure measurement IDs and API secrets

Note: If you do not grant the “Manage Analytics” permission, some features like automatic Measurement ID selection and server-side tracking setup will require manual configuration.

Connected Account Display

Once connected, you will see:

  • Your Google account name
  • Your email address
  • Your profile photo (if available)
  • A Logout button to disconnect

Troubleshooting Connection Issues

Missing Permissions Banner

If you see a warning about missing permissions:

  1. Click the provided link to re-authenticate
  2. Make sure to grant all requested permissions
  3. Try logging out and logging back in

No Properties Found

If your account shows no properties:

  1. Verify you have access to GA4 properties (not Universal Analytics)
  2. Check your Google Analytics admin to confirm property access
  3. Ensure you are using the correct Google account

Section 2: Choose Property

Selecting Your Account

  1. Click the Account dropdown
  2. Select your Google Analytics account from the list
  3. Account names are displayed with their account IDs

Selecting Your Property

After selecting an account:

  1. Click the Property dropdown
  2. Select the GA4 property for your Shopify store
  3. Property names are displayed with their property IDs

Tip: If you have multiple properties, look for the one that matches your store name or domain.

Creating a New Property

If you do not have a GA4 property yet:

  1. Go to Google Analytics
  2. Click Admin (gear icon)
  3. Click Create Property
  4. Enter your property name (e.g., “My Shopify Store”)
  5. Set your timezone and currency
  6. Complete the business information
  7. Create a Web data stream with your store URL
  8. Return to Analyzely and refresh the page

Section 3: Measurement ID

The Measurement ID is a unique identifier that tells Google Analytics where to send your tracking data.

When using automatic mode:

  1. The app detects available data streams from your property
  2. Select your Measurement ID from the dropdown
  3. The ID format is G-XXXXXXXXXX

Manual Mode

If you need to enter your Measurement ID manually:

  1. Toggle to Manual mode
  2. Enter your Measurement ID in the text field
  3. The ID must start with “G-“

Finding Your Measurement ID

If you need to find your Measurement ID in Google Analytics:

  1. Go to Google Analytics
  2. Click Admin (gear icon at bottom left)
  3. In the Property column, click Data Streams
  4. Click on your web stream
  5. Copy the Measurement ID (format: G-XXXXXXXXXX)

Section 4: Server-Side Events

Server-side tracking sends events directly from the Analyzely server to Google Analytics, providing more accurate data that is not affected by ad blockers or browser restrictions.

Note: This is a Pro plan feature.

Enabling Server-Side Events

  1. Toggle the server-side events switch to ON
  2. The app will attempt to automatically fetch the Measurement Protocol API Secret
  3. If automatic fetch fails, you will need to enter it manually

Measurement Protocol API Secret

The API secret is required for server-side events:

Automatic Setup (when using Auto Measurement ID):

  • The API secret is automatically fetched and configured

Manual Setup:

  1. Go to Google Analytics > Admin > Data Streams
  2. Click on your web stream
  3. Scroll down and click Measurement Protocol API secrets
  4. Click Create to generate a new secret
  5. Copy the secret value
  6. Paste it into Analyzely

For detailed instructions, see Server-Side Tracking.

Section 5: Data Layer / eCommerce Events

This section lets you configure which customer actions are tracked in Google Analytics.

Available Events

EventDescriptionWhen It Triggers
View CategoryCollection page viewsCustomer views a collection page
View ProductProduct page viewsCustomer views a product page
Search ContentStore searchesCustomer uses the search function
Add to CartCart additionsCustomer adds a product to cart
Initiate CheckoutCheckout startsCustomer begins the checkout process
Add Shipping InfoShipping detailsCustomer enters shipping information
Add Payment InfoPayment detailsCustomer enters payment information
PurchaseCompleted ordersCustomer completes a purchase
RefundOrder refundsAn order is refunded (requires server-side)

Enabling Events

  1. Check the box next to each event you want to track
  2. All events are enabled by default on Pro plans
  3. Click Save to apply your changes

Purchase Event Options

When the Purchase event is enabled, you can configure:

  • Include Tax Amount – Add tax to the purchase value
  • Include Shipping Amount – Add shipping cost to the purchase value

Refund Event Requirements

The Refund event requires:

  • Pro plan subscription
  • Server-side events enabled
  • Measurement Protocol API secret configured

For detailed event configuration, see Event Tracking.

Google Consent Mode V2 adjusts how Google tags behave based on user consent, helping you comply with privacy regulations while maintaining measurement capabilities.

  1. Toggle the Google Consent Mode V2 switch to ON
  2. The app will automatically integrate with Shopify’s Customer Privacy API
  3. Tracking behavior will adjust based on customer consent choices

How It Works

When a customer visits your store:

  1. Before consent: Basic data is sent in a privacy-safe manner (cookieless pings)
  2. After consent (Accepted): Full tracking is enabled with cookies
  3. After consent (Declined): No tracking cookies are set, but conversion modeling may still work

Pairing with GDPR Banner

For complete privacy compliance:

  1. Enable Google Consent Mode V2 in Analytics Setup
  2. Configure the GDPR Consent Banner to collect user consent
  3. The banner and consent mode work together automatically

Saving Your Settings

After making any changes:

  1. A save bar will appear at the top of the page
  2. Click Save to apply your changes
  3. Wait for the success confirmation
  4. To undo changes, click Discard

Important: Changes are not applied until you click Save.

Configuration Summary

After completing setup, your dashboard will show a summary of your configuration:

  • Google Account connection status
  • Selected Measurement ID
  • Server-side events status
  • Google Consent Mode V2 status

Best Practices

  1. Use Automatic Mode when possible for the simplest setup
  2. Enable Server-Side Events (Pro) for the most accurate tracking
  3. Enable All Events to get complete eCommerce data
  4. Turn on Consent Mode V2 if you serve customers in privacy-regulated regions
  5. Verify Your Setup by checking Realtime reports after saving