π― Whatβs the goal? To enable Google Analytics tracking to your Shopify website | β οΈ Why does it matter? Google Analytics will allow you to get a deeper understanding of your customers. Itβs the most popular tool to measure and analyze all the data related to your store traffic and visitors. |
π Whatβs the result? Google Analytics tracking code is added to your Shopify store. | β When do you do this? Ideally, as soon as you put your store online, only once. |
β
Any special requirements? You should have your Shopify account ready. | πββοΈWho should do it? Owner of the store or the person in charge of analytics. |
π Where this is done: In Google Analytics and your Shopify admin panel
β³ How long will this take? about 10 minutes
Letβs get started, in 10 minutes youβll be ready to measure your shop traffic.
Environment setup:
- We recommend that you use the Google Chrome browser to navigate the web,
- Access to your Shopify Admin panel,
- A Google Account (Gmail, G-Suite).
What is Google Analytics?
Google Analytics is a web analytics service offered by Google that tracks and measures website traffic and allows you to visualize and report it in a very legible way.
Create a Google Analytics Account
- First, go to the Google Analytics website.
- You should sign in with your Google Account or create one
- Click on βSet up for freeβ and on the next page, you will start creating your account.
- You have to name your account – We recommend you put the name of your store so you can easily recognize it.
- You should check all boxes in the βAccount Data Sharing Settingβ.
- Press on βNextβ and choose βWebβ – you are going to measure traffic to the store.
- Press βNextβ.
- Now type your store name.
- Enter your store URL and choose βhttp://β or βhttps://β in a dropdown menu.
Check if you should choose HTTP:// or HTTPS://
Enter your website/store URL in your internet browser, then click just at the left side of the URL Address Bar and check if it is secured or not. In some cases, there will be a red padlock (not secure) or a green one (secure).
If it is secured choose https:// if not – http://
If your website is not HTTPS, we highly recommend you make the switch ASAP as itβs an important SEO Ranking Factory, weβll soon release an SOP to explain how to get a free SSL certificate (to move your site to HTTPS) using Cloudflare.
- Select the βIndustry Categoryβ of your website/store.
- Choose the βReporting Time Zoneβ – in most cases, it will be your time zone, but if your target audience is in another time zone, choose accordingly.
- Click βCreateβ.
- Read Google Analytics Terms of Service Agreement.
- Click βI Acceptβ.
- Then you should be able to see the βSuccessβ message.
- Now you should see your Google Analytics βAdminβ Area (1). Here you can see your Google Analytics βTracking IDβ (2) – Copy it or write it down. There is also a code for your website (4). In case you close it, you can revisit that page by clicking on the βTracking Codeβ (3) under the βTracking infoβ section.
Set Up Google Analytics on your Shopify Store
Enabling Ecommerce Settings in your Google Analytics
- Log In to your Google Analytics account.
- Enter your βAdminβ settings.
- From there, choose βEcommerce Settingsβ.
- Turn on βEnable Ecommerceβ and βEnable Enhanced Ecommerce Reportingβ.
- Then click on βSaveβ.
Adding Google Analytics tracking code to your Shopify Store
- Log In to your Shopify Admin panel. (yourshopifystore.com/admin)
- From the left side menu choose βOnline Storeβ.
- Select βPreferencesβ from the dropdown menu.
- Here you will find the βGoogle Analyticsβ section with a box for your Google Analytics tracking code.
If you didnβt copy your tracking code review previous sections of this SOP and copy it.
- Paste your Google Analytics tracking code into the box.
- Then click on βSaveβ.
- After doing it, the new option will appear in the βGoogle Analyticsβ section of the settings. Scroll up and check βUse Enhanced Ecommerceβ.
- Then click on βSaveβ again.
Check if Google Analytics is running correctly
- First, go to your Shopify Store and leave it open in one tab of your browser.
- In another tab open the Google Analytics website.
- In Google Analytics go to βHomeβ.
- If everything is set right, you should see at least one active user right now (it is you)
This is it! All is set and now you can track and analyze your Shopify traffic.