Tracking

Introduction to goal setup and conversions in Google Analytics and Google Tag Manager

You may have goals for your marketing channels that you want to reach or keep track of. For example, you might want to keep an eye on how many enquiries you get by phone, by email or through a contact form.
Correct goal setup and conversions in Google Analytics and Google Tag Manager
→ All articles

Note: Universal Analytics shut down in July 2023. Today you use Google Analytics 4 and GA4 tags in Google Tag Manager. The tag type is called "Google Analytics: GA4 Event", and goals are now called key events. The approach with triggers and variables in this guide still applies.

1. What is a goal in Google Analytics?

A goal is a key element in all online data analysis. The goal shows you when a specific action happens. Think of it as an objective you want to achieve and are working towards.

A goal in Google Analytics could be:

  • A purchase the user completes on a webshop
  • A submitted contact form
  • A table booking on your restaurant site
  • A tap on a phone number, email address or another measurable element on your website
  • … and much, much more!

You can set up a goal for anything from page views and clicks to events and table bookings from an external site such as dinnerbooking.dk. Each goal can be given a monetary value. Then you can sort your goals by value and focus on the most valuable conversions.

A goal is different from an event (interaction). An event a user performs on your website isn't necessarily a goal. And it can become one!

Events happen on your site all the time. For example, when a user goes from the homepage to a subpage.

You're unlikely to want to track that event. If a user clicks on a phone number, on the other hand, there may be potential in turning that click into a measurable conversion.

2. What types of goals are there?

In the admin panel in Google Analytics, you choose between four different goal types:

  • Destination → Measures a specific location, e.g. the thank-you page after the user has submitted a form.
  • Duration → A session that lasts for a specific length of time
  • Pages per session → A user who views a specific number of pages
  • Event → An action you have defined as an event, and which is triggered.

We often recommend "event" as the goal type. It gives you the best and most accurate picture of your tracking.

Why, you're probably asking?

At Amplify, we often meet new clients with errors in their existing goal setup. That applies to both PPC and SEO. The setup has typically been done by their previous "data-driven" agency.

Many people choose the easy option when it comes to conversion tracking. They track via a URL destination or a click.

The idea is fine in itself. The problem arises when the URL or the click itself can be triggered several times. Then the number of conversions in Google Analytics can easily differ from the number the website has actually received.

An example: if the user can refresh a "thank-you-for-your-enquiry" page several times, each refresh automatically triggers a conversion in GA. The same can happen if you track forms via a clickable element without first checking that the form has been submitted.

So remember to check and validate your goal setup to avoid errors in the future. In short, it can have big consequences if your conversions aren't correct.

Here's an example from one of our clients, Copenhagen Airtaxi. An external agency had set up their goals, and unfortunately with errors ↓

Google Analytics audience

Let's go through what we see in the image:

First of all, the setup could track the number of general enquiries. The intention had clearly been something else. Other goals had been set up at the same time to track other types of form submissions.

If we dig a little deeper into the setup, this information appears:

The setup suggests that the form tracking is based on a destination. So it counts visits to a page and not the actual number of submitted enquiries. That can be critical. A destination page can never tell you for certain that a form has been submitted. Perhaps the user forgot to fill in one of the fields. Or the user refreshes the page twice. Then you're actually telling Analytics that two enquiries have come in, even though only one was sent.

In the example above, a user who lands on the destination page without filling in a form also counts as a conversion. In reality, that's an error. The same can happen if you track your conversions via a click on a button, even though the form is never submitted.

The reason is that the setup tracks via clicks or destinations. Unfortunately, that gives inaccurate data compared with the real number of enquiries.

Want to set up correct tracking of form enquiries on your website? Then first of all you need to find out which form provider you use. Is it Formstack, NinjaForms or something else? Then you can start the setup based on the provider you have.

To round off the example: we were allowed to set up the various goals correctly, so they matched the actual numbers. Surprisingly, this gave a more accurate picture of the number of conversions, even though the figure is actually lower.

Google Analytics form

If we look at the goal setup for air taxi quotes, it has also changed. It no longer converts via a specific URL destination. Now it happens via an event. The setup looks like this:

Google Analytics setup

The event is based on the contact form on the website being built in HubSpot. That's why we need to track it via the specific HubSpot form intended for air taxi enquiries. The website has several different HubSpot forms. So we need to find the ID of the correct form and enter it under "Label" in the goal setup. That way, we tell Google Analytics that a goal is completed when a specific form is submitted. In this case, it's air taxi enquiries.

To track enquiries via the HubSpot form, we used Google Tag Manager. Here you can insert your own HTML code, tags and anything else relevant to a website when it comes to tracking. In this case, we inserted a special HTML code designed to track enquiries from HubSpot forms.

