askvity

How to Use Google Tag Manager?

Published in Tag Management 3 mins read

Using Google Tag Manager (GTM) involves a series of steps to effectively manage and deploy marketing and analytics tags on your website without directly modifying the code. Here's a guide:

Steps to Use Google Tag Manager

  1. Open Google Tag Manager: Access the Google Tag Manager platform using your Google account.

  2. Select a Container: Choose the specific container you want to work with. Containers hold all the tags, triggers, and variables for a particular website or app.

  3. Navigate to the Tags Menu: Inside your chosen container, locate and open the "Tags" section. This is where you manage all the tags you'll be deploying.

  4. Create a New Tag: Initiate the process of adding a new tag by clicking on the appropriate button, usually labeled "New" or "Add a new tag."

  5. Configure the Tag:

    • In the "Tag Configuration" box, select the type of tag you want to use. For Google-specific tags, choose "Google Tag".
  6. Set Up Additional Configurations (Optional):

    • You can configure options to control how your Google Tag communicates with its destinations.

    • For example, you might set up event parameters or user properties to send to Google Analytics.

Example Scenario: Setting up a Google Analytics 4 (GA4) Tag

Let's say you want to track page views on your website using Google Analytics 4. Here’s how you might set up a GA4 tag:

  1. Follow steps 1-4 above.
  2. Tag Configuration: Choose "Google Tag" as the tag type.
  3. Set the Google Tag ID: Enter your Google Tag ID. This ID links the tag to your specific GA4 property.
  4. Triggering: Set up a trigger so the tag knows when to fire. A common trigger for page views is the "All Pages" trigger, which fires on every page load.

Key Concepts in Google Tag Manager

Concept Description
Tags Code snippets that send information to third parties (e.g., Google Analytics, Facebook Pixel).
Triggers Conditions that determine when a tag should fire (e.g., page view, button click).
Variables Named placeholders for values that change (e.g., page URL, event category).
Data Layer A JavaScript object used to pass information from your website to GTM.
Containers The place to manage all the tags, triggers, and variables.

Benefits of Using Google Tag Manager

  • Simplified Tag Management: Easily add, edit, and remove tags without modifying website code.
  • Improved Website Speed: Asynchronous tag loading prevents tags from slowing down your site.
  • Version Control: Track changes and revert to previous versions if needed.
  • Testing and Debugging: Preview and debug tags before publishing them live.

Related Articles