Shopify to Google Analytics installation guide

Updated on 2024-02-29

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).

Install video

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

Quick install guide

Step 1. Search for Littledata on the Shopify app store.

Search in app store

Step 2. Begin the installation process by clicking on “Install”.

Step 3. Click on ''Install app''.

login and install Littledata

Step 4. Complete the onboarding survey.

Fill in information about your store and tell us what you're looking to get out of Littledata.

Step 5. Choose your plan and connections.

Step 6. Approve the recurring charge

After selecting your connection, click on ''Pay Now''. This will redirect you to Shopify to approve the recurring charge that will be applied after the end of your 30-day free trial.

Connect Shopify to Google Analytics

Step 1. 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.

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.

  • 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 2. 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.

Step 3. Choose Automatic or Headless install

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

Step 4. 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.

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.

Step 5. Updating the tracking code and webhooks

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

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 recommend going through the courses that our team has created. This way you will be able to find out more about our product and how to set up exploration reports in Google Analytics 4.

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.

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.

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.

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.