6 dicas pra usar o Google Tag Manager

6 tips on how to use Google Tag Manager

For those who don't know, Google Tag Manager (GTM) is a free tool used to manage and deploy tags in your websites or apps, without having to change your original code. Besides that, it makes it much easier to control the tags, since everything is in a single place.

Despite being a great facilitator, if not used in an organized way, it can end up complicating our lives. Therefore, we will present 6 tips for using GTM:

1. Use some conventions when naming your tags

After some time of use, GTM can become a mess if we add tags without specifying exactly what they do.

2. Use folders

GTM gives you the option to create folders to group your tags together. You can create a folder called 'Facebook' and put everything related to Facebook in it! That way you know where to go at a glance!

3. Use constant variables

As we use several Ids in multiple tags, creating a variable that carries these values is the best option, because we can use them several times without worrying about remembering these Ids

4. Use Data Layer

Although it is a little complicated for those who are starting out, Data Layer is a great part of management. When you want to tracke a specific part of your site and the GTM predefined events do not pick up this kind of interaction, the Data Layer will help you a lot.

5. Implement Ids on important elements of the site

This is very important especially when the page has buttons. Asking your developer to place an id on these elements can make it much easier when it comes time to place an event on this button. Remember that each ID must be unique on each page.

6. Don't set too many tags to fire at once

This is a limitation resulting from browsers. Unfortunately, these have a limit to how many HTTP requests can happen at one time. If you fire 10 different tags in an event, most likely some of them will not fire. But if you don't have this option to choose which tags should fire or not, you can consider prioritizing them or having them fire in sequence.

Leave a comment

Please note, comments need to be approved before they are published.