7
Tracking & Analytics
Blog

Setting Up Google Tag Manager

NYBA expert
NYBA expert
NYBA expert

Reading time:

7

minutes

google-tag-manager-einrichten
How do I set up Google Tag Manager?

Getting Started with Google Tag Manager

Do you want to set up Google Tag Manager for the first time and manage tags on your website? No problem: just follow the steps in this guide to get started.

What is a Google Tag? What is an Account? What is a Container?

  • A tag is a small piece of code placed on your website that allows you to measure, personalize, and optimize user interactions.
  • An account in Google Tag Manager is your personal access to the tool, similar to other Google products.
  • A container is a collection of tags, triggers, and variables that you manage for your website or mobile app.

1. Create a New Account and Container

The first step is to create a new account and container:

  • Go to Google Tag Manager and click on the “Accounts” tab > “Create Account.”
  • Enter an account name and select the country for the account.
  • Provide a descriptive container name and choose the container type.
  • Click “Create” and accept the terms of service.
    Now you have a new container that can be installed on your website or mobile app.
How do I set up Google Tag Manager: Create a New Account and Container

2. Install the Container

  • In Google Tag Manager, go to “Workspace.”
  • Copy the container ID (in the format GTM-XXXXXX) and click it to open the installation dialog.
  • Add the <script> code snippet inside the <head> section of your website’s HTML, as close to the opening <head>tag as possible (but below any dataLayer declarations, if present).
  • Add the <noscript> code snippet immediately after the opening <body> tag.
  • Remove any hardcoded tags from your code to prevent duplicate firing.

3. Add Tags

Once the container is installed, you can add new tags:

  • Go to “Tags” in your workspace, click “New,” name the tag, and configure it.
  • Choose a tag configuration and a trigger.
  • Optionally, add a note to document your setup.
How do I set up Google Tag Manager: Add Tags

4. Test Tags

After adding tags, make sure they work correctly:

  • Use the Preview mode to check if tags fire properly.
  • If errors occur, troubleshoot using Tag Assistant.

5. Publish Tags

When your tags work as intended:

  • Click “Submit,” review the configuration, and provide a version name and description.
  • Click “Publish”: your tags are now live!

Triggers

Triggers in Google Tag Manager define the conditions under which your tags fire. They can respond to events such as clicks, pageviews, or form submissions.

To create a trigger:

  • In the container dashboard, click “New Trigger.”
  • Choose the trigger type that matches your event and configure the conditions.
  • Click “Save.”
How do I set up Google Tag Manager: Triggers

Variables

Variables in Google Tag Manager are values used in tags and triggers. They can store and retrieve information such as a form field value or the current page URL.

To create a variable:

  • In the container dashboard, click “New Variable.”
  • Select the variable type that matches the data you want to store and configure it.
  • Click “Save.”
How do I set up Google Tag Manager: Variables

Overview

The overview page in Google Tag Manager provides a central hub to check the status of your containers, tags, triggers, and variables. Here, you can:

  • See which tags are active
  • Review which triggers and variables are configured
  • Track changes to your container
  • Restore previous versions if needed
How do I set up Google Tag Manager: Overview

Linking Google Tag Manager with Google Analytics

  1. Create a new tag in your Google Tag Manager account.
  2. Select the tag type: “Google Analytics: Universal Analytics” or “Google Analytics: GA4 Configuration”(depending on the version of Google Analytics you’re using).
  3. Enter your Google Analytics Tracking ID (found in your Analytics account).
  4. Select a trigger that determines when the tag will fire (e.g., “All Pages” for a pageview tag).
  5. Click “Save” and then “Submit” to publish your changes.

Troubleshooting and Debugging

  • If a tag does not fire correctly, use Preview mode in Google Tag Manager to see which tags are firing on a page and which are not.
  • The Google Tag Assistant Chrome extension is another helpful troubleshooting tool. It shows which tags are firing on a page and whether they are working correctly.
  • If you have issues setting up a tag, double-check that all required fields are filled in correctly and that the trigger is properly configured.

