invantive documentation
Invantive Support ForumsLog In / Sign Up

Containers: Matomo Matomo Tag Manager Containers

insert REST

  • Catalog: Matomo
  • Schema: TagManager
  • Primary Keys: idcontainer
  • Label: Matomo Tag Manager Containers

Can retrieve data and change data using insert.

Summary

A Google-Tag-Manager-like container of tags, triggers and variables, one per site per context.

API Source

  • Endpoint: /index.php?module=API&method=TagManager.getContainers&idSite={id_site}&format=json

Performance Characteristics

Characteristic Value
Write rows per minute 3,620

The result can be cached on the client.

Parameters

Name Data Type Required Default Documentation
id_site number The Matomo site ID to list containers of.

Table Columns

The columns of the table Containers 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 and update.

Name Data Type Label Required Marks Documentation
activelySyncGtmDataLayer int32 itgen_mat_activelysyncgtmdatalayer filters on the platform, writable 1 if this container actively syncs Google Tag Manager's data layer, 0 otherwise.
context varchar2 itgen_mat_context filters on the platform, writable Context the container runs in - 'web' is the only one this container has ever answered (TagManager.getAvailableContexts, measured 2026-08-25). Set on insert; Matomo's own updateContainer has no parameter to change it afterwards.
created_date varchar2 itgen_mat_created_date filters on the platform, writable Date and time the container was created, as returned by Matomo. Matomo does not document which time zone this is expressed in.
description varchar2 itgen_mat_description filters on the platform, writable Container description.
idcontainer varchar2 itgen_mat_idcontainer filters on the platform, writable Container ID - an 8-character identifier Matomo assigns on insert, never written. Globally unique, but every read and write against it still needs id_site alongside it (Matomo's own ContainersDao filters on both together).
idsite int32 itgen_mat_idsite filters on the platform, writable Site ID the container belongs to.
ignoreGtmDataLayer int32 itgen_mat_ignoregtmdatalayer filters on the platform, writable 1 if this container ignores an existing Google Tag Manager data layer, 0 otherwise.
isTagFireLimitAllowedInPreviewMode int32 itgen_mat_istagfirelimitallowedinpreviewmode filters on the platform, writable 1 if a tag's own fire limit is honoured in preview mode, 0 otherwise.
name varchar2 itgen_mat_name filters on the platform, writable Container name.
status varchar2 itgen_mat_status filters on the platform, writable Container status, for instance 'active'.
updated_date varchar2 itgen_mat_updated_date filters on the platform, writable Date and time the container was last changed, as returned by Matomo. Matomo does not document which time zone this is expressed in.