ShopifyにGA4を設定する方法|Googleチャネルアプリでアナリティクスを導入する方法も紹介

How to Set Up GA4 on Shopify | Also Introducing How to Add Analytics With the Google Channel App

Tsunライターチーム

"RuffRuff 予約販売" helps reduce the lost sales opportunities that occur during out-of-stock periods, before a new product launch, or while waiting for restocking.
It makes it remarkably easy to set up pre-orders on your own Shopify store, letting you register an unlimited number of pre-order products and accept an unlimited number of pre-orders. It can also restrict customers from ordering pre-order and regular products together, and can send restock notifications when the arrival date is undetermined.
It also has many unique features not found in other pre-order apps, such as a "deferred payment" feature that lets you collect payment before the product ships.


This article explains the basic information about "Google Analytics 4," and how to set up "Google Analytics 4" on Shopify, aimed at those just starting to open a Shopify store (beginners).

What Is Google Analytics 4?

Google Analytics 4 (referred to below as GA4) is a website traffic analysis tool. It can measure how many users visit your site on a per-page basis, and lets you check various data such as traffic sources and the number of conversions.
GA4 is a new version of Google Analytics released in October 2020.
The current version of Google Analytics that many people still use is called "Universal Analytics" (referred to below as Universal).
Since March 2023, you've been able to set up GA4 from within the Google channel (Shopify app).

 

How to Set Up GA4 Using the Google Channel (Shopify App)

In March 2023, there was a feature update that let you set up GA4 from within the Google channel (Shopify app). This section introduces how to set up GA4 via the Google channel (Shopify app).

This setup requires a Google account. If you haven't created a Google account yet, please create one using the links below.

If you're creating a personal Google account, click here

If you're signing up for Google Workspace as a company or team, click here

If you're considering Google Workspace, please also make use of the following promo codes.

Google Workspace Business Starter, 10% off
Promo code: C3FHYQJTEX74TNY
Google Workspace Business Standard, 10% off
Promo code: R6TQLHQC44NYNAH

 

Setting up GA4 involves the following 4 steps:

  1. Create a new account in Google Analytics
  2. Install the Google channel (Shopify app)
  3. Authenticate your Google account within the Google app
  4. Link GA4 to your Shopify store within the Google app

Create a New Account in Google Analytics

1. Go to Create Account

Go to Google Analytics and click "Create Account"

*You can access Google Analytics here

2. Enter Information in Account Setup

① In Account Setup, enter an account name of your choosing

② Check the data sharing settings

③ Click "Next"

Enter information in Account Setup

3. Enter Information in Property Setup

① Property name

② Time zone

 *It's a good idea to select Japan here

③ Click "Next."

Enter information in Property Setup

4. Enter a Business Overview

① Select your industry *Please select the industry that best fits you

② Select your business size

③ Select your intended use for GA4

④ Click "Create"

Enter a business overview

5. Agree to GA4's Terms of Service

① Read the content carefully and check the checkboxes

 *There are 2 checkboxes

② Click "I Accept"

Agree to GA4's terms of service

Install the Google Channel (Shopify App)

Use the button below to go to the Shopify App Store, click "Add app," and install the app.

Google Channel [External Channel Integration]

Google Channel [External Channel Integration] | Shopify App
Source: Google Channel | Shopify App Store


Google Channel is a Shopify app recommended if you want to run Google Shopping ads.

Using this app synchronizes your product data in Shopify with Google Merchant Center (the Google service used to run Google Shopping ads).

Source: https://tsun.ec/blogs/articles/50

Pricing: Free

Authenticate Your Google Account Within the Google App

Open the Google channel app and authenticate your Google account
Open the Google channel app and click "Connect Google account"
Google account authentication
Follow the Google account authentication dialog to authenticate

Link GA4 to Your Shopify Store Within the Google App

Start linking GA4
Once Google authentication is complete, the blue message shown in the screenshot above will appear, so click "Get started" within the blue message
Select the GA4 property you want to link to Shopify
Select the GA4 property you want to link to your Shopify store, and click "Connect"

That completes the GA4 setup.

How to Set Up GA4 Using Google Tag Manager

 

This section introduces how to set up GA4 using Google Tag Manager. If you haven't set up Tag Manager on Shopify yet, please refer to the article below.

Setting up GA4 involves the following 4 steps:

  1. Create a new account in Google Analytics 4
  2. Copy GA4's "Measurement ID"
  3. Paste the "Measurement ID" into Tag Manager
  4. Check the configuration in Preview, then publish

Google Tag Manager

Google Tag Manager
Source: Google Tag Manager

