# Track a custom MVC Form widget

In this tutorial, you create an MVC Form widget for submitting a request for dinner menu. You want to track form submissions to send contact data to Sitefinity Insight. Depending on the specific of your scenario, you can do this by:

* Tracking form submissions server-side\
  You create a custom event handler, so that the Sitefinity Insight connector tracks forms submissions on your Sitefinity CMS site.
* Tracking form submissions client-side\
  You enable tracking by leveraging Sitefinity Insight JavaScript SDK, so that the connector sends the data as interactions to Sitefinity Insight every time a contact submits the form.

For more information, see:

* [Create and register widgets](https://www.progress.com/documentation/sitefinity-cms/create-widgets-mvc)
* [Implement custom EventHub events](https://www.progress.com/documentation/sitefinity-cms/for-developers-implement-custom-events)
* [Create new data collection handlers](https://www.progress.com/documentation/sitefinity-cms/insight/track-data-server-side#create-new-data-collection-handlers)
* [Track data client-side](https://www.progress.com/documentation/sitefinity-cms/insight/track-data-client-side)

> info  **PREREQUISITES**: You configured the Sitefinity Insight connector. For more information, see [Connect to Sitefinity Insight](https://www.progress.com/documentation/sitefinity-cms/connect-to-digital-experience-cloud).

## Create the custom MVC Form widget

1. Create a new class library and name it `CustomFormWidget`.
2. In the `Mvc` folder, create the following folders:
   * *Controllers*
   * *Models*
   * *Views*
