# ContainerVariablesByContainerVersion: Matomo Matomo Tag Manager Container Variables ## Documentation A named value tags and triggers read: a cookie, a URL parameter, a fixed constant, or Matomo's own tracking configuration. Read and insert; update/delete deferred as representative-sibling scope (see the remarks above ContainerTriggersByContainerVersion for the shared insert-side reasoning this table's own build closed). - Catalog: `Matomo` - Schema: `TagManager` - Primary Keys: `idvariable` - Label: Matomo Tag Manager Container Variables - Retrieve: True - Insert: True - Update: False - Delete: False ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `ContainerVariablesByContainerVersion`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values. Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three. Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third. | Name | Data Type | Required | Default Value | Documentation | |---|:---:|:---:|:---:|---| | `id_container_version` | `number` | ☑ | | The version to list variables of - Matomo.TagManager.ContainerVersionsByContainer.idcontainerversion. | | `id_container` | `varchar2` | ☑ | | The container to list variables of - Matomo.TagManager.Containers.idcontainer. | | `id_site` | `number` | ☑ | | The Matomo site ID the container belongs to. | ## Columns of Table Function The columns of the table function `ContainerVariablesByContainerVersion` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `created_date` | `varchar2` | | ☐ | Date and time the variable was created, as returned by Matomo. Matomo does not document which time zone this is expressed in. | | `default_value` | `varchar2` | | ☐ | Value used when the variable itself cannot be resolved. | | `description` | `varchar2` | | ☐ | Variable description. | | `idcontainer` | `varchar2` | | ☐ | The container this variable belongs to - addContainerVariable's own required insert argument. Nullable because getContainerVariables' own response, unlike getContainerVersions', carries no idContainer property at all (confirmed live 2026-08-30) - this column always reads null, supply it only on insert. | | `idcontainerversion` | `int32` | | ☑ | The version this variable belongs to. Same case-sensitivity reason as idsite/idcontainer below: addContainerVariable's own PHP parameter is 'idContainerVersion' - measured live 2026-08-30, the lowercase field name alone answers a 400 with no body this method's own security level redacts from the trace, found only by printing the actual form body built. | | `idsite` | `int32` | | ☑ | Site ID the container belongs to. | | `idvariable` | `int32` | | ☑ | Variable ID - assigned by Matomo on insert, never written. | | `lookup_table` | `varchar2` | | ☐ | Lookup table mapping the variable's raw value to a substitute, as JSON text, for a type that supports one. | | `name` | `varchar2` | | ☑ | Variable name. | | `parameters` | `varchar2` | | ☐ | Type-specific configuration, as JSON text, in the same shape as the parameters column of ContainerTriggersByContainerVersion - decomposed into PHP's own bracket-array form fields on insert, see ParametersToFormBody. | | `status` | `varchar2` | | ☐ | Variable status, for instance 'active'. | | `type` | `varchar2` | | ☑ | Variable type, as defined by Matomo: for instance 'Constant' (one parameter, constantValue) or 'MatomoConfiguration' (over 60). The types available per context are in TagManager.AvailableVariableTypesByContext. | | `updated_date` | `varchar2` | | ☐ | Date and time the variable was last changed, as returned by Matomo. Matomo does not document which time zone this is expressed in. |