loader
In the increasingly complex digital marketing realm, Google Tag Manager (GTM) is becoming a must.
As the campaigns roll out, it becomes a challenge for every product marketer to ensure they collect the correct information and deliver it to the right platform. Google Tag Manager is the penultimate toolbox to help you deploy and manage marketing tags (code snippets or tracking pixels) on your digital assets (website or mobile app) without changing the source code.

Table of Contents

Objectives: What makes a tag manager essential?

You may add and change your tags with Tag Manager for conversion tracking, web analytics, remarketing, and other purposes.

Instructions: Setting up Google Tag Manager:

The following thirteen steps are involved in setting up Google Tag Manager:
  1. Establish the tracking needs.
  2. Check the tags you have on your assets and confirm you won’t have conflicts.
  3. Design your tags technically and practically. Plan the placement of tags prior proceeding.
  4. Perform an internal risk analysis.
  5. Create a project scope document.
  6. Obtain IT support and brief them on any input you need from them.
  7. Create an account for Google Tag Manager.
  8. Deploy GTM container tags on the staging website or app.
  9. Develop, examine, and publish tags on your test website. TIP: use ‘Preview’ function found in GTM Workspace.
  10. Add GTM container tags to the live website.
  11. Develop, upload, and test tags on the live website.
  12. Conduct another tag audit on your live website and confirm that all is set to designed strategy.

Blueprint: Google Tag Manager internal workings

The GTM Workspace is the upper hierarchy within which the inner workings of GTM are hosted. The workspace is assigned to a specific site. Building a Workspace for each site would allow you to independently manage each of your asset’s GTM requirements.

The next immediate layer within a Workspace is a container — this holistic tag encompasses all the elements and components needed to deploy your tags. The container tag offers all features required by the GTM tool to operate and deploy tags on your website. You may control the container tag with ease as an end user, thanks to the user interface.

Similar to how driving a car makes it simple to manage the engine and turn the vehicle to the left or right, Coders typically refer to the container tag while discussing GTM.

Non-coders typically refer to GTM’s user interface while discussing it. GTM can therefore refer to either the “container tag” or the “user interface,” depending on the context.

A Google Tag Manager container is made up of three key components:

google tag manager blueprint
VARIABLES
Variables in GTM are the foundational building blocks for the other two components.
These placeholder metrics will collect built-in Variables or user-defined variables into the Data Layers, ready to be put to use. Here’s a further breakdown of the difference between the two:

Built-in Variables: GTM containers come with built-in variables that collect standard actions taken on site, from click data to video data and history to scrolling data. Here are some illustrations of several in-built variables – you can find the complete list here.

User-defined variables: several variables can be custom-built to collect specific data that you deem essential. Say you want to collect the total sale amount of each completed purchase.

TRIGGERS
GTM Triggers hold the logic on when Tags are fired and Variables collected.
A user would then define triggers that would instruct GTM when to fire the tags and how to fire them. Variables here can also determine when the trigger is fired (e.g. a trigger is fired when a user completes purchase of over $100).

