Collecting data ethically involves being transparent about what data is being collected and why. Always use opt-in forms where users can voluntarily provide their information. Make sure to include a clear privacy policy that outlines how their data will be used. Additionally, avoid collecting unnecessary information; only ask for what you need to provide a better user experience.