6 tips for using Google Tag Manager

For those who do not know, Google Tag Manager (GTM) is a free tool used to manage and deploy tags to your websites or apps, without having to change your original code. In addition, it takes control over the tags much easier, since everything is in one place.

Despite being a great facilitator, if not used in an organized way, it could end up complicating our lives a little bit. So let's present 6 tips for using GTM:

1. Use some conventions when naming your tags
After some time of use, the GTM can end up becoming 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. You can create a folder called 'Facebook' and put everything related to Facebook in it! So with just a glance you already know where to go!

3. Use constant variables
Since we use multiple IDs in multiple tags, creating a variable that loads those values is the best option because we can use them multiple times without worrying about remembering these ids.

4. Use Data Layer
Although it's a bit tricky for those who are just starting out, Data Layer is a big part of management. When you want to track a specific part of your site and GTM's predefined events do not get this kind of interaction, Data Layer will help you a lot.

5. Implementing Ids on Important Site Elements
This is especially important when the page has buttons. Asking for your developer to put an id on these elements can make it much easier to put an event on that button. Remember that each ID must be unique on each page.

6. Do not set too many tags to fire at once
This is a limitation resulting from browsers. Unfortunately, these have a limit on HTTP requests that can happen at once. If you fire 10 different tags in an event, most likely some of them will not fire. But if you do not have that option of choosing which tags to fire or not, you can consider prioritizing them or putting them to fire in sequence.

Deixe um comentário

Os comentários devem ser aprovados antes de serem publicados