When you create a new site in Matomo (most of the time a container will equal one website), the Tag Manager will automatically pre-configure a container with a Matomo tracking code tag for you.

This tracking code is available in your Matomo settings under Measureables > Tracking Code > Tag Manager:

If you want to create a container for an already existing site, or create an additional container, log in to your Matomo and click on Tag Manager > Manage Containers.

You will see the list of containers:

manage containers in matomo tag manager

Click Create new container. Here you can enter the name and description (optional) for your container. Use any name that helps you identify this container, for example the name of the site or what you are using this container for. The Context option will be disabled as we do not yet support a different context such as Android or iOS.

new container in matomo tag manager

Read more about the settings to synchronise events from the Google Tag Manager data layer and ignore the Google Tag Manager data layer.

Once you have created a container, you will automatically be redirected to the container dashboard.

Containers can be deleted from the Manage Containers page by clicking the delete icon next to the relevant container. Note: This action is irreversible and will permanently remove the container and its components. Additionally, if a website is deleted, it will also delete any associated containers.