9.2 Setup Google Analytics & link it to GTM

Go to https://analytics.google.com/ and login with your Google Account.

If this is the first time you do this, your screen will look like this.

Google Analytics setup

Click on Start measuring.

Google Analytics setup

You’ll need to fill in some Account details about the website you want to analyze. Please use Demo System - ldap, and leave the fields checked, unless you have a specific reason to uncheck them.

Google Analytics setup

Click Next to proceed to Property setup.

Google Analytics setup

Give your property a name. Please use Demo System - ldap. If you wish you can change the timezone and currency to reflect where you are based.

Google Analytics setup

Click Next to proceed to About your business.

Google Analytics setup

Select anything you wish in this page.

Google Analytic setup

Click Create.

Google Analytics setup

The Google Analytics Terms of Service Agreement pops up. Select the country where you are based.

Google Analytics setup

Accept the terms by clicking the checkboxes and clicking I accept.

Google Analytics setup

You are now brought to the Data Streams section within Admin. This is where you can detail what you want to measure.

Google Analytics setup

Select Web.

Provide the website URL of www.aepdemo.net, and the Steam Name of Demo System - ldap.

Google Analytics setup

Click Create stream.

Google Analytics setup

You’ll now see the details of the data stream you have just created.

Google Analytics setup

You need to copy the Measurement ID. This value can be used by Google Tag Manager to manage the Google Analytics tags.

Google Analytics setup

So let’s go back to GTM to store the Measurement ID there.

Go to https://tagmanager.google.com/ by following the URL or by clicking the Product Switcher item at the top right of the screen.

Google Analytics setup

Next choose Tag Manager at the bottom of the list.

Google Analytics setup

You might need to login again, then choose the container in GTM for www.aepdemo.net.

Google Analytics setup

You are now on the overview page of GTM where nothing has been added yet.

Google Analytics setup

If you’re familiar to Adobe Launch you use Extensions, Data elements and Rules. In GTM you use in more or less the same way Tags, Variables and Triggers.
We’re going to create a Tag for Google Analytics, then a Trigger when to fire the Google Analytics tag.

Create the tag by clicking New Tag.

Google Analytics setup

You’ll then see this screen:

Google Analytics setup

Give this tag a name by changing Untitled Tag into Universal Analytics:

Form field Value
Tag Name Google Analytics 4

Then press Tag Configuration, where you can choose from a list of available tags.

Google Analytics setup

Choose Google Analytics: GA4 Configuration. You’ll then see this screen:

Google Analytics setup

This selection gives you a next screen where you can enter as a Measurement ID the one you copied earlier from Google Analytics.

You now need to choose at least one trigger which tells GTM where this tag will fire. Later we will add additional triggers. But for now we will tell it to fire on each page view. Click the Triggering element in your screen.

Google Analytics setup

You will see the following screen with one trigger that you can choose called All Pages. Later we will define new triggers for specific pages.

Google Analytics setup

Click All Pages.

You are brought back to the main screen with your tag configuration displayed.

Google Analytics setup

Click Save to proceed.

Google Analytics setup

You are now again on the overview page, but here you see that there is one change to be published in the workflow.

Google Analytics setup

Click Submit.

Google Analytics setup

First you see this screen where you can fill in descriptive information about the change you’re going to publish. Add a short description and a more describing one.

Google Analytics setup

Now click Publish.

Google Analytics setup

You’re then seeing the versions tab in GTM, showing you the summary of what you just published. This will not be active yet, since we have not yet implemented the GTM tag on the Platform Demo website. We’ll be doing that in a later exercise.

Google Analytics setup

From here you can click back to the Workspace tab, where you can add more Tags, Triggers and Variables, which we’ll be doing in the next Exercise.

Google Analytics setup

Next Step: 9.3 Configure GTM Variables

Go Back to Module 9

Go Back to All Modules

On this page