But you might find it easier (or whatever) to integrate Google Analytics than set up your own Matomo instance, so you'll have to ask the users if they want their data shared with Google.
It's not as complicated as most companies want to portray it.
edit: I had our company website at this point. Locally hosted fonts, no external tracking, own Matomo instance, everything was great and I could finally remove the cookie banner. Then marketing came around the corner, wanted to run paid ads on LinkedIn and Xing, also it was "sooooo comfortable" to link Google Analytics with Google Ads and see how your campaigns perform. Now there are more external scripts than ever, we have Cookiebot (let's see for how much longer :-D) and a cookie banner with the usual settings and lawyer copy on it. I hate it.
I don't think that it is always trivially obvious how to correctly comply, like some other comments claim. Especially when you really want to eliminate all legal risk and avoid Abmahnfallen.
IANAL, but if the people/company running it is the same entity I think you should be fine. Browers on the other hand will only look at the domains and think it's somebody else... So... Yes, better safe than sorry.
Because they are the path of least resistance. Companies don't want to spend any time figuring out how to actually be compliant, so they slap these cookie banners on, most of which aren't compliant.
Also they're not "cookie banners". You don't need to show a banner to set cookie that your site needs to function (such as login, etc.).
They're "we're doing stuff you didn't ask us to and sharing your data with over 300 other companies" - banners.
I use klaro.js as a consent tool. No need for a CDN.
I configured it such that on the first screen you can opt in, opt out or choose to choose.
I hate the ones (them being not in line with the regulations btw) that force you to go to the second screen for saying "no".
It needs to be as easy as one click for yes or no.
Absolutely. At the very least it should be legally required that "Reject all" is at least as easy and prominent as "Accept All" if we already started to legally require clicks for consent.
Then why would you implement them (assuming your company is not rotten), if not for compliance with regulation that failed to find the sweet spot?