Examples of common triggers within Google Tag Manager are:

  • Pageviews
  • Links clicks
  • Form submissions
  • Scroll depth
  • Custom events
  • TAGS
    A tag is a large chunk of JavaScript code that is used to gather measurement and marketing data from your website or mobile app and send it to other providers.
    These JavaScript snippets or tracking pixels are a popular method used by various internet platforms, from analytics to advertising platforms. When fired, these tags deliver data collected on-site or signal that a pre-determined action has occurred (for example, a user who spent more than $100 on-site would be attributed to the campaign that generated the click on Facebook).

    Data Layer: Introduction to your Data Library

    The layer of your website, known as the “data layer,” holds all the data created by users interacting with it. Although not all websites have one, provisioning one allows for more dependable and adaptable data collecting – essentially organizing your data in a virtual library during your visitors’ session.

    The optimum performance for Google Tag Manager comes from using it with a data layer. A JavaScript object called a data layer is used to send data from your website to the Tag Manager container. You may then utilize the data to fill variables and turn on triggers in your tag setups.

    Consider what types of data the data layer should manage when configuring your website or mobile app to function with Tag Manager and a data layer, such as:

  • Product details: Name of the item, cost, and category
  • Information on the marketing campaign: traffic origin and medium
  • Transactional data: Date of checkout and cart value Customer details: new or recurring client
  • How to build Variables in your Data Layer?
    You may proceed to construct a data layer variable after you have the key that you want to use:
    1. Choose Variables in your Workspace.
    2. Click New in User-Defined Variables.
    3. Select Data Layer Variable as the variable type by clicking Variable Configuration.
    4. Exactly as it appears in the code, insert the key in the Data Layer Variable Name box (e.g., book Title, not book title.)
    5. In most circumstances, you should leave the Data Layer Version set to the default value of Version 2.
    6. Save the Variable.
    7. Complete these steps for each data layer key that you want Tag Manager to be able to access as a variable.
    8. Make the container public (Publish).

    Note: Data layer variables are only stored on a per-page basis. If you plan to have data values in your data layer to sustain the entire session or multiple pages, you need to add your code to pass data layer values between pages or store them in cookies or session local storage.

    FAQs: Frequent asked questions on GTM

    Across the multiple projects we’ve been part in, and various clients we’ve helped – we’ve come across recurring questions. Here’s some of them and our responses on them:
    Q: Is Google Tag Manager simple for non-coders to use?

    Yes, but just to a minimal degree. You require a sufficient understanding of HTML, DOM, and JavaScript if you wish to alter how a tag behaves or is fired significantly or if you want to add sophisticated trackings like scroll tracking, e-commerce tracking, or improved eCommerce tracking. You won’t be able to utilize GTM to its full potential if you can’t navigate a DOM.

    Many non-coders begin utilizing GTM on Google’s advice, but they rapidly become disoriented while creating and setting the tags. They are left with little to no options but to assign the setup to a third-party GTM specialist or agency if they cannot determine what is wrong.

    Q: Is Google Tag Manager simple for a developer to use?

    Yes, but only to an extent.

    Despite having a sufficient understanding of HTML, DOM, and JavaScript, programmers and developers are unfamiliar with the GA development environment. This makes it challenging to collect GA data whether they use GTM or not.

    Q: How many websites can I use the same container tag on?

    Multiple websites, but, the recommended approach is to avoid doing it, as it may cause tracking problems.

    Q: Can I use another TMS (Tag Management Solution) to publish the GTM container tag code?

    Yes, However, it could stop GTM from operating correctly. The general rule is to avoid using numerous TMS.

    Q: Will using GTM cause my website to load more slowly?

    The short answer is “Virtually no.” Since GTM fires tags asynchronously, it does not require computing resources that hinder the asset’s loading time. There is one restriction in this, though. The performance of your website may suffer if your container tag is excessively huge (contains many tags, triggers, and variables).

    Therefore, remove paused tags, triggers, or variables from the container if you aren’t utilizing it now and don’t intend to in the future.

    Q: What distinguishes Google Analytics from Google Tag Manager?

    Google Analytics reports data about website traffic. However, Google Tag Manager cannot report website traffic statistics. You may find information using Google Analytics on items like:

  • The number of visitors to your website yesterday
  • How much money did your website make over the past 30 days?
  • Which pages did visitors to your website view?
  • The items that have recently been sold.
  • How many leads have been produced by your website using a marketing channel like Facebook?
  • What are your best-selling items, etc.?
  • Since Google Tag Manager is a tag management tool, it cannot offer any such insight in a visualized way. In stead, it can be used to add, update, enable, deactivate, or remove a tag from a website or mobile app.

    A title is a collection of JavaScript code that is used to gather information from your website or mobile app and transmit it to a third-party service like “Google Analytics,” “Google Ads,” “Facebook,” “Twitter,” etc. Google Tag Manager does not give any reports that allow you to examine website usage statistics since it does not report on website traffic data. Google Analytics, however, is overflowing with statistics.

    GTM is a container tag, whereas GA is not. One or more marketing and analytics tags, together with the related triggers and variables, are stored in a container tag.

    Conclusion: 3 Takeaways we've learned

  • If you value agility in deploying marketing solutions, reliable data capturing, effective Data Layer configuration and better collaboration within your team, then it is worth considering GTM.
  • There are three key components of the GTM environment; variables, triggers and tags. Variables are the foundational building blocks for the other two.
  • GTM is a container tag, where marketing and analytics tags are stored together with related triggers and variables. It cannot report website statistics. GA, on the other hand, can report website traffic statistics in a user friendly, visualized way.
  • VANE IVY is committed to helping you optimize your brand’s digital experience. Have any questions? Need our help? Give us a shout!

    top