Shopify to Google Analytics installation guide

Updated on 2024-06-04

In this quick setup guide, we'll show you how to install Littledata Analytics, the most popular Shopify app for e-commerce tracking and marketing attribution in Google Analytics (GA).

Video guide

Watch this video for a quick walkthrough of our installation process.

Quick install guide

Step 1. Install Littledata's Shopify app

install Littledata's Shopify app

Step 2. Choose the Google connection bundle

Choose your plan and connections

Step 3. Start the Shopify to Google Analytics connection

Connect Shopify to Google Analytics

Step 4. Customize your tracking

We recommend using best practices for the most optimal setup, with all events being tracked excluding POS orders, which can be modified later.

Google Analytics checkout steps

By choosing to manually customize your tracking, you will be able to select the events that you want to track and how the products appear in your Google Analytics.

  • Choose how the orders appear in your e-commerce purchases report in Google Analytics.

  • We recommend selecting the Shopify Product ID, but you can opt for Product Variant or Product SKU.

select which events to track

  • We recommend tracking all events, but you can customize the server-side events that we track to your Google Analytics 4 property. You can always update this in the Data Pipeline Settings.

Step 5. Connect your Google Analytics 4 account

In this step, you can choose how to connect Littledata to your Google Analytics account. We recommend the automatic route for the most optimal setup.

Automatically select the account, property, and data stream to report on or create a new property and data stream. You will need permission to edit the GA property.

Connect your Google Analytics 4 account

Step 6. Choose Automatic or Headless install

We recommend going the automatic route unless you have a headless storefront (see below).

Choose Automatic or Headless install

Step 7. Disable the duplicate tracking

If you connected Littledata to the same GA4 property as your old tracking (e.g. Google Sales Channel) then the latter has to be removed to avoid duplicate tracking.

Confirm that duplicate tracking has been disabled and click on Continue.

Disable the duplicate tracking

The below walkthrough shows where you can find the native Shopify to GA4 connection. Go to Sales Channels > Google and Youtube > click Disconnect next to your GA4 property.

Disable Google sales channel

If you're not sure HOW your previous GA4 connection was setup, please read our step-by-step guide on how to fix duplicate tracking in GA4.

Step 8. Littledata add the tracking script and webhooks

During the automatic installation process, Littledata adds a data layer, a tracking script and a set of webhooks to your Shopify store.

Install Littledata

Installation complete

When the installation is successful, you will be redirected to the connection settings page.

tip:

Ready to get reporting? Try the GA4 video course our team has created

We invite you to complete our connection setup checklist. By doing so, you will gain a better understanding of our product's features and capabilities.

Google Analytics tracking

Setup for headless stores

note:

For more information on our headless implementation please check out the Getting Started: Headless Shopify to Google Analytics connection article.

This route is suitable for headless stores with a custom frontend. Select this method and click on Continue.

Headless tracking

Step 1. Add client-side tracking to your headless store

For a comprehensive guide on our headless implementation please visit our Headless Shopify Demo page.

tracking to your headless store

Step 2. Disable duplicate tracking

If you are using a different implementation to track checkout steps and purchases, we recommend disabling it before continuing with the instalation.

Disable duplicate tracking

Step 3. Applying webhooks

During this step, Littledata adds a set of webhooks to your Shopify store that ensure our servers pick up the checkout and order events.

Installation complete

When the installation is successful you will see a confirmation page.

Complete Google Analytics tracking