Google Tag Manager (referred to below as Tag Manager) is a free "tag management tool" from Google that lets you manage a variety of tags all in one place.

You can centrally manage not only measurement tags such as Google Analytics (referred to below as Analytics) and heatmap tools, but also advertising tags such as Google Ads and social media ads, and tags for adding web chat and chatbots.

Source: https://tsun.ec/blogs/articles/3


Pricing: Free

The article below explains basic information, benefits and drawbacks, and how to set up Google Tag Manager on Shopify.

Create a New Account in Google Analytics

1. Go to Create Account

Go to Google Analytics and click "Create Account"

*You can access Google Analytics here

2. Enter Information in Account Setup

① In Account Setup, enter an account name of your choosing

② Check the data sharing settings

③ Click "Next"

Enter information in Account Setup

3. Enter Information in Property Setup

① Property name

② Time zone

 *It's a good idea to select Japan here

③ Click "Next."

Enter information in Property Setup

4. Enter a Business Overview

① Select your industry *Please select the industry that best fits you

② Select your business size

③ Select your intended use for GA4

④ Click "Create"

Enter a business overview

5. Agree to GA4's Terms of Service

① Read the content carefully and check the checkboxes

 *There are 2 checkboxes

② Click "I Accept"

Agree to GA4's terms of service

Copy GA4's "Measurement ID"

6. Select a Platform

Since this time we're setting it up on Shopify, select "Web"

Select a platform

7. Copy the Measurement ID From the Tag Setup Steps

① Click the "Use existing on-page tag" tab

② Copy the displayed "Measurement ID"

Copy the Measurement ID from the tag setup steps

Paste the "Measurement ID" Into Tag Manager

8. Add a New Tag in Google Tag Manager

① Go to Google Tag Manager

② Click "Add a new tag"

Add a new tag in Google Tag Manager

9. Enter a Tag Name, Then Go to Tag Configuration

① Enter a tag name

 *Here, for clarity, we've entered "GA4"

② Click "Tag Configuration"

Enter a tag name, then go to tag configuration

10. Select "Google Analytics: GA4 Configuration" From the Tag Types

Select "Google Analytics: GA4 Configuration" from the tag types

11. Enter (Paste) the Measurement ID

① Enter the Measurement ID you copied earlier from Google Analytics

② After entering it, click Triggering

Enter (paste) the Measurement ID

12. Select "All Pages" From Triggering

Select "All Pages" from Triggering

13. Click Save

Check that the following are set up correctly, and if everything looks fine, click Save

・The Tag Configuration has "Google Analytics: GA4 Configuration" and the Measurement ID entered

・"All Pages" is set for Triggering

Click Save

Check the Configuration in Preview, Then Publish

14. Click Preview

Next, let's use Preview to check that everything is set up correctly.

Click Preview

15. Enter the URL of the Site Where You're Setting Up GA4, and Click Connect

Enter the URL of the site where you're setting up GA4, and click Connect

16. Check Whether the Tag Is Firing

If the GA4 tag appears under "Tag Fired," it's set up correctly.

Check whether the tag is firing

17. Finally, Click Publish

By following the steps above, you can set up GA4 on Shopify.

Finally, click Publish

Recommended Initial Settings After Setting Up GA4

Change the Data Retention Period to "14 Months"

Making this setting lets you change the retention period for event data and user data (excluding age, gender, and interest category data) from 2 months to 14 months.

Reference: Analytics Help

Unless you have a specific reason to keep it at 2 months, we recommend setting the data retention period as long as possible.

(How to configure)

  1. Click, in order: Admin > Property > Data Settings > Data Retention
  2. Change the event data retention to "14 months" and save
Change the retention period for user data and event data to 14 months

Excluding Home or Office IPs

Making this setting prevents data from internal team members from being saved in GA4.
Compared to actual customers, internal team members tend to access the site more often, and their on-site behavior is also completely different.
For this reason, if internal team members' data gets mixed in, there's a risk that you won't be able to make correct decisions based on GA4 data, so we recommend setting this up early on.

Please refer to the help page below for how to configure this.

How to Link GA4 With Search Console

Benefits of Linking GA4 With Search Console

By linking GA4 with Search Console, you can analyze the customer acquisition and performance of your entire website all at once, including traffic from search engines, and by understanding the relationships between search keywords, ranking, click count, and conversion count, you can plan effective measures from both a customer acquisition strategy and on-site improvement perspective.

How to Link Them

Click Admin in Google Analytics, then click the Search Console link.

Click Admin in Google Analytics, then click the Search Console link.

