How to Track Website Tags With Google Tag Manager?

14 minutes read

To track website tags with Google Tag Manager, follow these steps:

  1. Set up a Google Tag Manager account: Start by signing in to your Google account and access the Google Tag Manager website. Create a new account by providing the necessary details and setting up a container for your website.
  2. Install the Google Tag Manager code: After setting up the container, you'll need to add the generated Google Tag Manager code to your website manually. This code should be placed just before the closing tag of each page on your site.
  3. Create a new tag: Inside the Google Tag Manager dashboard, navigate to the container you created earlier. Click on "Tags" in the left-hand menu and then on the "+ New" button to create a new tag. Give it a name that describes its purpose.
  4. Choose a tag template: Google Tag Manager offers numerous tag templates, depending on what type of tracking you want to implement. Select the appropriate template, such as Google Analytics or Facebook Pixel, or choose a custom HTML tag if necessary.
  5. Configure tag settings: Each tag template will have different settings, but you generally need to provide relevant details like tracking IDs or conversion events. Fill in the required fields to configure the tag settings.
  6. Choose a trigger: A trigger determines when the tag should be fired on your website. Click on "Triggering" within the tag configuration and create a new trigger by clicking on the "+ New" button. Select an appropriate trigger type, such as page view, click, or form submission, and define the associated details.
  7. Save and publish the container: Once you have configured the tag and trigger, save the changes. Then, click on the "Submit" or "Publish" button to push the updated container code to your website. This will make your newly created tag active and start tracking the specified events.
  8. Test and verify: Visit your website to ensure that the tags are firing correctly. Use Google Tag Manager's built-in preview mode, or tools like Google Analytics' Real-Time reports, to verify that the tags are tracking the desired data.


By following these steps, you can effectively track website tags using Google Tag Manager, allowing you to collect valuable data, monitor user behavior, and optimize your website's performance.

Best Google Analytics Books In 2024

1
Google Analytics Demystified (4th Edition)

Rating is 5 out of 5

Google Analytics Demystified (4th Edition)

2
Learning Google Analytics: Creating Business Impact and Driving Insights

Rating is 4.9 out of 5

Learning Google Analytics: Creating Business Impact and Driving Insights

3
Google Analytics: Understanding Visitor Behavior

Rating is 4.8 out of 5

Google Analytics: Understanding Visitor Behavior

4
Google Analytics Breakthrough: From Zero to Business Impact

Rating is 4.7 out of 5

Google Analytics Breakthrough: From Zero to Business Impact

5
Google Analytics Alternatives: A Guide to Navigating the World of Options Beyond Google

Rating is 4.6 out of 5

Google Analytics Alternatives: A Guide to Navigating the World of Options Beyond Google

6
Learning Google AdWords and Google Analytics

Rating is 4.5 out of 5

Learning Google AdWords and Google Analytics

7
Data Engineering with Google Cloud Platform: A practical guide to operationalizing scalable data analytics systems on GCP

Rating is 4.4 out of 5

Data Engineering with Google Cloud Platform: A practical guide to operationalizing scalable data analytics systems on GCP

8
Practical Google Analytics and Google Tag Manager for Developers

Rating is 4.3 out of 5

Practical Google Analytics and Google Tag Manager for Developers

9
Advanced Web Metrics with Google Analytics

Rating is 4.2 out of 5

Advanced Web Metrics with Google Analytics


What is event tracking in Google Tag Manager?

Event tracking in Google Tag Manager is a feature that allows you to track specific actions or events that occur on your website. It enables you to capture data about interactions that cannot be tracked by default using Google Analytics, such as button clicks, form submissions, video plays, file downloads, and more.


With event tracking, you can assign tags to these events, which are then triggered when the specified action occurs on your website. These tags can be used to send data to various analytics and marketing tools, including Google Analytics.


Event tracking in Google Tag Manager involves three main components: triggers, variables, and tags. Triggers define the conditions that need to be met for an event to be tracked, variables capture and contain relevant information about the event, and tags are used to send this data to analytics tools for analysis.


By implementing event tracking in Google Tag Manager, you can gain valuable insights into how users interact with your website, track specific goals or conversions, and optimize your site's performance based on user behavior.


What is the role of data layer variables in Google Tag Manager?

The role of data layer variables in Google Tag Manager is to capture and store data from a website or app, making it easily accessible for use in tags, triggers, and variables.


Data layer variables act as containers for specific information about user actions or data points on the website, such as clicks, form submissions, or product details. By defining and populating data layer variables, marketers and analysts can collect and organize data in a structured manner.


These variables can be used in various ways, including:

  1. Dynamic tag configuration: Data layer variables provide dynamic values that can be used to configure tags at the time they are fired. For example, an e-commerce website can use a data layer variable to pass the product ID to a conversion tracking tag.
  2. Trigger conditions: Data layer variables can be used in trigger conditions to fire tags based on specific user interactions or conditions. For instance, a tag can be triggered only when a certain data layer variable value matches a predefined condition.
  3. Custom JavaScript variables: Data layer variables can be used as inputs for custom JavaScript variables, allowing for more complex and custom data manipulations and calculations.


