Site icon Samuel Schmitt

Events and Goals with Google Analytics and Google Tag Manager

Events and Goals with Google Analytics and Google Tag Manager

Events and Goals with Google Analytics and Google Tag Manager

Goals and KPI are crucial for your digital strategy and your measurement plan. It helps you to understand the impact of your actions and give your insight into improvements.

In Google Analytics, you can set goals. Google defines a goal as “a completed activity, called a conversion, that contributes to the success of your business“.

In this tutorial, we will focus on one specific goal: The Event Goal.

Creating Event Goal just with Google Analytics is a bit complicated. It requires changes to the HTML code of your website and add code to the element you want to track.

Luckily, Google Tag Manager is there to save you.

Indeed, with Google Tag Manager, you will be able to trigger events such as “clicking on a link” (and without a line of code) and then analyze the data and interactions from Google Analytics.

In this article, we will see step by step how to:

What is a goal in Google Analytics

Examples of goals include making a purchase (for an ecommerce site), completing a game level (for a mobile gaming app), or submitting a contact information form (for a marketing or lead generation site).

Google Analytics provides 4 types of Goals:

The three first types are easily set up within Google Analytics. For the Event Goal, Google Tag Manager will be your best friend.

Fire events from Google Tag Manager to Google Analytics

Google Tag Manager can help you to fire events to your Analytics console without any line of code.

You have to create new Tags and Triggers. Please follow these steps in Google Tag Manager:

For the Google Analytics Settings, either enter a Google Analytics Tracking ID, or tick the box to configure the tag with a Lookup Table.

For the label, you can notice that I’ve used a built-in variable that will display the label of the anchor. (I explain in the next section where to find the built-in variable).

And now you have to define what user interaction will trigger this event.

For this example, the trigger will be fired when somebody clicks on any links of the website.

Now you have to publish your change and test on your site. Publish first to staging, to be sure that it works as expected.

Where to find the built-in variables in Google Tag Manager?

To enable more Built-In Variables

PS: It seems that many people struggle to find this…

Setup Event Goals in Google Analytics

The beauty of Google Tag Manager is that it fires events to Google Analytics without involving any development – just configuration.

Since we configured the tag and published it the website, Google Analytics is receiving events information each time a user clicks on any link of the website.

If you go in Behavior / Events, you can see that you have some events.

Now let’s create a new Goal in Google Analytics.

For my example, I will setup a simple goal that verify how many users clicked on the link with label Nav of my website.

Go further with Google Tag Manager and Google Analytics

This article is part of on advanced tutorial of Google Tag Manager and Analytics.

In the other articles of the tutorial, we will look at advanced concepts that are often necessary for the configuration of professional websites such as:

I invite you to continue configuring your site and read the guide in detail.

Exit mobile version