If you have a Google Analytics account, you can embed Google’s tracking code on your online store.
— Read on help.shopify.com/manual/reports-and-analytics/google-analytics