How to Set Up Google Analytics

Written by Coursera Staff • Updated on

Learn how to set up Google Analytics on your website or mobile app.

[Featured image] A Woman wearing a blue buttoned top sits at her dining table and browses online for how to set up Google Analytics for her website.

Google Analytics is a valuable tool that provides insight into who is using your website or app and how they are interacting with it. It can tell you where your users are coming from, how long they are on your website, what pages they visit, and more. You can use Google Analytics to help you decide which growth strategies are working, what features your users appreciate, and which marketing strategies are making a difference. In this tutorial, you will learn how to set up Google Analytics for a website or mobile app. 

How to set up Google Analytics

Here is a quick summary of the steps you will need to complete to set up Google Analytics on your website or mobile app: 

  1. Create a Google Analytics account.

  2. Create a property.

  3. Add a data stream. 

Let’s take a closer look at these steps and what you’ll need to accomplish them.

Step 1: Create an account.

Go to the Google Analytics home page and sign in to your Google account. If you don't already have a Google account, click on Create Account and follow the instructions.

Once you are signed in, click on the Start measuring button to create a Google Analytics account.

Alt text: Screenshot of the Google Analytics home page

You’ll need to provide an account name and decide what data you will share with Google. When you have completed this step, click Next

Alt text: Google Analytics Create an account page

Step 2: Create a property.

After clicking Next, you will see a prompt to create your first property. Enter the name of the property, the time zone you will collect data in, and the currency recorded on the website. 

Alt text: Google Analytics Create a property page

Once you click Next, choose an industry category and a property size.

Alt text: Screenshot of Google Analytics Describe your business page

Click Next again, and specify how you use Google Analytics on the following screen. Depending on your business or campaign objectives, you may want to generate leads, drive online sales, raise brand awareness, examine user behavior, or get baseline reports. You can choose one, more than one, or all of these options. You can also choose to get baseline reports, but this option cannot be combined with any of the other options.

Alt text: Screenshot of the Google Analytics Choose your business objectives page

Step 3: Click ‘Create.’

Once you are ready, click Create and accept the Analytics Terms of Service and the Data Processing Amendment.

Step 4: Add data stream.

To start collecting data, you will need to set up a data stream. Choose whether you will be tracking an iOS app, an Android app, or a website. Below, our tutorial is split into two tracks. First, we’ll detail the steps for setting up Google Analytics on a website, and then we’ll address setting it up for a mobile app. 

Alt text: Screenshot of Google Analytics Start collecting data page

For a website:

If you want to learn how to set up Google Analytics on a website, follow these steps:

Step 5: Enter the URL and a name for the stream.

This information will help you separate one stream from another. 

Alt text: Screenshot of Google Analytics Set up data stream page

Step 6: Enable enhanced measurement.

The last step before you create a stream is to enable or disable enhanced measurement, which collects additional data in Google Analytics. You can also come back later and choose to adjust which measurements you collect in the future, but you won’t be able to gain new data from the past. Click Create stream.

Step 7: Installing Google Tag ID

Before you can see your Google Analytics data, you must install your Google Tag ID on your website. While many CMS and website builders offer Google Analytics integrations, you can also manually install the Tag ID in your website’s HTML. This process will vary depending on how you created your website, but it's the last step to allowing Google Analytics to communicate with it. 

For an Andriod or iOS app: 

If you want to learn how to set up Google Analytics on an Android or iOS app, follow these steps: 

Step 5: Enter the identification information. 

For an iOS app, the identification information will include the iOS bundle ID and the App Store ID. For an Android app, you’ll need the package name.

Alt text: Screenshot of Google Analytics Set up mobile app page

Step 6: Download config file and Google Analytics for Firebase SDK.

Follow the onscreen instructions to download the config file and to add Google Analytics for Firebase SDK. 

Step 7: Run app for verification.

This will confirm that you set up the SDK properly and that Google can communicate with your app properly. 

Step 8: Click ‘Finish.’

Simply click Finish, and you’ve successfully learned how to set up Google Analytics.

Learn more about Google Analytics

If you’re ready to take the next step and learn more about Google Analytics, consider earning your Google Digital Marketing & E-commerce Professional Certificate. This beginner-level, seven-course series will help prepare you for a marketing coordinator or e-commerce associate role, learning skills in email marketing, display marketing, e-commerce, and search engine optimization.

Keep reading

Updated on
Written by:

Editorial Team

Coursera’s editorial team is comprised of highly experienced professional editors, writers, and fact...

This content has been made available for informational purposes only. Learners are advised to conduct additional research to ensure that courses and other credentials pursued meet their personal, professional, and financial goals.