Personally I've never been big enough on the web [ = had enough visitors ] to bother with tracking, and even then I simply don't care whether people visit my sites or not; but under GDPR any site can track / check any visitor, including IPs, which may be kept, because otherwise whom would they know whom to ban ?
.
Corporate American media --- e.g. the sad old capitalist dementos who collectively lost their goddamn minds at being disobeyed in the 2016 election --- is amusingly still butt-hurt over GDPR, and half a year later still sends out a flurry of deceptive and cheating notices to Europeans, to try and keep personalised advertising on their sites ( which hysteria at having their profits compromised oddly enough is not done by Asian or any non-American corporate sites ).
Sites can use advertising; but have to allow one to turn personalised advertising off; only continuing the latter without explicit consent breaks GDPR; and I should argue it has been allowed to keep necessary PII --- such as sign-up email addresses --- as long as they are needed ( which is as long as the website lasts ). Pure tracking is not a violation if no PII is involved.
.
https://moz.com/blog/gdpr-and-online-marketing.
.
And if a visitor clearly consents to cookies they are legitimately in the system.
If tracking data is collected that allows an individual to be identified – by their IP address for example – consent must be obtained.
https://www.hipaajournal.com/make-a-website-gdpr-compliant/