Advanced Features

  • Deploy for websites: Manage measurement and marketing optimization tags (e.g., Google Ads, Google Analytics, Floodlight, third-party tags) on your site without editing code.
  • Deploy for mobile apps: Manage analytics and ad tools in your apps without rebuilding app binaries or resubmitting them to app stores.
  • Server-side tagging: Move tag code from your website/app to the cloud, improving performance and security while serving assets from your own domain.
  • Custom templates: Create your own tag and variable templates, submit them to the Community Template Gallery, and make them available globally.
  • Automate with the REST API: The Google Tag Manager API gives authorized users access to Tag Manager configuration data. Use it to manage accounts, containers, container versions, tags, rules, triggers, variables, and user permissions.

These advanced features give you greater control and flexibility when managing tags on your website or mobile apps. They allow you to implement tags more efficiently while improving the performance and security of your digital platforms. It’s recommended to explore these features once you’re comfortable with the basics of Google Tag Manager and ready to level up your tag management skills.

‍

Real ChatGPT ads from NYBA campaigns, with results

NYBA has been running ChatGPT ads for live events in Germany since the launch in August 2026. Two examples, shown the way they appear inside the ChatGPT answer, with their first results:

ChatGPT ad for Paul Kalkbrenner at Parkbühne Wuhlheide Berlin, sponsored card inside the ChatGPT answer, NYBA
8,202
impressions in the first two weeks
1.85%
click-through rate
Paul Kalkbrenner, Parkbühne Wuhlheide Berlin 2027. Sponsored card inside the ChatGPT answer.
ChatGPT ad for Cirque du Soleil ALIZÉ Berlin, sponsored card inside the ChatGPT answer, NYBA
9,471
impressions in the first days
2.3%
click-through rate
2.81%
CTR of the best motif
Cirque du Soleil ALIZÉ, Berlin. Sponsored card inside the ChatGPT answer.

What Meta ads for events look like: real NYBA examples

Three ads from live campaigns run through NYBA OS, shown the way fans see them on Facebook and Instagram: two feed ads and a video ad.

Facebook feed ad for Cirque du Soleil ALIZÉ, NYBA
Facebook feed, Cirque du Soleil ALIZÉ
Facebook feed ad for Blue Man Group, NYBA
Facebook feed, Blue Man Group
Video ad, Cirque du Soleil ALIZÉ

What Google ads for events look like: real NYBA examples

Real previews from live Google Ads campaigns run through NYBA OS: search ads with image, Performance Max in the YouTube feed, in Discover and on the Display network, and YouTube Shorts. One Performance Max asset group feeds all of these placements.

Google search ad with image for ANYMA ÆDEN Madrid 2026, NYBA
Search ad with image, ANYMA ÆDEN Madrid
Google search ad with image for Cirque du Soleil ALIZÉ, NYBA
Search ad with image, Cirque du Soleil ALIZÉ
Google Performance Max ad in the YouTube feed, Cirque du Soleil ALIZÉ, NYBA
Performance Max in the YouTube feed
Google Performance Max ad in Discover, Cirque du Soleil ALIZÉ, NYBA
Performance Max in Discover
Google YouTube Shorts ad, Cirque du Soleil ALIZÉ, NYBA
YouTube Shorts
Google Display network ad in an article, Cirque du Soleil ALIZÉ, NYBA
Display network, in article

Every ad placement at a glance

Real ads from campaigns run through NYBA OS, sorted by platform: Google and YouTube, Meta, TikTok, ChatGPT and Snapchat. Tap a platform to expand it.

