{
  "exportFormatVersion": 2,
  "exportTime": "2026-06-14 00:00:00",
  "containerVersion": {
    "path": "accounts/6000000000/containers/190000003/versions/0",
    "accountId": "6000000000",
    "containerId": "190000003",
    "containerVersionId": "0",
    "name": "Variables that shape data - Answer Key",
    "description": "Reference container for the 'Variables that shape data' module of 'Work with real data': datalayer, dom-scrape, dom-normalize, lookup-table, regex-table, cookie-variable, web-storage and js-reshape.",
    "container": {
      "path": "accounts/6000000000/containers/190000003",
      "accountId": "6000000000",
      "containerId": "190000003",
      "name": "Variables that shape data - Answer Key",
      "publicId": "GTM-PLAYSHP",
      "usageContext": ["WEB"],
      "fingerprint": "0",
      "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/6000000000/containers/190000003/workspaces?apiLink=container",
      "features": {
        "supportUserPermissions": true,
        "supportEnvironments": true,
        "supportWorkspaces": true,
        "supportGtagConfigs": false,
        "supportBuiltInVariables": true,
        "supportClientTemplates": false,
        "supportSequencing": true,
        "supportTransformations": false,
        "supportTemplates": true,
        "supportZones": true
      }
    },
    "builtInVariable": [
      { "accountId": "6000000000", "containerId": "190000003", "type": "PAGE_URL", "name": "Page URL" },
      { "accountId": "6000000000", "containerId": "190000003", "type": "PAGE_PATH", "name": "Page Path" },
      { "accountId": "6000000000", "containerId": "190000003", "type": "EVENT", "name": "Event" }
    ],
    "variable": [
      {
        "accountId": "6000000000", "containerId": "190000003", "variableId": "1",
        "name": "DLV - page.type", "type": "v",
        "parameter": [
          { "type": "INTEGER", "key": "dataLayerVersion", "value": "2" },
          { "type": "BOOLEAN", "key": "setDefaultValue", "value": "false" },
          { "type": "TEMPLATE", "key": "name", "value": "page.type" }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "6000000000", "containerId": "190000003", "variableId": "2",
        "name": "DLV - user.plan", "type": "v",
        "parameter": [
          { "type": "INTEGER", "key": "dataLayerVersion", "value": "2" },
          { "type": "BOOLEAN", "key": "setDefaultValue", "value": "false" },
          { "type": "TEMPLATE", "key": "name", "value": "user.plan" }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "6000000000", "containerId": "190000003", "variableId": "3",
        "name": "DLV - cta.id", "type": "v",
        "parameter": [
          { "type": "INTEGER", "key": "dataLayerVersion", "value": "2" },
          { "type": "BOOLEAN", "key": "setDefaultValue", "value": "false" },
          { "type": "TEMPLATE", "key": "name", "value": "cta.id" }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "6000000000", "containerId": "190000003", "variableId": "4",
        "name": "DLV - cta.text", "type": "v",
        "parameter": [
          { "type": "INTEGER", "key": "dataLayerVersion", "value": "2" },
          { "type": "BOOLEAN", "key": "setDefaultValue", "value": "false" },
          { "type": "TEMPLATE", "key": "name", "value": "cta.text" }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "6000000000", "containerId": "190000003", "variableId": "5",
        "name": "DLV - products", "type": "v",
        "parameter": [
          { "type": "INTEGER", "key": "dataLayerVersion", "value": "2" },
          { "type": "BOOLEAN", "key": "setDefaultValue", "value": "false" },
          { "type": "TEMPLATE", "key": "name", "value": "products" }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "6000000000", "containerId": "190000003", "variableId": "6",
        "name": "DOM - product name", "type": "d",
        "parameter": [
          { "type": "TEMPLATE", "key": "elementId", "value": "product-name" },
          { "type": "TEMPLATE", "key": "selectorType", "value": "ID" }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "6000000000", "containerId": "190000003", "variableId": "7",
        "name": "CJS - normalize price", "type": "jsm",
        "parameter": [
          { "type": "TEMPLATE", "key": "javascript", "value": "function(){\n  var raw = document.querySelector('#product-price')?.getAttribute('data-raw-price') || '';\n  if (/free/i.test(raw)) return 0;\n  var n = parseFloat(raw.replace(/[^0-9.]/g, ''));\n  return isNaN(n) ? undefined : n;\n}" }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "6000000000", "containerId": "190000003", "variableId": "8",
        "name": "Lookup - page category (homepage, commercial, content)", "type": "smm",
        "parameter": [
          { "type": "TEMPLATE", "key": "input", "value": "{{Page Path}}" },
          { "type": "LIST", "key": "map", "list": [
            { "type": "MAP", "map": [
              { "type": "TEMPLATE", "key": "key", "value": "/home" },
              { "type": "TEMPLATE", "key": "value", "value": "homepage" }
            ]},
            { "type": "MAP", "map": [
              { "type": "TEMPLATE", "key": "key", "value": "/pricing" },
              { "type": "TEMPLATE", "key": "value", "value": "commercial" }
            ]},
            { "type": "MAP", "map": [
              { "type": "TEMPLATE", "key": "key", "value": "/blog" },
              { "type": "TEMPLATE", "key": "value", "value": "content" }
            ]}
          ]}
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "6000000000", "containerId": "190000003", "variableId": "9",
        "name": "RegEx - page section (content, product, purchase, other)", "type": "remm",
        "parameter": [
          { "type": "TEMPLATE", "key": "input", "value": "{{Page Path}}" },
          { "type": "BOOLEAN", "key": "fullMatch", "value": "true" },
          { "type": "BOOLEAN", "key": "ignoreCase", "value": "true" },
          { "type": "LIST", "key": "map", "list": [
            { "type": "MAP", "map": [
              { "type": "TEMPLATE", "key": "key", "value": "^/blog/.*" },
              { "type": "TEMPLATE", "key": "value", "value": "content" }
            ]},
            { "type": "MAP", "map": [
              { "type": "TEMPLATE", "key": "key", "value": "^/product/.*" },
              { "type": "TEMPLATE", "key": "value", "value": "product" }
            ]},
            { "type": "MAP", "map": [
              { "type": "TEMPLATE", "key": "key", "value": "^/(cart|checkout)$" },
              { "type": "TEMPLATE", "key": "value", "value": "purchase" }
            ]},
            { "type": "MAP", "map": [
              { "type": "TEMPLATE", "key": "key", "value": ".*" },
              { "type": "TEMPLATE", "key": "value", "value": "other" }
            ]}
          ]}
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "6000000000", "containerId": "190000003", "variableId": "10",
        "name": "Cookie - ht_demo", "type": "k",
        "parameter": [
          { "type": "TEMPLATE", "key": "name", "value": "ht_demo" },
          { "type": "BOOLEAN", "key": "decodeCookie", "value": "true" }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "6000000000", "containerId": "190000003", "variableId": "11",
        "name": "CJS - web storage (ht_plan, ht_ab_variant)", "type": "jsm",
        "parameter": [
          { "type": "TEMPLATE", "key": "javascript", "value": "function(){\n  try {\n    var plan = window.localStorage.getItem('ht_plan');\n    var variant = window.sessionStorage.getItem('ht_ab_variant');\n    return { plan: plan, variant: variant };\n  } catch (e) { return undefined; }\n}" }
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "6000000000", "containerId": "190000003", "variableId": "12",
        "name": "CJS - reshape items", "type": "jsm",
        "parameter": [
          { "type": "TEMPLATE", "key": "javascript", "value": "function(){\n  var products = {{DLV - products}} || [];\n  return products.map(function(p){\n    return { item_id: p.sku, item_name: p.name, price: Number(p.cost), quantity: p.qty };\n  });\n}" }
        ],
        "fingerprint": "0"
      }
    ],
    "trigger": [
      {
        "accountId": "6000000000", "containerId": "190000003", "triggerId": "1",
        "name": "Event - cta_click", "type": "CUSTOM_EVENT",
        "customEventFilter": [
          { "type": "EQUALS", "parameter": [
            { "type": "TEMPLATE", "key": "arg0", "value": "{{_event}}" },
            { "type": "TEMPLATE", "key": "arg1", "value": "cta_click" }
          ]}
        ],
        "fingerprint": "0"
      },
      {
        "accountId": "6000000000", "containerId": "190000003", "triggerId": "2",
        "name": "Event - order", "type": "CUSTOM_EVENT",
        "customEventFilter": [
          { "type": "EQUALS", "parameter": [
            { "type": "TEMPLATE", "key": "arg0", "value": "{{_event}}" },
            { "type": "TEMPLATE", "key": "arg1", "value": "order" }
          ]}
        ],
        "fingerprint": "0"
      }
    ],
    "tag": [
      {
        "accountId": "6000000000", "containerId": "190000003", "tagId": "1",
        "name": "Custom HTML - Test", "type": "html",
        "parameter": [
          { "type": "TEMPLATE", "key": "html", "value": "<script></script>" },
          { "type": "BOOLEAN", "key": "supportDocumentWrite", "value": "false" }
        ],
        "fingerprint": "0",
        "firingTriggerId": ["1", "2"],
        "tagFiringOption": "ONCE_PER_EVENT",
        "monitoringMetadata": { "type": "MAP" }
      }
    ],
    "fingerprint": "0",
    "tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/6000000000/containers/190000003/versions/0?apiLink=version"
  }
}
