{
    "exportFormatVersion": 2,
    "exportTime": "2025-07-29 07:00:31",
    "containerVersion": {
        "path": "accounts/6258042378/containers/223203570/versions/0",
        "accountId": "6258042378",
        "containerId": "223203570",
        "containerVersionId": "0",
        "container": {
            "path": "accounts/6258042378/containers/223203570",
            "accountId": "6258042378",
            "containerId": "223203570",
            "name": "Butik Stays - Master Container - Servidor",
            "publicId": "GTM-5G2X8P2X",
            "usageContext": [
                "SERVER"
            ],
            "fingerprint": "1750785829470",
            "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/6258042378/containers/223203570/workspaces?apiLink=container",
            "features": {
                "supportUserPermissions": true,
                "supportEnvironments": true,
                "supportWorkspaces": true,
                "supportGtagConfigs": false,
                "supportBuiltInVariables": true,
                "supportClients": true,
                "supportFolders": true,
                "supportTags": true,
                "supportTemplates": true,
                "supportTriggers": true,
                "supportVariables": true,
                "supportVersions": true,
                "supportZones": true,
                "supportTransformations": true
            },
            "tagIds": [
                "GTM-5G2X8P2X"
            ],
            "taggingServerUrls": [
                "https://server.butikstays.com"
            ]
        },
        "variable": [
            {
                "accountId": "6258042378",
                "containerId": "223203570",
                "variableId": "10",
                "name": "User - City x-geo-city",
                "type": "rh",
                "parameter": [
                    {
                        "type": "TEMPLATE",
                        "key": "headerName",
                        "value": "x-geo-city"
                    }
                ],
                "fingerprint": "1750743124836",
                "formatValue": {
                    "caseConversionType": "LOWERCASE"
                }
            },
            {
                "accountId": "6258042378",
                "containerId": "223203570",
                "variableId": "12",
                "name": "User - ID x-stape-user-id",
                "type": "rh",
                "parameter": [
                    {
                        "type": "TEMPLATE",
                        "key": "headerName",
                        "value": "x-stape-user-id"
                    }
                ],
                "fingerprint": "1750743124836",
                "formatValue": {}
            },
            {
                "accountId": "6258042378",
                "containerId": "223203570",
                "variableId": "13",
                "name": "User - State x-geo-region",
                "type": "rh",
                "parameter": [
                    {
                        "type": "TEMPLATE",
                        "key": "headerName",
                        "value": "x-geo-region"
                    }
                ],
                "fingerprint": "1750743124836",
                "formatValue": {
                    "caseConversionType": "LOWERCASE"
                }
            },
            {
                "accountId": "6258042378",
                "containerId": "223203570",
                "variableId": "14",
                "name": "User - City city_meta - X-GEO-City",
                "type": "cvt_223203570_11",
                "fingerprint": "1750743124836",
                "formatValue": {
                    "caseConversionType": "LOWERCASE"
                }
            },
            {
                "accountId": "6258042378",
                "containerId": "223203570",
                "variableId": "15",
                "name": "User - Agent user-agent",
                "type": "rh",
                "parameter": [
                    {
                        "type": "TEMPLATE",
                        "key": "headerName",
                        "value": "user-agent"
                    }
                ],
                "fingerprint": "1750743124837",
                "formatValue": {}
            },
            {
                "accountId": "6258042378",
                "containerId": "223203570",
                "variableId": "16",
                "name": "User - Country x-geo-country",
                "type": "rh",
                "parameter": [
                    {
                        "type": "TEMPLATE",
                        "key": "headerName",
                        "value": "x-geo-country"
                    }
                ],
                "fingerprint": "1750743124837",
                "formatValue": {
                    "caseConversionType": "LOWERCASE"
                }
            },
            {
                "accountId": "6258042378",
                "containerId": "223203570",
                "variableId": "17",
                "name": "User - IP address x-real-ip",
                "type": "rh",
                "parameter": [
                    {
                        "type": "TEMPLATE",
                        "key": "headerName",
                        "value": "x-real-ip"
                    }
                ],
                "fingerprint": "1750743124837",
                "formatValue": {}
            },
            {
                "accountId": "6258042378",
                "containerId": "223203570",
                "variableId": "18",
                "name": "User - ZIP x-geo-postalcode",
                "type": "rh",
                "parameter": [
                    {
                        "type": "TEMPLATE",
                        "key": "headerName",
                        "value": "x-geo-postalcode"
                    }
                ],
                "fingerprint": "1750743124837",
                "formatValue": {}
            },
            {
                "accountId": "6258042378",
                "containerId": "223203570",
                "variableId": "28",
                "name": "User - Email",
                "type": "ed",
                "parameter": [
                    {
                        "type": "BOOLEAN",
                        "key": "setDefaultValue",
                        "value": "false"
                    },
                    {
                        "type": "TEMPLATE",
                        "key": "keyPath",
                        "value": "user_data.email"
                    }
                ],
                "fingerprint": "1750747003913",
                "formatValue": {}
            },
            {
                "accountId": "6258042378",
                "containerId": "223203570",
                "variableId": "29",
                "name": "User - Phone",
                "type": "ed",
                "parameter": [
                    {
                        "type": "BOOLEAN",
                        "key": "setDefaultValue",
                        "value": "false"
                    },
                    {
                        "type": "TEMPLATE",
                        "key": "keyPath",
                        "value": "user_data.address.0.phone"
                    }
                ],
                "fingerprint": "1750747105739",
                "formatValue": {}
            },
            {
                "accountId": "6258042378",
                "containerId": "223203570",
                "variableId": "31",
                "name": "User - First name",
                "type": "ed",
                "parameter": [
                    {
                        "type": "BOOLEAN",
                        "key": "setDefaultValue",
                        "value": "false"
                    },
                    {
                        "type": "TEMPLATE",
                        "key": "keyPath",
                        "value": "user_data.address.0.first_name"
                    }
                ],
                "fingerprint": "1750747262636",
                "formatValue": {}
            },
            {
                "accountId": "6258042378",
                "containerId": "223203570",
                "variableId": "32",
                "name": "User - Last name",
                "type": "ed",
                "parameter": [
                    {
                        "type": "BOOLEAN",
                        "key": "setDefaultValue",
                        "value": "false"
                    },
                    {
                        "type": "TEMPLATE",
                        "key": "keyPath",
                        "value": "user_data.address.0.last_name"
                    }
                ],
                "fingerprint": "1750747279309",
                "formatValue": {}
            }
        ],
        "fingerprint": "1753772431793",
        "tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/6258042378/containers/223203570/versions/0?apiLink=version",
        "customTemplate": [
            {
                "accountId": "6258042378",
                "containerId": "223203570",
                "templateId": "11",
                "name": "city_meta - X-GEO-City",
                "fingerprint": "1750743124836",
                "templateData": "___INFO___\n\n{\n  \"type\": \"MACRO\",\n  \"id\": \"cvt_temp_public_id\",\n  \"version\": 1,\n  \"securityGroups\": [],\n  \"displayName\": \"city_meta - X-GEO-City\",\n  \"description\": \"Transforma o valor do X-GEO-City no padrão exigido pela Meta.\\n\\nCódigo desenvolvido por um aluno do Treinamento Traqueamento Avançado - @gustavobork.\",\n  \"containerContexts\": [\n    \"SERVER\"\n  ]\n}\n\n\n___TEMPLATE_PARAMETERS___\n\n[]\n\n\n___SANDBOXED_JS_FOR_SERVER___\n\nconst getRequestHeader = require('getRequestHeader');\nconst logToConsole = require('logToConsole');\n\nlet cityName = getRequestHeader('X-Geo-City');\nlogToConsole(\"Original cityName: \" + cityName); // Log before replacement\n\nif (cityName) {\n    let result = '';\n    for (let i = 0; i < cityName.length; i++) {\n        const current = cityName.charAt(i);\n        const next = i + 1 < cityName.length ? cityName.charAt(i + 1) : '';\n        const pair = current + next;\n\n        if (pair === 'Ã£' || pair === 'Ã¡' || pair === 'Ã ' || pair === 'Ã¢') {\n            result += 'a';\n            i++; // Skip next character\n        } else if (pair === 'Ã©' || pair === 'Ãª') {\n            result += 'e';\n            i++; // Skip next character\n        } else if (pair === 'Ã­') {\n            result += 'i';\n            i++; // Skip next character\n        } else if (pair === 'Ã³' || pair === 'Ã´' || pair === 'Ãµ') {\n            result += 'o';\n            i++; // Skip next character\n        } else if (pair === 'Ãº' || pair === 'Ã¼') {\n            result += 'u';\n            i++; // Skip next character\n        } else if (pair === 'Ã§') {\n            result += 'c';\n            i++; // Skip next character\n        } else if (current !== ' ') { // Check if the current character is not a space\n            result += current;\n        }\n        // If it is a space, do nothing (effectively removing it)\n    }\n\n    cityName = result.toLowerCase(); // Lowercase result\n    logToConsole(\"Processed cityName: \" + cityName); // Log after replacement\n    return cityName;\n}\n\ndata.gtmOnSuccess(); // In GTM, end with this call\n\n//Código desenvolvido por um aluno do Treinamento Traqueamento Avançado - @gustavobork.\n\n\n___SERVER_PERMISSIONS___\n\n[\n  {\n    \"instance\": {\n      \"key\": {\n        \"publicId\": \"read_request\",\n        \"versionId\": \"1\"\n      },\n      \"param\": [\n        {\n          \"key\": \"requestAccess\",\n          \"value\": {\n            \"type\": 1,\n            \"string\": \"any\"\n          }\n        },\n        {\n          \"key\": \"headerAccess\",\n          \"value\": {\n            \"type\": 1,\n            \"string\": \"any\"\n          }\n        },\n        {\n          \"key\": \"queryParameterAccess\",\n          \"value\": {\n            \"type\": 1,\n            \"string\": \"any\"\n          }\n        }\n      ]\n    },\n    \"clientAnnotations\": {\n      \"isEditedByUser\": true\n    },\n    \"isRequired\": true\n  },\n  {\n    \"instance\": {\n      \"key\": {\n        \"publicId\": \"logging\",\n        \"versionId\": \"1\"\n      },\n      \"param\": [\n        {\n          \"key\": \"environments\",\n          \"value\": {\n            \"type\": 1,\n            \"string\": \"all\"\n          }\n        }\n      ]\n    },\n    \"clientAnnotations\": {\n      \"isEditedByUser\": true\n    },\n    \"isRequired\": true\n  }\n]\n\n\n___TESTS___\n\nscenarios: []\n\n\n___NOTES___\n\nCreated on 6/29/2024, 3:17:49 PM\n\n\n"
            }
        ]
    }
}