Overall, data layer variables help to facilitate the collection, organization, and utilization of data in Google Tag Manager, enabling marketers and analysts to effectively measure and analyze user behavior on their websites or apps.


How to track downloads with Google Tag Manager?

To track downloads with Google Tag Manager, follow these steps:

  1. First, make sure you have the Google Tag Manager code implemented on your website. If you haven't set it up yet, visit the Google Tag Manager website, sign in with your Google account, and create a new container for your website.
  2. Once your container is set up, open it and navigate to "Tags" in the sidebar.
  3. Click on "New" to create a new tag.
  4. Name your tag, such as "Download Tracking."
  5. In the "Tag Configuration" section, click on the "Tag Type" field and select "Universal Analytics" (or any other appropriate tag for your analytics setup).
  6. Configure the tag by selecting the appropriate Google Analytics settings. Choose the respective Google Analytics property and set the track type to "Event."
  7. In the "Event Tracking Parameters" section, you'll set up the specific event actions, categories, and labels. For example, you can set the "Event Category" to "Downloads," the "Event Action" to "File Download," and the "Event Label" to "{{Click Element}}".
  8. Scroll down to the "Triggering" section and click on the "Choose a trigger" field. If you have an existing trigger for the download link, select it from the list. Otherwise, click on "New" to create a new trigger.
  9. Name your trigger, such as "Download Click."
  10. In the "Trigger Configuration" section, click on the "Trigger Type" field and select the appropriate trigger type based on your download link's characteristics. Common options include "Click - Just Links," "Click - All Elements," or specific CSS/Javascript selectors.
  11. Configure the trigger by specifying the criteria for when the tag should fire. For example, you can set the trigger to fire when the Click URL contains ".pdf" to track PDF downloads.
  12. Save your trigger and return to the tag configuration.
  13. Save your tag, and you'll be redirected to the "Tags" overview screen.
  14. Click on the "Submit" button at the top right to publish your changes.
  15. Test the implementation by visiting your website and downloading a file that matches the trigger conditions.
  16. Check your Google Analytics account to verify that the download tracking events are being recorded correctly.


By following these steps, you should be able to set up download tracking with Google Tag Manager and monitor your downloads effectively.


How to track form submissions with Google Tag Manager?

To track form submissions with Google Tag Manager, follow these steps:

  1. Sign in to your Google Tag Manager account, and navigate to the container where you want to implement form submission tracking.
  2. Click on "New Tag" to create a new tag.
  3. Name your tag appropriately, and click on "Tag Configuration" to select the type of tag you want to create.
  4. In the tag configuration window, select the tag type that corresponds to your form submission tracking requirements. For example, if you want to track form submissions using Google Analytics, select the "Universal Analytics" tag type.
  5. Configure the tag settings based on your tracking needs. For a Google Analytics tag, you'll need to specify the Tracking ID and the track type, which should be set to "Event". Additionally, set the Category, Action, and Label parameters to define your event tracking data for form submissions. These parameters can be customized to suit your needs.
  6. After configuring the tag, click on "Triggering" to define when the tag should fire. In this case, you want the tag to fire when a form submission occurs. You can either select an existing trigger that corresponds to form submissions or create a new one.
  7. Once you have set up the trigger, save your tag configuration, and click on "Submit" to publish the changes.
  8. Finally, navigate to the "Preview" mode in Google Tag Manager to test your new tag and ensure that it fires properly when a form submission occurs on your website. When you are satisfied with the results, exit the preview mode and publish your changes.


By following these steps, you should be able to track form submissions on your website using Google Tag Manager.


How to add a new container in Google Tag Manager?

To add a new container in Google Tag Manager, follow these steps:

  1. Sign in to your Google Tag Manager account.
  2. Click on the "Admin" tab at the top-right corner of the page.
  3. Under the "Containers" column, click on the drop-down menu and select "Create New Container".
  4. Enter a name for your new container and select the desired target platform (Web, AMP, iOS, or Android).
  5. Select whether you want to use a pre-built container or start from scratch. If you choose a pre-built container, you can select a template that suits your needs.
  6. Configure the container setup options such as domain name, container type (if applicable), and container usage sharing settings.
  7. Click on the "Create" button to create the new container.
  8. Once the container is created, you'll be redirected to the workspace for that container. From there, you can add tags, triggers, and variables according to your requirements.


Note: If you're creating a container for a website, you'll also need to add the container code to your website for it to start collecting data.

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

Related Posts:

To check your Google Tag Manager tags, you can follow these steps:Go to the Google Tag Manager website and log in with your Google account credentials. Once logged in, you'll be directed to the Google Tag Manager dashboard. Select the container you want to...
If you want to check your website tags using Google Tag Manager, there are a few steps you can follow. First, you need to log in to your Google Tag Manager account and select the container that corresponds to your website.Once you've selected the container...
Google Tag Manager (GTM) is a powerful tool that allows you to manage and deploy various tracking tags on your website without directly editing the code. Here's a step-by-step guide on how to use Google Tag Manager:Sign in to your Google Tag Manager accoun...