I would not want any non-production information on my production systems. You really want to avoid cross-contaminating data, creating system instability issues, security issues, etc…
The best way to do it is to copy from prod to staging your web and analytics, then copy staging down from there. Beyond staging, none of your data should be real anymore, so anonymize your data in local, dev, test, etc… Fake/dummy data is okay to test with in these environments.
Whatever changes you make to Matomo, just copy them upwards, one environmental level at a time.