a practice I follow to comply with European regulations (GDPR).
hahaha and you talk about privacy but you like to comply with the state ruling over you. How about tell them to fuck off, is not their own business? Who is "european regulation" that can rule what you do on your own website? Why do you need to gather user statistics? Are you sell it? Is that website a commercial site or a informational site?