The best way to collect the customer data is using forms. You can create many types of forms such as feedback forms, surveys, contact form, registration form, donation form, audit form etc.
Check the programmatic solution to create custom form in Magento 2.
Visit: https://meetanshi.com/blog/create-custom-form-in-magento-2/