Multiple subdomains and outlinks - how to set this up in Tag Manager

Hi,

We are tracking domain www.site.com + multiple subdomains such as test.site.com.

How do we set tracking for these in Matomo Tag Manager using? What should we add to Cookie Domain and what should we add do Cookie Path? We have already set all of wanted domains under Websites Management, URL’s.

At the moment all pages are showing under Outlinks report, which is not the purpose at the moment.

Please let us know how to fix this, as we would like to sort this through TMS, without coding site any more.

-Antti

Hi there,

I solved a similar issue some days ago.
I had a doubt that MTM was working as you are suggesting, so I added a custom HTML tag in MTM and used the documentation from developer.matomo.org.

Hope that helps,

Thanks @RonanChardonneau!

Do you mean this documentation https://developer.matomo.org/guides/tracking-javascript-guide#tracking-one-domain-and-its-subdomains-in-the-same-website ?

If not, please share direct link to documentation, thanks!

1 Like