# ContainerTriggersByContainerVersion: Matomo Matomo Tag Manager Container Triggers
## Documentation
A condition that fires the tags attached to it: a page view, a click, a timer. Read and insert; update/delete deferred as representative-sibling scope, the same reasoning ContainerVariablesByContainerVersion's own build already closed.
- Catalog: `Matomo`
- Schema: `TagManager`
- Primary Keys: `idtrigger`
- Label: Matomo Tag Manager Container Triggers
- 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 `ContainerTriggersByContainerVersion`. 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 triggers of - Matomo.TagManager.ContainerVersionsByContainer.idcontainerversion. |
| `id_container` | `varchar2` | ☑ | | The container to list triggers 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 `ContainerTriggersByContainerVersion` 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 |
|---|:---:|---|:---:|---|
| `conditions` | `varchar2` | | ☐ | Conditions narrowing when the trigger fires, as JSON text. |
| `created_date` | `varchar2` | | ☐ | Date and time the trigger was created, as returned by Matomo. Matomo does not document which time zone this is expressed in. |
| `description` | `varchar2` | | ☐ | Trigger description. |
| `idcontainer` | `varchar2` | | ☐ | The container this trigger belongs to - addContainerTrigger's own required insert argument. Nullable because getContainerTriggers' own response carries no idContainer property at all, the same absence ContainerVariablesByContainerVersion's own idcontainer already documents. |
| `idcontainerversion` | `int32` | | ☑ | The version this trigger belongs to. addContainerTrigger's own PHP parameter is 'idContainerVersion' - case-sensitive, same reason as ContainerVariablesByContainerVersion's own idcontainerversion. |
| `idsite` | `int32` | | ☑ | Site ID the container belongs to. |
| `idtrigger` | `int32` | | ☑ | Trigger ID - assigned by Matomo on insert, never written. |
| `name` | `varchar2` | | ☑ | Trigger name. |
| `parameters` | `varchar2` | | ☐ | Type-specific configuration, as JSON text. |
| `status` | `varchar2` | | ☐ | Trigger status, for instance 'active'. |
| `type` | `varchar2` | | ☑ | Trigger type, as defined by Matomo: for instance 'PageView' or 'AllElementsClick'. The types available per context are in TagManager.AvailableTriggerTypesByContext. |
| `updated_date` | `varchar2` | | ☐ | Date and time the trigger was last changed, as returned by Matomo. Matomo does not document which time zone this is expressed in. |