At the point when you run an online store on the Shopify stage, and you get numerous orders, you will understand the significance of figuring out How to add Google Analytics tracking code on Shopify.
What is the Google Analytics Tracking Code?
Google Analytics works by including a square of JavaScript code on your pages. At the point when guests see a page on your site, this JavaScript code references a JavaScript document, which then, at that point executes the tracking activity for Google Analytics.
The tracking activity gets information about the page demand in a few different ways. It sends this information to the examination worker through a rundown of boundaries joined to a single-pixel picture demand. The information that Google Analytics uses to convey all the info in your reports originates from these sources:
- The HTTP request of the user
- Browser/system information
- First-party cookies
Adding Google Analytics Tracking Code to Shopify
Checking that you've never enabled Google Analytics for your store before
- Click Preferences
- Check whether there is a text Paste your code from Google here
- Tap on Themes
- Tap on Edit code
- Click {/} theme.liquid
- Search for the Google Analytics tracking tags
Create a Google Analytics account
Enable Google Analytics on your store
- From a new web browser, open Google Analytics
- Tap on Add account
- Tap on Sign up
- Select Website and complete the given information
- Tap on getting Tracking ID
- Tap on I Accept
- Copy the global site tag to your clipboard
- Open your Shopify admin in a new browser tab
- Click Preferences
- Paste your global site tag in the Google Analytics account field
Turn on eCommerce tracking
- Basic eCommerce tracking
- Turn on enhanced eCommerce tracking
Verify if you added the code correctly
- View Real-Time Reports
- Install Google Tag Assistant