I'm building a site using HTML, CSS, and JavaScript, and it's hosted on Digital Ocean. What's the simplest method to add cookie consent, especially since I plan to use Google Analytics? Thanks for any help!
4 Answers
If you're looking to keep things simple and only need basic web metrics, consider using a GDPR-compliant tool like Umami. It doesn't use cookies or log personal data, so you won’t need a cookie banner or to mention it in your privacy policy. I’ve been using Umami, and it works great for my needs!
But does Umami track returning users, or is it just unique visits?
A super simple option is to just use something like Osano for cookie consent. You just copy and paste their script, and it'll manage the banner and consent for you without any hassle.
If you're set on using Google Analytics, you might want to check out Google's own Consent Management Platform (CMP). You can pair it with Google Tag Manager to handle user consent effectively. They have a guide on it here: [Google CMP Guide](https://support.google.com/analytics/answer/14545841?hl=en).
Honestly, cookie consent isn’t really necessary. It's a bit of a nuisance for users, and many just opt in anyway. The EU won’t come after you for not having it, so it might be best to skip the clutter on your site.
Right, but it's still important to respect user rights. Just ignoring it seems a bit careless.
LOL, exactly! Let’s keep the web free! Cookie consent should've been left up to browser settings.

I totally second that! Umami has been my go-to for web analytics; the setup is straightforward, and the data quality is great compared to GTM and GA4.