Installing Google Analytics on your Shopify Store in 2022
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.
1. Create a Google Analytics Account
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.
2. Get your Tracking ID
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.
3. Find the Analytics section in Shopify
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.
4. Enable Enhanced Ecommerce
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.
<div class="dynamic-checkout__content" id="dynamic-checkout-cart" data-shopify="dynamic-checkout-cart"> <shopify-accelerated-checkout-cart wallet-configs="[{"name":"shop_pay","wallet_params":{"shopId":29900368,"merchantName":"The Shop Tinkerers","personalized":true}},{"name":"paypal","wallet_params":{"shopId":29900368,"countryCode":"US","merchantName":"The Shop Tinkerers","phoneRequired":false,"companyRequired":false,"shippingType":"shipping","shopifyPaymentsEnabled":true,"hasManagedSellingPlanState":null,"requiresBillingAgreement":false,"merchantId":null,"sdkUrl":"https://www.paypal.com/sdk/js?components=buttons\u0026commit=false\u0026currency=USD\u0026locale=en_US\u0026client-id=AfUEYT7nO4BwZQERn9Vym5TbHAG08ptiKa9gm8OARBYgoqiAJIjllRjeIMI4g294KAH1JdTnkzubt1fr\u0026intent=capture"}}]" access-token="501064acf5007febc8aacdcd65a58195" buyer-country="US" buyer-locale="en" buyer-currency="USD" shop-id="29900368" cart-id="4c9440b62086f8a4e7183909d6c97c24" enabled-flags="["2d75a54c"]" > <div class="wallet-button-wrapper"> <ul class='wallet-cart-grid wallet-cart-grid--skeleton' role="list" data-shopify-buttoncontainer="true"> <li data-testid='grid-cell' class='wallet-cart-button-container'><div class='wallet-cart-button wallet-cart-button__skeleton' role='button' disabled aria-hidden='true'> </div></li><li data-testid='grid-cell' class='wallet-cart-button-container'><div class='wallet-cart-button wallet-cart-button__skeleton' role='button' disabled aria-hidden='true'> </div></li> </ul> </div> </shopify-accelerated-checkout-cart> <small id="shopify-buyer-consent" class="hidden" aria-hidden="true" data-consent-type="subscription"> One or more of the items in your cart is a recurring or deferred purchase. By continuing, I agree to the <span id="shopify-subscription-policy-button">cancellation policy</span> and authorize you to charge my payment method at the prices, frequency and dates listed on this page until my order is fulfilled or I cancel, if permitted. </small> </div>
Choosing a selection results in a full page refresh.