Title: Javascript for Matomo Event when submitting
Last modified: July 8, 2020

---

# Javascript for Matomo Event when submitting

 *  Resolved [garfula43](https://wordpress.org/support/users/garfula43/)
 * (@garfula43)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/javascript-for-matomo-event-when-submitting/)
 * Hello
 * I’m using the WPforms. We use Matomo for analytics and I’d like to trigger an
   event whenever a user submits the small form. I’m not sure how and where to add
   the javascript. From my understanding I can:
    1. add the javascript that triggers
   the event with a snippet plugin 2. somehow this script has to be triggered when
   a user submits. However I’m not sure how to do this.
 * Help would be much appreciated.
 * Infos:
    WPforms Plugin: Version 1.6.1 Wordpress Theme: Twentyseventeen (Version:
   2.3) Wordpress: Version 5.4.2

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Prashant Rai](https://wordpress.org/support/users/prashantrai/)
 * (@prashantrai)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/javascript-for-matomo-event-when-submitting/#post-13100717)
 * Hello [@garfula43](https://wordpress.org/support/users/garfula43/),
 * I apologize as customizations like this is outside of our scope for support. 
   In case you’d like to look into custom development options, we highly recommend
   [using Codeable](https://wpforms.com/docs/how-to-find-wpforms-custom-development-options-with-codeable/).
 * Thanks
 *  Thread Starter [garfula43](https://wordpress.org/support/users/garfula43/)
 * (@garfula43)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/javascript-for-matomo-event-when-submitting/#post-13208553)
 * Thanks Prasant. I can understand that. Just wanted to know if it’s possible. 
   Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Javascript for Matomo Event when submitting’ is closed to new replies.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [snippet](https://wordpress.org/support/topic-tag/snippet/)

 * 2 replies
 * 2 participants
 * Last reply from: [garfula43](https://wordpress.org/support/users/garfula43/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/javascript-for-matomo-event-when-submitting/#post-13208553)
 * Status: resolved