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.

Back to blog

Leave a comment

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

Qual o próximo passo? Vamos evoluir o seu e-commerce hoje.

Transform the shopping experience of digital channels!
Our team of experts awaits your contact to understand how we can make your business evolve today with the best strategies and technologies on the market.

Talk to an expert

A Codeby precisa das informações de contato que você nos fornece para contatá-lo sobre nossos produtos e serviços. Você pode cancelar a assinatura dessas comunicações a qualquer momento. Para obter informações sobre como cancelar a inscrição, bem como nossas práticas de privacidade e compromisso de proteger sua privacidade, consulte nossa Política de Privacidade.

Solutions

  • Vtex Solutions
  • Digital Commerce
  • Digital Marketing
  • Digital Transformation
  • Data Transformation

About us

  • We are a Tech
  • We are a Team
  • We are a Keyrus Company
  • Carreira
  • Parceiros

Cases

  • Nossos Cases

Perspectives

  • Blog
  • Ebooks

Get in touch

  • Talk to an expert

Rua Bandeira Paulista, 275 - 1º Andar | ECOMFY TECNOLOGIA E DESENVOLVIMENTO LTDA | CNPJ 30.084.751/0001-02
© 2023, Codeby | Technology for Business Powered by Shopify

Privacy Policy