Skip to content

Instantly share code, notes, and snippets.

@felipebarrozo
felipebarrozo / ga4-vtexio-gtm.json
Last active April 2, 2024 02:07
Importing the JSON file via GTM. Installing GA4 by consuming variables and events from the VTEX IO dataLayer.
{
"exportFormatVersion": 2,
"exportTime": "2024-04-02 01:59:42",
"containerVersion": {
"path": "accounts/6050844493/containers/174758946/versions/0",
"accountId": "6050844493",
"containerId": "174758946",
"containerVersionId": "0",
"container": {
"path": "accounts/6050844493/containers/174758946",
function() {
var time = window.performance.timing;
var pageLoadTime = time.loadEventEnd - time.navigationStart;
return Math.round(pageLoadTime / 100) / 10;
}