Universal Analytics offers an IP-address masking feature that truncates user IP addresses to enhance privacy and comply with data protection regulations. The process occurs in memory before any data is stored, ensuring full IP addresses are never recorded. Website owners can implement this feature using the anonymize_ip configuration in the gtag.js library.