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?

Really! No answer here?

Hi, I tried to follow those steps :https://www.ceres.agency/blog/tracker-soumissions-formulaire-hubspot-google-analytics-google-tag-manager
But it doesn’t work… Any clue why ?

Hi @Charlotte_Devillers
I think you can be inspired by the link you provided, but have to adapt the code and use Matomo API instead of Google Analytics one…
How did you proceed?

Hello! Did you find a solution on this one? I tried by following the GA steps, but it doesn’t work in Matomo.