Earlier quoted context omitted.
No, you're wrong. You need consent to use IP address for analytics, even if lawfully collected for another reason under a different legal basis. Lots of precedent on this and it's clear cut.
But you don't need to use the ip for analytics. Aggregate the data and throw it away.
Again, this is a completely settled matter in the EU, so you can easily look it up if your don't believe me.