Google Analytics is a great tool to analyze your traffic behavior. While Shopify includes an analytics section that is very helpful, Google Analytics offers data at an even more granular level.
First things first, we need you to set up a Google account if you don't already have one. If you use Gmail for your business you should already be set up with one but if not, you can click here.
Once you create the account, you'll use your website URL as your primary domain and you'll see Get Tracking ID. This is the ID that will tell Shopify and Google Analytics they're matched together.
Open your Shopify store homepage and section Online Store. A menu will appear and click Preferences.
Scroll down to the section that says Google Analytics and enter your account ID. This ID will start with UA-XXXXXXXXX-X. Select Save.
Once you save, you'll see a checkbox that says "Use Enhanced Ecommerce." This will allow you to view your Ecommerce metrics within Google Analytics.
Shopify also has great documentation on Google Analytics and how to install it.