Best way to separate data from development/testing/staging/demo domains and production

We are interested in setting up Matomo. Matomo will need to report analytics for a single page application created with angularjs which is being developed, tested, staged for acceptance and demoed with.

We want to separate the data coming from these domains so they will not mix with our production domains analytics. We could setup 2 different Matomo environments but we were wondering whether there are better ways to separate them.

Is there a way to group domains together and have analytics per group and individual sites? or do you have some other solution?

thanks in advance

Hi,

I am not sure I understand your problem. If you want to track your development and live site separately what’s wrong with adding two separate websites in Matomo and switch between two siteIDs on build?

If we want to see total users of all websites together we do not want to see the visits from all non production sites.

On the following page in the demo we can see the total users but this would be poluted if websites are in there which are non-production.
https://demo.matomo.org/index.php?module=MultiSites&action=index&idSite=3&period=day&date=yesterday&updated=1#?idSite=3&period=day&date=yesterday&category=Dashboard_Dashboard&subcategory=1&module=MultiSites&action=index

Hi,

In that case you could:

  • remove view rights to non-production Matomo sites
  • create a seperate non-production Matomo site
  • don’t use tracking at all in non-production sites and remove the tracking code from them. (Maybe hard if you wan’t to test the integration)

I’d be also interested in a solution for this!

Why I do NOT want to have different site IDs? Because I need to do the setup for everything twice… dashboards, goals, events etc etc…

I’d really love to be able to have a single setup but get statistics for staging/production separately.

I’d be absolutely fine with having different site IDs if I could reuse the exact same settings from site ID 1 also for site ID 2. Or copy them over maybe.