Hello There!

Lorem ipsum dolor sit amet, consectetur adipiscing elit,

Google Tag Manager tips and tricks for Intermediate users

Since the release of Google Tag Manager, it has helped make the lives of marketers easier with tracking codes. If you’re one of the people that are involved in tracking data on a small or a large website, Tag Manager can help save a lot of time and effort.

In our last blog, we discussed the Advantages of Environments & Workspaces, dataLayer, Import & Export GTM Containers, and how to Preview, Audit & Publish. In this post, we’ll discuss some advanced tips and tricks of Google Tag Manager that will help you make better use of Google Tag Manager as a tool

Exercise Nested Variables

Tip: Use the Built-in or User-defined variables to fulfill the need of passing multiple variable values in a single parameter or to create a new User-defined variable holding all the values.

GTM gives you the ability to utilize variables inside variables.

For example, we can pass the GTM Container ID and Version in a custom dimension to bifurcate the hits coming from the older versions and newer versions of GTM.

This feature of Google Tag Manager empowers an individual with the capability of using different variables separately as well as in combination with each other as and when required

Tag Manager
Use of inbuilt variables to pass multiple values in a single parameter

View Full Hostnames

Trick: With the help of built-in variables Hostname and Page Path we can update the page parameter in GTM to get the complete URL.

In some scenarios, like having multiple domain data coming into a single GA property, the requirement arises that we need the details of the domain in our GA reporting. With the help of filters available in GA, we can update the page path with the full domain. Another way to do so is by updating the page parameter in GTM itself.

All you’ve got to do is turn on two more of GTM’s built-in variables: the Hostname and the Page Path. At that point, you jump back into your Google Analytics page, see the tag in Google Tag Manager, and select “page” as a field to set. This will allow you to overwrite the page path that’s sent into GA so that you’re not as it was seeing the path only i.e. everything that comes after .com or.org etc., but with the hostname attached to it.

Google Tag Manager
Update Page parameter with full URL

Track Outbound Clicks

Tip: Tracking outbound clicks will help understand from which URL the maximum traffic is moving out from the website.

Tracking outbound clicks is comparable to tracking onsite report downloads, but it does require more GTM configurations. Instead of just turning on a built-in variable, you’ll be creating what’s known as an Auto Event Variable that will get the hostname of the clicked URL. Auto Event Variable permits you to get to information points about interaction, so if somebody is clicking a URL, we need to be able to seize the hostname of the URL, since the hostname isn’t the hostname of our site, we need to track that as an outbound tap.

But as with everything, be careful of how you’re collecting that information and how you eventually need to display it. We’ve seen cases, where every single outbound connect, was followed by printing the whole URL into Google Analytics. What actionable data is that attending to allow anybody? No one ought to see every single interface here; what you want is to pinpoint the bigger patterns, like which domain your clients are finding most alluring. So don’t send the whole URL of the outbound interface into Google Analytics; send the hostname only and you’ll get a report of how numerous individuals clicked on about-us of Tatvic, to Wikipedia, to Google, etc.

Configure Subdomain Tracking

Tip: To avoid the appearance of your domain name in your GA reports while users are exploring between diverse subdomains of your website you need to have subdomain tracking configurations in place.

In the event that you’re seeing your domain appear in your Google Analytics reports, there is the likelihood of a subdomain tracking issue. There is a common misconception that subdomain tracking and cross-domain tracking are the same and they are often used interchangeably by many individuals.

Subdomain tracking is for once who need to be able to track users exploring between diverse subdomains of your website, for example, www.blog.tatvic.com and tatvic.com.

What we have to do is set “CookieDomain” to “auto” in GTM, which flips things around. On both locations, GTM will attempt to set the cookie on .com- or .xyz, which doesn’t work since that’s a domain extension; at that point, another component it gets to is Tatvic, which checks out so the cookie for both locations is set within the same put and everything is in place.

Google Tag Manager -
Configurations for subdomain tracking

Configure Cross-Domain

Tip: When two or more domains that can be a part of a single user journey, cross-domain tracking can be done to stitch the user journey.

Cross-domain tracking is when you speculate it, you need to track users navigating between totally distinctive domains. All you need is cross-domain tracking after you have two or more domains that can be a part of a single-user journey.

So on the off chance that you’ve got to send clients to a third-party website for payments, or in the event that you’ve got a good number of websites that users will actually move to and fro, use this.

In GTM it’s a straightforward matter of altering your analytics page to set tags to “allowLinker” and after that heading to the Cross-Domain Following subsection of that same tag including a comma-separated list of your spaces. And here’s a portion that’s simple and people tend to forget: you must jump into Google Analytics (not GTM) and include all of those website locations to your Referral Exclusion List.

These tips & tricks, which you should absolutely try, will enable you to gain insights so that you can come up with your own tips. With that in mind, keep moving forward and happy optimizing!

Get a health checkup of your Google Tag Manager and Google Analytics account today!

