Tracking a submit button

Hi guys, I am trying to find the method of tracking the submit button on my contact page

Do you have a dedicated “thank you” page after submitting? If yes, I’d go with a Goal (either based on the URL or triggered manually).

Hi quba, no I don’t. My “thank you” is an automated show and hide accordion on the same page.

So just set it up manually. You can use either events or goals, e.g.
_paq.push(['trackEvent', 'Your category', 'submit', 'contact page']);

I suggest using goals here. See JavaScript Tracking Client: Integrate - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3

Awesome, thanks a lot. I will work on it

Hii, I have tried this : _paq.push([‘trackEvent’, ‘Your category’, ‘submit’, ‘contact page’]); :
But I want to get the information which user fills in the form on my website in piwik/matoma. This method is not able to do that.
help is much appreciated. thanks

Hi @shreyas21,

either you write custom Javascript that does what you want and then sends the Events via _paq.push([‘trackEvent’, ‘Your category’, ‘submit’, ‘contact page’]); (you can obviously replace the strings with variables.

Or you look into the Form Analytics Premium plugin:

Will look into this.