Tracking HubSpot successful form submissions

Hello! I want to track only successful form submissions on the website. They are created in HubSpot and added on the website using JavaScript. We don’t have a thank you page, but a thank you message displayed in the same box as the form is. How can this be done as in GTM with the hs-form-guide Data layer, but adapted to MTM?


I also would like to know that.