[Shopify] サイトにGoogle Analytics(アナリティクス)を導入・設定する方法 - EC PENGUIN

[Shopify] サイトにGoogle Analytics(アナリティクス)を導入・設定する方法

In this article, we will show you how to install and apply Google Analytics to your Shopify site. Although it is possible to analyze access to the Shopify site using the store analytics, I would prefer to use Google Analytics, which I am familiar with. So we decided to use Google Analytics.

The rough flow is as follows.

  1. Register an account with Google Analytics
  2. Obtain tracking code
  3. Embed it in your Shopify store

Sign up for Google Analytics

Create a Google account

If you do not have a Google account, create one here.


If you have a Gmail account, you may use that.

Register with Google Analytics

Next, register with Google Analytics.


The following information is required for Analytics registration for your reference.

  • Tracking Target

    The target for tracking is the "website" if it is a Shopify site.

  • Account Name

    You can use any name you like, such as your Shopify site name, company name, or store name.

  • Website Name

    This should be the name of your Shopify site. For my site, it would be EC PENGUIN.

  • Website URL

    Be sure to enter the correct URL for your website. It is the domain name.



  • Type of Business

    Choose a product that most closely matches the products you sell on your Shopify store, or if you have an e-commerce store type of business, that may be fine as well.

  • Reporting time zone

    Which time zone to use. If you are in Japan, choose Japan. Please note that if you select overseas, the day will not start at midnight Japan time.

  • Data Sharing Settings

    If there is a field that does not require data sharing, select it, but basically I think you can leave it as recommended.

You are now registered for Analytics.

Obtain an Analytics tracking code.

Next, obtain the Analytics tracking code.

Go to the Analytics administration page → gear symbol (Settings) at the bottom of the sidebar → Tracking Information → Tracking Code.

トラッキングコード アナリティクス shopify

This <! - Global site tag and end with </script>. Do not close the tab.

Embed Analytics in your Shopify site

Next, let's embed the previous analytics code into the Shopify site.

Admin → Online Store → Various Settings → Google Analytics

Google analytics shopify 管理画面

Let's paste the tracking code mentioned earlier into this "Google Analytics Account" section. Now hit save and Google Analytics is applied! (By the way, please keep in mind that it may take up to a day for this to take effect.)

Using Analytics Extended E-Commerce

拡張Eコマース Shopify アナリティクス

After saving, use extended e-commerce. There is a check box that says "Use extended e-commerce", so click on that as well.

By checking the "Extended E-commerce" checkbox, you will be able to retrieve e-commerce specific information such as number of purchases and revenue.

Don't forget to set this up on the Google Analytics side under "eCommerce Settings".

アナリティクス 拡張Eコマース Shopify

How to install and configure Google Analytics on your Shopify site Summary

This is how to embed Google Analytics on your Shopify site.

Now you can track your Shopify store traffic and user behavior! There should be many hidden hints to increase sales, such as where visitors came to the site from and at what time of the day they are most likely to visit.

Making hypotheses and verifying them is also a fun part of site management ☺️.

Google Analytics also has a dedicated application that can be viewed from cell phones, making it possible to check access when you wake up in the morning.

Thank you for reading to the end!

Have a great day!


Contact form