Created
October 30, 2023 17:32
-
-
Save x3mxray/d8e42169f2dbfeba7f590d77f1478f5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"exportFormatVersion": 2, | |
"exportTime": "2023-10-30 17:30:10", | |
"containerVersion": { | |
"path": "accounts/6203298893/containers/169827438/versions/2", | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"containerVersionId": "2", | |
"container": { | |
"path": "accounts/6203298893/containers/169827438", | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"name": "website", | |
"publicId": "GTM-MFVG5D7L", | |
"usageContext": [ | |
"WEB" | |
], | |
"fingerprint": "1698686167357", | |
"tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/6203298893/containers/169827438/workspaces?apiLink=container", | |
"features": { | |
"supportUserPermissions": true, | |
"supportEnvironments": true, | |
"supportWorkspaces": true, | |
"supportGtagConfigs": false, | |
"supportBuiltInVariables": true, | |
"supportClients": false, | |
"supportFolders": true, | |
"supportTags": true, | |
"supportTemplates": true, | |
"supportTriggers": true, | |
"supportVariables": true, | |
"supportVersions": true, | |
"supportZones": true, | |
"supportTransformations": false | |
}, | |
"tagIds": [ | |
"GTM-MFVG5D7L" | |
] | |
}, | |
"tag": [ | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"tagId": "4", | |
"name": "GA4 - Event - Ecommerce events", | |
"type": "gaawe", | |
"parameter": [ | |
{ | |
"type": "BOOLEAN", | |
"key": "sendEcommerceData", | |
"value": "true" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "getEcommerceDataFrom", | |
"value": "dataLayer" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "eventName", | |
"value": "{{Event}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "measurementIdOverride", | |
"value": "G-XXXXXXXXX" | |
} | |
], | |
"fingerprint": "1698686746367", | |
"firingTriggerId": [ | |
"3" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT", | |
"monitoringMetadata": { | |
"type": "MAP" | |
}, | |
"consentSettings": { | |
"consentStatus": "NOT_SET" | |
} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"tagId": "11", | |
"name": "Sitecore CDP - Identity", | |
"type": "html", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "html", | |
"value": "<script>\n\t\tvar eventData = {\n channel: \"WEB\",\n currency: \"SAR\",\n pointOfSale: window.location.hostname,\n language: \"EN\",\n page: window.location.pathname,\n identifiers: []\n };\n\t\t\n\t\tvar phone = {{User Phone}};\n var email = {{User Email}};\n\t\t\n\t\t if(phone != 'undefined' && phone != undefined && phone!=false && phone!='false'){\n\t\t\t eventData.identifiers.push({id: phone, provider: \"phone\"});\n\t\t\t eventData.phone = phone;\n\t\t\t eventData.phoneNumbers = [phone];\n\t\t }\n\t\t if(email != 'undefined' && email != undefined && email!=false && email!='false'){\n\t\t\t eventData.identifiers.push({id: email, provider: \"email\"});\n\t\t\t eventData.email = email;\n\t\t }\n\t\t\n\t\t\n var extensionData = {\n orderCloudId: {{User Id}}\n };\n \n // Send IDENTITY event to Sitecore Personalize\n engage.identity(eventData, extensionData);\n</script>" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "supportDocumentWrite", | |
"value": "false" | |
} | |
], | |
"fingerprint": "1698686400069", | |
"firingTriggerId": [ | |
"10" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT", | |
"monitoringMetadata": { | |
"type": "MAP" | |
}, | |
"consentSettings": { | |
"consentStatus": "NOT_SET" | |
} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"tagId": "12", | |
"name": "GA4 - Tag", | |
"type": "googtag", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "tagId", | |
"value": "G-XXXXXXXXX" | |
} | |
], | |
"fingerprint": "1698686737644", | |
"firingTriggerId": [ | |
"2147479553" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT", | |
"monitoringMetadata": { | |
"type": "MAP" | |
}, | |
"consentSettings": { | |
"consentStatus": "NOT_SET" | |
} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"tagId": "21", | |
"name": "Sitecore CDP - Page View", | |
"type": "html", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "html", | |
"value": "<script type=\"text/javascript\">\nif (engage !== undefined) {\n var eventData = {\n channel: \"WEB\",\n currency: \"SAR\",\n pointOfSale: window.location.hostname,\n language: \"EN\",\n page: window.location.pathname\n };\n\n var extensionData = {\n customKey: \"customValue\"\n };\n \n engage.pageView(eventData, extensionData);\n};\n</script>" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "supportDocumentWrite", | |
"value": "false" | |
} | |
], | |
"fingerprint": "1698686400072", | |
"firingTriggerId": [ | |
"2147479553" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT", | |
"monitoringMetadata": { | |
"type": "MAP" | |
}, | |
"consentSettings": { | |
"consentStatus": "NOT_SET" | |
} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"tagId": "26", | |
"name": "Sitecore CDP - Initialize", | |
"type": "html", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "html", | |
"value": "<script>\n // Initialize the engage variable\n engage = undefined;\n pos = window.location.hostname;\n cookie = window.location.hostname;\n // Create and inject the <script> tag into the HTML\n var s = document.createElement(\"script\");\n s.type = \"text/javascript\";\n s.async = true;\n s.src = \"https://d1mj578wat5n4o.cloudfront.net/sitecore-engage-v.1.4.0.min.js\";\n var x = document.querySelector(\"script\");\n x.parentNode.insertBefore(s, x);\n // Initialize the Engage SDK\n s.addEventListener(\"load\", function () {\n var settings = {\n clientKey: \"INSERT_YOUR_KEY\",\n targetURL: \"https://api-engage-eu.sitecorecloud.io\",\n pointOfSale: pos,\n cookieDomain: cookie,\n cookieExpiryDays: 365,\n forceServerCookieMode: false,\n includeUTMParameters: true,\n webPersonalization: true /* boolean or object. See Settings object for all options. Default: false */\n };\n window.Engage.init(settings).then(function (result) {\n engage = result;\n \n });\n });\n</script>" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "supportDocumentWrite", | |
"value": "false" | |
} | |
], | |
"fingerprint": "1698686721704", | |
"firingTriggerId": [ | |
"2147479553" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT", | |
"monitoringMetadata": { | |
"type": "MAP" | |
}, | |
"consentSettings": { | |
"consentStatus": "NOT_SET" | |
} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"tagId": "29", | |
"name": "Sitecore CDP - Purchase", | |
"type": "html", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "html", | |
"value": "<script>\n \n var items = {{Ecommerce Items}};\n var currency = {{Ecommerce Currency}};\n var cartId = {{Ecommerce Cart ID}};\n var transactionId = {{Ecommerce Transaction ID}};\n \n console.log('Checkout event: cartId='+cartId+' ,transactionId='+transactionId);\n console.log(items);\n \nvar confirmEventData = {\n channel: \"WEB\",\n currency: currency,\n pointOfSale: window.location.hostname,\n language: \"EN\",\n page: window.location.pathname,\n product: []\n}\n\n products = [];\n for (i=0; i<items.length; i++){\n var item_id = items[i].item_id;\n if(typeof(item_id) != \"undefined\"){\n products.push({\"item_id\" : item_id.toString()});\n }else{\n throw Error(\"item_id is undefined in Data Layer\")\n }\n }\n console.log(products);\n\n confirmEventData.product = products;\n engage.event(\"CONFIRM\", confirmEventData);\n\n\nvar checkoutEventData = {\n channel: \"WEB\",\n currency: currency,\n pointOfSale: window.location.hostname,\n language: \"EN\",\n page: window.location.pathname,\n reference_id: transactionId,\n status: \"PURCHASED\"\n }; \n engage.event(\"CHECKOUT\", checkoutEventData); \n \n \n\n\n \n</script>" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "supportDocumentWrite", | |
"value": "false" | |
} | |
], | |
"fingerprint": "1698686400074", | |
"firingTriggerId": [ | |
"22" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT", | |
"monitoringMetadata": { | |
"type": "MAP" | |
}, | |
"consentSettings": { | |
"consentStatus": "NOT_SET" | |
} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"tagId": "31", | |
"name": "Sitecore CDP - Add to Cart", | |
"type": "html", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "html", | |
"value": "<script type=\"text/javascript\">\n var items = {{Ecommerce Items}};\n var item = items[0];\n console.log(\"add to cart\");\n console.log(item);\n \nvar eventData = {\n channel: \"WEB\",\n currency: {{Ecommerce Currency}},\n pointOfSale: window.location.hostname,\n language: \"EN\",\n page: window.location.pathname,\n product: {\n name: item.item_name,\n type: item.item_brand,\n item_id: item.item_id,\n productId: item.item_id,\n referenceId: {{Ecommerce Cart ID}},\n orderedAt: new Date().toISOString(),\n quantity: item.quantity,\n price: item.price,\n currency: {{Ecommerce Currency}},\n originalPrice: item.price,\n originalCurrencyCode: {{Ecommerce Currency}}\n }\n}\n\n engage.event(\"ADD\", eventData);\n\n</script>" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "supportDocumentWrite", | |
"value": "false" | |
} | |
], | |
"fingerprint": "1698686400075", | |
"firingTriggerId": [ | |
"15" | |
], | |
"tagFiringOption": "ONCE_PER_EVENT", | |
"monitoringMetadata": { | |
"type": "MAP" | |
}, | |
"consentSettings": { | |
"consentStatus": "NOT_SET" | |
} | |
} | |
], | |
"trigger": [ | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"triggerId": "3", | |
"name": "Event - Ecommerce Events GA4", | |
"type": "CUSTOM_EVENT", | |
"customEventFilter": [ | |
{ | |
"type": "MATCH_REGEX", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "arg0", | |
"value": "{{_event}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "arg1", | |
"value": "view_item|view_item_list|select_item|add_to_cart|remove_from_cart|view_cart|begin_checkout|add_payment_info|add_shipping_info|purchase" | |
} | |
] | |
} | |
], | |
"fingerprint": "1698686400067" | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"triggerId": "10", | |
"name": "login", | |
"type": "CUSTOM_EVENT", | |
"customEventFilter": [ | |
{ | |
"type": "EQUALS", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "arg0", | |
"value": "{{_event}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "arg1", | |
"value": "login" | |
} | |
] | |
} | |
], | |
"fingerprint": "1698686400069" | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"triggerId": "15", | |
"name": "add_to_cart", | |
"type": "CUSTOM_EVENT", | |
"customEventFilter": [ | |
{ | |
"type": "EQUALS", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "arg0", | |
"value": "{{_event}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "arg1", | |
"value": "add_to_cart" | |
} | |
] | |
} | |
], | |
"fingerprint": "1698686400070" | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"triggerId": "22", | |
"name": "purchase", | |
"type": "CUSTOM_EVENT", | |
"customEventFilter": [ | |
{ | |
"type": "EQUALS", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "arg0", | |
"value": "{{_event}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "arg1", | |
"value": "purchase" | |
} | |
] | |
} | |
], | |
"fingerprint": "1698686400072" | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"triggerId": "30", | |
"name": "view_item", | |
"type": "CUSTOM_EVENT", | |
"customEventFilter": [ | |
{ | |
"type": "EQUALS", | |
"parameter": [ | |
{ | |
"type": "TEMPLATE", | |
"key": "arg0", | |
"value": "{{_event}}" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "arg1", | |
"value": "view_item" | |
} | |
] | |
} | |
], | |
"fingerprint": "1698686400074" | |
} | |
], | |
"variable": [ | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"variableId": "5", | |
"name": "User Phone", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "phone" | |
} | |
], | |
"fingerprint": "1698686400068", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"variableId": "6", | |
"name": "Ecommerce Coupon", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "ecommerce.coupon" | |
} | |
], | |
"fingerprint": "1698686400068", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"variableId": "8", | |
"name": "User Id", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "user_id" | |
} | |
], | |
"fingerprint": "1698686400068", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"variableId": "9", | |
"name": "User Email", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "email" | |
} | |
], | |
"fingerprint": "1698686400069", | |
"formatValue": { | |
"caseConversionType": "LOWERCASE" | |
} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"variableId": "14", | |
"name": "Ecommerce Items", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "ecommerce.items" | |
} | |
], | |
"fingerprint": "1698686400070", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"variableId": "17", | |
"name": "Ecommerce", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "1" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "ecommerce" | |
} | |
], | |
"fingerprint": "1698686400071", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"variableId": "18", | |
"name": "Ecommerce Tax", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "ecommerce.tax" | |
} | |
], | |
"fingerprint": "1698686400071", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"variableId": "20", | |
"name": "Ecommerce Transaction ID", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "ecommerce.transaction_id" | |
} | |
], | |
"fingerprint": "1698686400072", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"variableId": "25", | |
"name": "Ecommerce Affiliation", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "ecommerce.affiliation" | |
} | |
], | |
"fingerprint": "1698686400073", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"variableId": "27", | |
"name": "Ecommerce Currency", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "ecommerce.currency" | |
} | |
], | |
"fingerprint": "1698686400073", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"variableId": "28", | |
"name": "Ecommerce Cart ID", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "referenceId" | |
} | |
], | |
"fingerprint": "1698686400074", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"variableId": "33", | |
"name": "Ecommerce Shipping", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "ecommerce.shipping" | |
} | |
], | |
"fingerprint": "1698686400075", | |
"formatValue": {} | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"variableId": "34", | |
"name": "Ecommerce Value", | |
"type": "v", | |
"parameter": [ | |
{ | |
"type": "INTEGER", | |
"key": "dataLayerVersion", | |
"value": "2" | |
}, | |
{ | |
"type": "BOOLEAN", | |
"key": "setDefaultValue", | |
"value": "false" | |
}, | |
{ | |
"type": "TEMPLATE", | |
"key": "name", | |
"value": "ecommerce.value" | |
} | |
], | |
"fingerprint": "1698686400075", | |
"formatValue": {} | |
} | |
], | |
"builtInVariable": [ | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"type": "PAGE_URL", | |
"name": "Page URL" | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"type": "PAGE_HOSTNAME", | |
"name": "Page Hostname" | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"type": "PAGE_PATH", | |
"name": "Page Path" | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"type": "REFERRER", | |
"name": "Referrer" | |
}, | |
{ | |
"accountId": "6203298893", | |
"containerId": "169827438", | |
"type": "EVENT", | |
"name": "Event" | |
} | |
], | |
"fingerprint": "1698686995151", | |
"tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/6203298893/containers/169827438/versions/2?apiLink=version" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment