Is there any jurisdiction where you actually need a visitor's permission to count pageview stats? Seems pretty far-fetched to me.
Obviously you should not keep any other information with the page view events as to not be able to relate other events with the page view but it's definitely doable
Agree btw, all these “basic functionality” cookie consent toggles are FUD by marketers who want to confuse you into giving up.