Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

How to add second Matomo & container id to cinfiguration?

$
0
0

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.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles