How to add Google Analytics code + enhanced ecommerce to your site

How to add Google Analytics to your website + Turn On Enhanced eCommerce

Published 8/5/2021

Reading Time: 5 minutes

Google Analytics is a billion dollar software that you can install and use on your website for free!

Below we go over how to add Google Analytics to your website. If your using a platform such as; WordPress,  Shopify, Squarespace, Wix, etc, they offer either a module or plugin that will add this code for you. All you will need is the tracking ID, which we point out below.

Create Your Google Analytics Account

The first step you will need to do if create a Google Analytics account. This requires you to have a Google or Google connected account.

Here’s the link to do so:

Once you login for the first time you should see the page below. If you are taken directly to the account page, this means you already have a Google Analytics account.

Create google analytics account page

Click “Start Measuring”

Next you will be taken to the Step 1: property set up page.

You’ll want to enter your site’s or business name for the account name. 

As well as you’re able to select which type of data you wish to share with Google.

Then click “Next”

Next you will enter your business name or website URL, whichever is easier for you to remember. This name will be how you or your internal team know which website is for this property. 

You are also prompt to change your country, timezone, as well as main currency used.

Click “Next” when you’re ready to continue.

Step 3 will go over your business qualities. 

Select your industry category, your businesses size, as well as how you intend to use Google Analytics.

Most will be using the tool to Measure customer engagement with a site or app (the first checkbox).

Once you click “Create” you will need to agree to Google Analytics terms of service.

Your account is now ready to connect to your site.

Connect Your Google Property

You should now be redirected and on the Google Analytics platform.

To finish creating your property you will need to identify your data stream (Web, or App).

For the sake of this article we are going to discuss using a website.

We will click “Web”

Google Property Set up Step4

Next you will set the URL of your website and website name (or business name)

If for whatever reason you don’t want to measure some events, you can click the gear and toggle each item.

Then click “Create Stream”

Google Property Set up Step5

Your Google Analytics Site Tag

If you’re following along from above you will be automatically taken to this next section.

This section will display your URL, Site name, and Measurement ID (Tracking ID).

Midway down the page you’ll find “Tagging Instructions”. If you click to expand the “Global Site Tag (gtag.js)” section you will see the tag for your site.

Simply copy this by highlighting and copy, or you can click the “copy” button on the right side of the code (2 rectangles).

Now you are ready to add this code to the head of your website.

Google Analytics Site Tag

How to find your Google Analytics Global Site Tag

If for some reason you’ve misplaced your Google Site Tag, or moved platforms you can easily retrieve it at anytime.

Simply login to your Google Analytics and navigate to the “Admin” link located on the left hand menu bottom.

For more information on the “Admin” section you can view Google’s Docs:

Under your site’s property select “Data Streams”

Then midway down the page you’ll find “Tagging Instructions”. Click to expand the “Global Site Tag (gtag.js)” and you will see the tag for your site. (Shown in the image above)

You can copy this by highlighting and copy, or you can click the “copy” button on the right side of the code (2 rectangles).

How to Turn on Enhanced eCommerce for Google Analytics GA4

If you are using the Google GA4 tracking code you will need to implement a few events using the Google Tag Manager. 

By default the GA4 tracking code will track, page views and interaction. However, if you’re running an ecommerce store you will also need to know these events; Add to cart, Remove from cart, Promotion code usage, Checkout initiated, and Users who made the purchase.

You can view the official documentation here:

If you’re unfamiliar with implementing or using Google Tag Manager it’s highly recommended to use a web developer.

That said if you’re using a platform such as; WordPress, Shopify, Magento, etc, there is likely a prebuilt module/extension which can accomplish this for  you.

If you have any questions or need assistance regarding this process please Contact Us Below

How to add additional users to your Google Analytics property

Adding a new user to your Google GA4 property is about the easiest step in this guide. 

When you’re logged into Google Analytics navigate to the “Admin” section on the left hand menu.

Navigate to the Property section and click “Property Access Management”. 

Google GA4 add users

From here a flyout popup will show where you will click the big blue plus sign in the upper right, and select Add User.

You will add their email (which needs to be tied to a Google account, Gmail etc.).

You can also select the permissions or access you wish this user to have. For example if you hire someone to do your SEO or paid ad management they don’t need to be able to Manage Users.

Once you’ve gone through your permission hit the “Add” button in the upper right, and this user will now have the access you’ve provided.

Google GA4 add new user

Contact us

If you'd like additional help please contact us today.

Marketing, Development and Strategic Planning

© 2020 All Rights Reserved eCommerce Solutions