How Do I Exclude CMS URLs

Because content managers must enter the script in the CMS in order to move it to production, when the content managers test/preview pages, they are registering as visits. How do I create a global exclusion to prevent this from happening? I know it would be a huge performace hit, but it would be nice if there was a way to match ID to URL before it is tracked.

see: How do I exclude traffic from an IP or a range of IP addresses? - Analytics Platform - Matomo
How do I exclude / ignore my traffic from Piwik? - Analytics Platform - Matomo

I understood that to be the setting for IP addresses that would not be counted in the tracking (requests), not IP addresses that may have the Piwik script for a particular website. This needs to be more like query strings to be excluded and maybe that is the answer, just want to clarify.

Example:

www.sales.acme.com (registerd in Piwik site ID 1)

www.cmssystem.acme.com/sales contains the script indicating siteid=1 and is used for content management and previews prior to promoting to production. (need to exclude www.cmssystem.acme.com*)