> IP address is defined in GDPR as PII: https://www.gdpreu.org/the-regulation/key-concepts/personal-...
According to your link: "Personal data relating to GDPR does not cover: ... Properly anonymized data ..."
So OP might could hash the ip address (something better than md5, ideally) and save that.