This document details the procedure for installing the VTEX Ads tracking script on all pages of a website (except for checkout pages) using Google Tag Manager (GTM). The correct implementation of this script is essential for collecting browsing data that allows for the optimization and targeting of Retail Media campaigns.
The VTEX Ads script was developed to exclusively collect non-sensitive browsing data, with the aim of personalizing the user experience and optimizing campaigns.
Data Collected:
session_id: Anonymous identifier for the browsing session.ad_id: Identifier of the ad that originated the traffic.session_id: Anonymous identifier for the browsing session.<title>), and description (<meta name="description">).Important: The script does not collect any personally identifiable information (PII), such as name, email, CPF, phone number, address, or payment data. Data collection complies with major data protection laws.
The script should be loaded asynchronously so as not to impact the page load time.
https://cdn.newtail.com.br/retail-media/scripts/vtexrma-agent.1.0.0.jsTo ensure the script runs as early as possible during page load, we recommend using the Initialization trigger.
<script type="text/javascript" async src="https://cdn.newtail.com.br/retail-media/scripts/vtexrma-agent.1.0.0.js"></script>
To prevent the script from running on checkout pages, we will create an exception.
Page Path |
contains |
/checkout |
Page URL |
matches RegEx (ignore case) |
/checkout/|/orderPlaced/ |
For the VTEX Ads platform to correctly correlate user interactions, it is necessary to inform which session identifier is used by your e-commerce.
Action Required:
The team responsible for the e-commerce must inform the VTEX Ads team of the name of the attribute in the cookie or sessionStorage that stores the user’s session ID.
vtex_session, this information must be passed on.This configuration allows the script to read the correct identifier and associate it with browsing events.