@johnboone,
I tried your solution and it works perfectly as long as I accept the Cookie Notice on the homepage of my site. However, if I accept the notice on another page GA doesn’t start tracking unless I navigate back to the homepage. Once I have hit the homepage it will track me to any other page. Any idea?