This. It boggles the mind that browser vendors (and standards committee) haven‘t come up with a preferences page for cookie consent. Expose that through JS and/or send it to the server via a HTTP header.
(I wouldn't lament the loss of invasive analytics, but the job losses would be saddening)