Click "Link" in the top right of the Search Console linking screen.

Click "Link" in the top right of the Search Console linking screen.

From the Select Search Console property section, click "Choose account."

From the Select Search Console property section, click "Choose account."

Check the box for the Search Console property you want to link with GA4, then click "Confirm."

Check the box for the Search Console property you want to link with GA4, then click "Confirm."

*Please note that properties whose ownership hasn't been verified will not be displayed.

Confirm the selected property is correct, then click "Next."

Confirm the selected property is correct, then click "Next."

Select the web stream, then click Next.

Select the web stream, then click Next.

If the property and web stream you're linking look correct, click Submit.

If the property and web stream you're linking look correct, click Submit.

Once you see a screen like the one above, the linking is complete.

Once you see a screen like the one above, the linking is complete.

Recommended External Tools to Set Up Besides GA4

Microsoft Clarity

Microsoft Clarity
Source: Microsoft Clarity

This is a free behavior analysis tool provided by Microsoft. It's completely free and lets you perform "session analysis," "heatmap analysis," and "recording analysis" on your own Shopify site

Source: https://tsun.ec/blogs/articles/5

Pricing: Free

The article below explains basic information about Clarity and how to set it up on Shopify.

Google Tag Manager

Google Tag Manager
Source: Google Tag Manager

Google Tag Manager (referred to below as Tag Manager) is a free "tag management tool" from Google that lets you manage a variety of tags all in one place.

You can centrally manage not only measurement tags such as Google Analytics (referred to below as Analytics) and heatmap tools, but also advertising tags such as Google Ads and social media ads, and tags for adding web chat and chatbots.

Source: https://tsun.ec/blogs/articles/3


Pricing: Free

The article below explains basic information, benefits and drawbacks, and how to set up Google Tag Manager on Shopify.

Google Search Console

Google Search Console
Source: Google Search Console

This is a free Google service that helps you monitor, manage, and improve your site's ranking in Google search results.

Source: Google Search Console

For a Shopify site focused on driving traffic through SEO, this is an essential service for running a proper PDCA cycle on your SEO efforts.

Pricing: Free

The article below introduces the basics of SEO, SEO measures you can take on Shopify, and recommended Shopify apps for SEO. Please use it as a reference.

SEO Measures You Can Take on Shopify | Also Introducing the Basics of SEO, Benefits and Drawbacks, and Apps

👆️目次はShopifyアプリ「RuffRuff 目次作成」を利用

👆️Table of contents by the Shopify app RuffRuff Table of Contents

Back to blog
1 of 6
  • 【ストアインタビュー後編】やりながら育てるShopify。「野菜をMOTTO」の試行錯誤:モンマルシェ株式会社 河野雄士さん

    [Store Interview, Part 2] Building and Growing ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." An in-depth look at our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its...

    [Store Interview, Part 2] Building and Growing ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." An in-depth look at our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its...

  • 【ストアインタビュー前編】 ECが主戦場でも、ECが目的ではない。「野菜をMOTTO」が貫くEC戦略:モンマルシェ株式会社 河野雄士さん

    [Store Interview, Part 1] Even When E-Commerce ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." Part 1 of our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its e-commerce...

    [Store Interview, Part 1] Even When E-Commerce ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." Part 1 of our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its e-commerce...

  • 【ストアインタビュー後編】取り返しのつかない失敗さえしなければ、全部学びになる。EC戦略と経営哲学:Beverich株式会社 代表取締役 木下慶さん

    [Store Interview, Part 2] As Long as You Don't ...

    テキサス・アユミ

    Kei Kinoshita, President of Beverich, discusses his strategy for splitting roles between Shopify and Amazon, how he uses the RuffRuff apps, and a management philosophy that turns failure into learning....

    [Store Interview, Part 2] As Long as You Don't ...

    テキサス・アユミ

    Kei Kinoshita, President of Beverich, discusses his strategy for splitting roles between Shopify and Amazon, how he uses the RuffRuff apps, and a management philosophy that turns failure into learning....

1 of 3
  • Our Editorial Process

    For readers new to e-commerce and Shopify, we write our articles with care to explain difficult commerce and marketing terms, along with how everything works from building a store through to selling, as “gently,” “clearly,” and “accurately” as we can.

    Learn more 
  • About the information on this site

    The information published here is based on Tsun Inc.’s own experience and research. While we make every effort to publish information that is as “current” and “accurate” as possible, we cannot fully guarantee its contents. Tsun Inc. accepts no liability whatsoever for any damages arising from this site. If you find an error in the information published here, we would be grateful if you would contact Tsun Inc.