Google Tag Manager Tips & Tricks for Beginners

We love Google Tag Manager. The container is easy to implement and gives non-technical users an easy way to include pixels, scripts, and other tracking elements in their websites. It further allows you to get granular data depending on when, where, and how specific tags are fired. 

When you’re creating a new tag container for a new website or just transitioning to a new website, there are a few important tags that you want to set up. One of them would be to ensure that the analytics of your website loads properly on your Tag Manager container and the good news is that there’s a preset configuration to implement just that. 

With analytics embedded in Tag Manager, you can now begin the process of adding goal conversions to maximize your data and see what elements are giving you the most user engagement. 

In today’s post, we’ll talk about the tips and tricks for setting up GTM snippets that can make your life simple. You’ll be able to use them to collect your data and measure it accurately. To begin, we‘re going to start with a few essentials of Google Tag Manager and how to set it up.

Importance of GTM Snippet on your website

Tip: Make sure that the GTM Container snippet is placed on each and every page of your website and as the best practice, we suggest having it exactly after the opening of the head tag of the page (Ref. Image).

Snippet placement of GTM for tracking the page

When you’re using Google Tag Manager it’s worth taking the time to ensure that the base container code is visible on each page of your website. It would be erroneous if you rolled out imaginative tagging just to realize after a few weeks that GTM was never active on your imperative pages.

Take Advantage of Environments & Workspaces

Trick: Create different GTM environments based on the organization’s development cycle and use those GTM environments in the development cycle to test the website tagging. Additionally, you can create workspaces in the GTM container which can allow multiple users to work on the tagging part simultaneously. 

Even if your company or client features a multi-tiered development workflow, you’ll be able to take QA and testing to another level with GTM Environments. Say the website you’re working on has “development”, “staging”, and “production” servers. 

Here’s what you could do

Characterize each environment that your dev group employs and introduce a special GTM container tag on each. After that, push whatever container you’re working on to the relevant dev environment for testing and QA. Moreover, it’ll allow different development cycles to work and test things out, simultaneously. 

Create Environments based on the development cycle of an organization

Coming to workspaces - it is a great feature if you are working in collaboration with multiple people, let’s say a team of implementation experts, marketers, analysts, and QA experts. In such scenarios, you’ll have different team members working out of the same Google Tag Manager account without fear of overwriting each other or breaking each other’s tagging.

Multiple workspaces to work simultaneously

Utilize the dataLayer

Tip: Usually people try to implement GTM tagging with the help of the UI/UX of their website and write-heavy scripts in GTM to fetch the data, we suggest leveraging the dataLayer functionality and then proceeding to GTM tagging.

For the larger part of websites that we work with, we have a dataLayer that comprises everything our users can see and interact with. 

The UI/UX of the website is made up of features, and dynamic data coming from the database which makes the user engagement better. The dataLayer gives us an opportunity to surface data from our UI/UX of the website that will never be a part of the user interactions, but that we still might like to be able to utilize in analytics.

Take, for example, a logged-in user who is looking at the products on an eCommerce website. So we can surface the data of that user and products in a dataLayer which they’re looking at and pass it to Google Analytics. Based on this, we can categorize the user into different buckets for analysis.

Import & Export GTM Containers

Trick: The import and export functionality allows you to reuse the GTM configurations already available in older implementations with fewer or no changes required for the new GTM tagging.

Google Tag Manager offers inconceivably valuable features for the Export and Import of GTM containers. What you’re able to do is export a fully-formed GTM container with the complete collection of all tags, triggers, and variables in your GTM container which is a JSON. What we mean by this is, one can save days’ or even weeks’ worth of work by reusing tags, triggers, and variables that you’ve as of now put in your time creating. 

At Tatvic, we maintain a centralized GTM container that shapes the establishment of any new GTM setup. When we begin setting up tracking for a website, we are able to achieve it faster, bouncing ahead by hours in the event.

Preview, Audit & Publish

Tip: Always preview the changes made in the particular workspace, perform an audit for those changes, and check if they are working as expected. If yes, go ahead and publish those changes for all the users.

This is often something that I revere around Google Tag Manager - the capacity to test a tag arrangement, fall flat, test something else, get it to kind work, make strides until it’s culminating, at that point preview and reiterate, all on your own system. 

It doesn’t matter if you don’t know what you’re doing; you’ll keep your work beneath wraps until you’re prepared for the prime time, and then publish the main version that contains all of your completed tagging. This works great as you have Google Tag Manager on your website. You can fire it up in preview mode and you’ll be able to see all your tagging in action in a committed debug console.

Tatvic has developed a solution, DLAT,  that encloses all the essential elements of an efficient Tag governance program. This is a cross-team, multi-role effort, but it will be worth it.

Looking to implement Google Tag Manager on your platform? Contact us today!

Bot Icon
Bot Icon

Tatvic Bot

Explore About Tatvic and Services