Tutorial : Configurando Google Analytics na VTEX - GTM

Tutorial : Setting up Google Analytics on VTEX - GTM

CREATING AN ACCOUNT ON GTM

CREATE YOUR ACCOUNT ON GTM, AND THEN CREATE YOUR BRAND'S ACCOUNT

Just click on Create Account

Fill in your brand's information

INSTALL YOUR GTM ON VTEX

Selecting the GTM ID

INSERTING IN VTEX

Click on checkout:

Select your store, if you are not multiple stores click default.

Click again on checkout to access the GTM section

Look for the GTM field and now just enter your code:

GETTING YOUR ID IN ANALYTICS

LOG IN

Click on tracking info -> tracking code

Tracking info:

SETTING UP THE TAG ALL PAGE VIEWS

CREATE A TAG THAT RUNS EVERYWHERE:

Tag name: Analytics - All Pages

Tag type: Google Analytics - Universal Analytics

CREATE A VARIABLE

Variable name: GAID (set the name of the print)

TrackingID: your google analytics id

More settings: If you have a site called: sualoja.com.br and it redirects to loja.sualoja.com.br you can set it in the more settings (An example of what you can do).

CREATE A TRIGGER

Select the All Page and Save twice your tag will be working:

CREATE A CONVERSION TAG

Tag name: Analytics - Orderplaced

Tag type: Google Analytics - Universal Analytics

Track type: transaction

Google Analytics Settings: your GA configuration

Now just click on triggers.

CREATE A TRIGGER

Tagname: orderPlaced

TrackType: Custom Event

Event name: orderPlaced

This trigger can be used on any orderPlaced event page.

Now all you have to do is test to see if everything worked as expected :) (I tested it and it worked here)

As an extra, learn how to create sales funnels

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