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