To add Google Analytics to your Shopify store:
- Go to Online Store > Preferences.
- Under "Google Analytics", enter your Google Analytics Tracking ID.
- Click Save.
Your Google Analytics Tracking ID can be found in your Google Analytics account under Admin > Tracking Info > Tracking Code.
For more information, please see the Shopify Help Center article on Adding Google Analytics to your Shopify store.