Google and YouTube6 placements
Google Ads Search ad with image, Cirque du Soleil ALIZÉ, NYBA
Search ad with image
Google Ads Performance Max, full screen, Cirque du Soleil ALIZÉ, NYBA
Performance Max, full screen
Google Ads Performance Max in the YouTube feed, Cirque du Soleil ALIZÉ, NYBA
Performance Max in the YouTube feed
Google Ads Performance Max in Discover, Cirque du Soleil ALIZÉ, NYBA
Performance Max in Discover
Google Ads YouTube Shorts, Cirque du Soleil ALIZÉ, NYBA
YouTube Shorts
Google Ads Display network, in article, Cirque du Soleil ALIZÉ, NYBA
Display network, in article
Meta: Facebook & Instagram3 examples
Facebook feed, Cirque du Soleil ALIZÉ, NYBA
Facebook feed, Cirque du Soleil ALIZÉ
Facebook feed, Blue Man Group, NYBA
Facebook feed, Blue Man Group
Video ad, Cirque du Soleil ALIZÉ
TikTok3 examples
In-feed ad, Helene Fischer
In-feed ad, Blue Man Group
In-feed ad, Frei.Wild
ChatGPT Ads2 examples
ChatGPT
What can we do with the kids in Berlin this weekend?
With kids, Berlin’s zoo is a classic, as is the Natural History Museum with its dinosaur skeletons, an afternoon at Park am Gleisdreieck or a show at Potsdamer Platz that amazes children and parents alike.
Sponsored
ChatGPT ad for Cirque du Soleil ALIZÉ in Berlin, run with NYBA
Step into a world of magic with your kids
Cirque du Soleil ALIZÉ at Potsdamer Platz: breathtaking acrobatics for the whole family.
Ad inside the ChatGPT answer, Cirque du Soleil ALIZÉ
ChatGPT
What can I do in Berlin this summer?
Berlin has a lot to offer in summer: open airs in parks and along the Spree, outdoor cinema, lakes like the Wannsee and long evenings in beer gardens. For music fans, the big open air concerts of the season are worth a look.
Sponsored
ChatGPT ad for Paul Kalkbrenner live in Berlin, run with NYBA
Paul Kalkbrenner live in Berlin
Open air at Parkbühne Wuhlheide on Sat, 26 June 2027. Tickets now at Ticketmaster.
Ad inside the ChatGPT answer, Paul Kalkbrenner Berlin
Snapchat3 examples
Snapchat video ad in Spotlight for Max Korzh, NYBA
Spotlight, Max Korzh
Snapchat video ad for beabadoobee Düsseldorf, NYBA
Video ad, beabadoobee Düsseldorf
Snapchat video ad for SOMBR Köln, NYBA
Video ad, SOMBR Köln
Pinterest3 examples
Pinterest ad for Stray Kids in Munich in the home feed, NYBA
Standard pin, Stray Kids Munich
Pinterest video ad for beabadoobee in the home feed, NYBA
Video pin, beabadoobee
Pinterest ad for aespa in Berlin in the home feed, NYBA
Standard pin, aespa Berlin
Reddit2 examples
Reddit ad for Justin Timberlake in Vienna in the feed, NYBA
Image ad, Justin Timberlake Vienna
Reddit video ad for Nine Inch Nails in Berlin in the feed, NYBA
Video ad, Nine Inch Nails Berlin

What Snapchat ads for events look like: real NYBA examples

Real previews from live Snapchat campaigns run through NYBA OS: a Spotlight video ad and full-screen video ads between Stories, each with a direct ticket button.

Snapchat video ad in Spotlight for Max Korzh, NYBA
Spotlight, Max Korzh
Snapchat video ad for beabadoobee Düsseldorf, NYBA
Video ad, beabadoobee Düsseldorf
Snapchat video ad for SOMBR Köln, NYBA
Video ad, SOMBR Köln

What Pinterest ads for events look like: real NYBA examples

Real previews from live Pinterest campaigns run through NYBA OS: standard pins and video pins in the home feed, each with a direct ticket button.

Pinterest ad for Stray Kids in Munich in the home feed, NYBA
Standard pin, Stray Kids Munich
Pinterest video ad for beabadoobee in the home feed, NYBA
Video pin, beabadoobee
Pinterest ad for aespa in Berlin in the home feed, NYBA
Standard pin, aespa Berlin

What Reddit ads for events look like: real NYBA examples

Real ads from live Reddit campaigns run through NYBA OS: an image ad and a video ad in the feed, each with a direct ticket button.

Reddit ad for Justin Timberlake in Vienna in the feed, NYBA
Image ad, Justin Timberlake Vienna
Reddit video ad for Nine Inch Nails in Berlin in the feed, NYBA
Video ad, Nine Inch Nails Berlin

Depending on the type of event, NYBA runs this differently: concert and tour marketing, festival marketing and theatre marketing.

What would 3x more
revenue
mean for you?
Find out:

NYBA Revenue OS dashboard
© NYBA Media GmbH · All rights reserved · nyba.ai