Gathering information about your customers is generally legal, but various laws and regulations govern how companies collect and use customer data. It's important to follow all relevant data privacy regulations and best practices.