In Matomo On-Premise, the plugin needs to be installed and in Matomo Cloud, Form Analytics is available by default. You can go to Manage, track and analyse form article and follow the steps to setup Form tracking.
In some cases, you need to do additional steps. Learn more about setting up Form Analytics tracking in the developer guide.

Previous FAQ: Manage, track and analyse forms