How to add second Matomo & container id to cinfiguration?

Hi,
We need your help to add second Matomo & container id to our configuration.

Based on this information:
https://developer.matomo.org/guides/tagmanager/integration-plugin

We have currently this kind of configuration:

var _mtm = _mtm || [];
mtm.push({‘mtm.startTime’: (new Date().getTime()), ‘event’: ‘mtm.Start’});
var d=document, g=d.createElement(‘script’), s=d.getElementsByTagName(‘script’)[0];
g.type=‘text/javascript’; g.async=true; g.defer=true; g.src='https://matomo.oursite.com/js/container
{{ oda_matomo_container }}.js’; s.parentNode.insertBefore(g,s);

How we can add second Matomo instance?
I was thinking something like this - should this work?

Thank you for your help.

Hi,

See this help about multiple containers in one page:
https://developer.matomo.org/guides/tagmanager/integration-plugin#embedding-multiple-containers