Direct JavaScript for form

Good afternoon,

We would like to track the forms sent.

I used the JavaScript to create my tag

  1. Using Matomo Tag Manager or Direct JavaScript: This option provides the greatest flexibility but requires technical expertise. If your website does not forward the user to another page after submitting a form successfully, you may need to track a form conversion manually. When you implement a form conversion manually, make sure to track the conversion only when the form was submitted without any validation errors.

I took a code like

_paq.push(['FormAnalytics::trackFormConversion', 'mktoForm_xxx']);

Then, I created a custom HTML tag and copy/paste the code

The trigger is Submitted Form with the specific form ID

When I go into Matomo Analytics, the form statistics are 0.

Thanks for your help
Best regards