DE

EN

Blog Post

Web analytics

Thorsten

Abrahamczik

published on:

Manage your online marketing tags centrally with Google Tag Manager

Table of Contents

No table of contents available

Google Analytics Tracking: How It’s Done Today

These days, many businesses use either the classic Google Analytics or the newer Universal Analytics. However, only a few complement their Universal Analytics tracking with Google Tag Manager to manage their online marketing activities more easily. When various online marketing campaigns—such as Google AdWords or other third-party remarketing services—are used alongside website tracking, the required JavaScript tags are usually implemented manually by IT. As a result, you and your company are most likely faced with the challenge of having to review the implementation of every single new tag.

It’s no surprise that implementing your online marketing measures often falls on IT, as this has long been the standard approach.

Yet, as you know, this process can be quite tedious. IT needs to be briefed first and then reviewed. Issues frequently arise because the implementation didn’t go quite as planned. Consequently, you have to step in again, identify the problem, and send new instructions back to IT to fix it.

Google Tag Manager provides a welcome solution, helping you bypass the need for IT assistance in many cases.

Google Tag Manager: How the New Tool Works

At first glance, Google Tag Manager is simply a web interface from Google where various tracking activities can be managed centrally. It acts as an extension of Universal Analytics, moving the management of all tracking off the site itself. In addition, it can handle supplementary online marketing tools like Google AdWords, DoubleClick, or third-party solutions.

[caption id="attachment_13672" align="alignnone" width="643"]

Google-Tag Screenshot

The Google Tag Manager Code[/caption]

First, the Tag Manager code needs to be embedded on your website. Once in place, it takes care of controlling and managing your various tags. A tag is simply a specific snippet of JavaScript code. Because Tag Manager handles this, you’ll rarely need to ask IT to modify the source code—aside from initially adding the Tag Manager snippet itself. Instead, marketing managers and web analysts can make changes to tags and tracking on their own.

To make the most of Tag Manager and ensure everything runs smoothly, let's take a closer look at how it works. It’s essentially built on 6 key components:

  • Account

  • Container

  • Data Layer

  • Tag

  • Rules

  • Macro

Account:

An account essentially manages access and logins. Much like the setup in Google Analytics, you should create one account per company. Within this account, you can then manage containers for individual websites. This keeps your Tag Manager organized and easy for everyone to navigate.

Container:

Inside an account, you should set up one container per website. This container houses and manages all the different tags required for Google Analytics tracking and any third-party tools.

The Google Tag Manager code itself is also managed at the container level—this is the code needed to enable tracking via Tag Manager. Once this code is added to your site's source code, virtually all tracking can be controlled without needing to insert additional code on the page. It’s also best practice to complement the Tag Manager code with the Data Layer code (detailed below), which significantly unlocks Tag Manager's full potential.

The code itself should be placed immediately after the opening tag. You don't need to worry about slower page load times; the code loads asynchronously, meaning it runs alongside your regular code without affecting performance. Important note: Once the code is installed and your first tags are active, be sure to remove their counterparts from the site's source code to avoid duplicate data collection. This applies whenever Google Analytics data might be sent twice to the same property. Just ensure Tag Manager data flows into a separate property or that the legacy Google Analytics code is completely removed from the page source.

In general, when migrating, it’s best to set up a separate property for Tag Manager so you can compare the new data against the "old" data. This helps you confirm that your new tracking setup is working flawlessly.

Data Layer:

The Data Layer acts as a bridge between your website and Tag Manager. Essentially, it handles communication between the site and the tags configured within a container.

To use the Data Layer, simply place the following code snippet before the Tag Manager code on your page.

Data-Layer Code Screenshot

With this code in place, you can send details about pages, events, categories, transactions, and more directly to Tag Manager, which then passes the data on to Google Analytics. Data can be transmitted either dynamically or statically.

Dynamic transmission is handy for things like events, where it's not yet clear on initial page load what content will need to be passed to Tag Manager. Static transmission, on the other hand, is used when page content is already known upfront—for example, in e-commerce tracking where product details are predefined. In that scenario, the necessary data is pushed directly into the Data Layer.

Tag:

Tags allow you to collect a wide range of metrics from your website. As mentioned earlier, a tag is a snippet of JavaScript that passes information to third parties. For instance, Universal Analytics uses a tag to capture metrics like pageviews and send them to Google Analytics servers, where the data is processed and displayed in your reports. Tags can also be used for remarketing, tracking custom events, and much more.

Because Tag Manager relies on just a single snippet of code on your actual website, any tag you want to use can be managed directly within Tag Manager. There are plenty of built-in templates available—like those for Universal Analytics, AdWords, and DoubleClick—plus you can easily add custom tags and third-party solutions.

Rule:

Rules in Tag Manager define exactly when tags should fire. They are managed at the container level, meaning you can apply them to multiple tags at once. For example, a rule might specify that a tag should fire on all pages of a domain. Alternatively, you could set a tag to fire only on a specific page, or only when a user arrives from a particular referrer. You can also use events and other triggers as rules.

Macro:

Macros store data for Tag Manager to process. They collect data from the website's Data Layer and hold onto it until it's ready to be used. Since data can come from many different places across a website—such as JavaScript, events, or the DOM (Document Object Model)—there are various types of macros available to capture it. Common examples include:

  • URL Macro

  • Custom Event Macro

  • JavaScript Variable Macro

How We Can Help You

If you're still using classic Google Analytics and want to upgrade to the latest Universal Analytics tracking, we’re here to help you plan and implement the entire setup. We’ll work with you to develop a tailored tracking concept designed specifically for your website, clearly defining which metrics should be tracked on each page. This transition is also a great opportunity to review your current tracking strategy and optimize it where needed.

Recently, it has become impossible to create new properties for the classic tracking code, so switching over to the new Google Analytics tracking soon is highly recommended. Get in touch with our experts today—we’d love to help you optimize your tracking to boost your leads and conversions.

Address

Bülowstraße 66

Aufgang D3

10783 Berlin

Legal Information

Newsletter

Address

Bülowstraße 66

Aufgang D3

10783 Berlin

Legal Information

Newsletter

Address

Bülowstraße 66

Aufgang D3

10783 Berlin

Legal Information

Newsletter