I got turned off with the cookie popup. There's literally no reason why you need any of that. You want to know which pages people are visiting? Mine your htaccess logs.
Unfortunately this is hosted on github pages and I can't get usage information without using 3rd party analytics.
Well then, I guess the two solutions are obvious.
I think he's happy with the solution he found...
Just so you know, opt-out cookie banners are illegal in the EU. If you want to only measure visits, there are alternatives to Google Analytics that don't even require a notice, since they don't record personal information (Plausible is one, but there are many others).