3. Working with Google Tag Manager: why?

Google Tag Manager is a must if you want to know what your users do. The tool has become more relevant in online marketing in recent years. It's free. It also works with Google Analytics, among others (and many other Google tools!), and it makes everything easier for you when you want to set up correct tracking.

You can also insert your own JavaScript or HTML code without breaking anything on your website. More on that later!

So why should you use Google Tag Manager?
The answer is simple. You add, adjust and create goals in a few clicks and avoid having to copy a code snippet into your site yourself.

Google Tag Manager is safer to use. It's also generally easier when you need to create goals. Everything runs automatically. So you don't have to enter each individual goal in Google Analytics yourself.

Let's take a short, simple example.
Your website has two phone numbers users can call: one for private customers and one for business. As an engaged business owner, you want to keep track of how many people click on your phone numbers.

If you only use Google Analytics, you have to set up each goal manually. If you also use Google Tag Manager, you only set it up once. After that, Tag Manager creates different goals based on specific clicks.

Goals for clicks on email addresses and phone numbers are therefore quite simple to set up. Read more about it below ↓

4). Tracking clicks on phone numbers and email addresses

Click goals are among the easiest goals to create in Google Analytics. For example, clicks on an email address or a phone number on your website. With Google Tag Manager, you automate the process, so you don't have to create a goal for every single phone number or email address.

First you create a tag and then a trigger. The tag determines what it should "listen" for on your website. Here, it's clicks on a phone number or an email address. The trigger tells it when to fire the tag. That happens when someone clicks on a specific link with a phone number or an email address.

Tag type: Google Analytics: Universal Analytics

Category: Call

Action: Click

Label: {{Page Path}} (Optional. It shows you where the user clicks on the link, e.g. the phone number on the homepage)

Once the tag is ready, you set up the trigger. That's straightforward too:

Trigger type: Click, All Elements

When: Some Clicks

Click activation: When Click URL contains "tel:" (for tracking email, use "mailto:")

Once tracking is running in Google Tag Manager, you create the goal in Analytics. Earlier in the article, we described the difference between an event and a goal. In short, you can give a goal a value in kroner. That makes sense if you think a phone call or a table booking at a restaurant is worth a certain number of kroner. The value is optional.

You create a goal in Google Analytics under "Admin" -> "View" -> "Goals". Click "New goal" and choose "Custom" as the type under goal setup. Under goal description, you give the goal a name and choose the type. Here we're tracking events on a website, so we choose that type.

Using the example from before, you set up the goal like this:

A goal for tracking email or phone is quite straightforward. Once the setup is correct, you can follow how many conversions come into Google Analytics. Here's an example:

Clever, right?

Click on the goal to see more details. Here you can see where and when the user clicked on the phone number on your website. You can also give the goal a value in kroner and work out how much a conversion is worth to you.

For calls and emails, a value may make less sense. For other goals, such as a table booking, it definitely becomes relevant.

Among other goals, completed forms are important to remember. You'll find them on a great many websites, and they can sometimes be hard to track correctly. We'll give you an introduction and show you the pitfalls to watch out for.

5. Tracking form submissions

You can also see how many users fill in one or more contact forms on your website. This is harder to track, because it depends on which form provider you use. With Google Tag Manager, you can solve it relatively quickly.

Google Tag Manager actually has its own trigger for tracking form submissions. We don't recommend it.

Why, you ask?

The trigger is called "Form Submission" and is built to track the different types of forms you can install on a website.

In our assessment, it only works one time in ten. It depends entirely on which form you have on your website. For example, it doesn't work with the popular Formstack or NinjaForms, because the trigger simply doesn't recognise them.

Unfortunately, we also see a pattern among our new clients. A previous agency set up the contact form tracking incorrectly from the start and never tested whether it works.

6. What else to watch out for

In this blog post, you've seen how to set up correct goals quickly and easily. You track conversions through Google Tag Manager and Google Analytics working together.

That doesn't make the setup flawless. The number may well differ from the enquiries you've actually received.

One of the biggest reasons is the growing use of Adblocker. It blocks ads and also tracking. The figure in Google Analytics may therefore well be lower than the real number. A user with an ad blocker can still submit a form or click on a phone number. Google Analytics just doesn't pick it up as a goal, because the ad blocker blocks it.

There isn't much you can do about it. Many users protect their privacy when they browse the internet. So always treat the figures in Google Analytics as variable and not 100% accurate.

Get help with your SEO strategy

Well begun is half done. Badly begun is… well, not good. If you lack the resources to put together a well-thought-out SEO strategy, you're always welcome to write to us at seo@amplify.dk. As a data-driven SEM and SEO agency, we're always ready to help you with goal setup.

Ready to grow? Let’s talk

→ Book a chat