variable_payload | object or string | Yes | - | Full Variable resource (object or JSON string) matching the Google Tag Manager API v2 Variable spec. Must include name and type (e.g. v for data layer variable, c for constant, jsm for custom JavaScript); settings go in parameter. You can copy a variable from gtm_list_variables and edit it (read-only fields are stripped automatically). Example data layer variable: {“name”: “DL - purchase value”, “type”: “v”, “parameter”: [{“type”: “integer”, “key”: “dataLayerVersion”, “value”: “2”}, {“type”: “template”, “key”: “name”, “value”: “ecommerce.value”}]} |