Usually not. The system will automatically minify your template when a container is being created so you don't always have to remember to minify your template after each change.
However, the minifier we use in PHP is quite basic and does for example not rename any variables to reduce the file size. It does remove unneeded comments and whitespace though. If your template is very large, for example larger than 30kb, you may want to provide a minified version of your template as well. You can do this by minifying your template and naming the file
For example if your tag is implemented in
PopupTag.web.js, you may provide a
If you self host your Matomo on premise, you can configure the list of available environments in the plugin settings by going to "Administration => Plugin Settings".
The "live" environment will always be present.