Comment by asimops
To my understanding of the GDPR, as soon as you track any identifier that makes those data non-anonymous you still need consent for that. It is not about the cookies per se.
Would that mean that you need consent for storing IP addresses in logs?
It depends on what you use them for, but I think you would need it documented that you do it and why.
There are six legal bases for processing personal data, consent is only one of those.