How to track HubSpot form submissions using tag manager?

I want to track HubSpot form submissions using Matomo tag manager and record it in analytics as Goals.

How can I do it?