Setting up cookie consent for WordPress Google Analytics without paid tools

Hi everyone,

I manage multiple WordPress websites and recently decided to add Google Analytics tracking to them. I’ve already connected Google Tag Manager, GA4, Search Console, and installed the Site Kit plugin from Google.

In Site Kit, I turned on consent mode and the WP Consent API feature. Now I’m stuck trying to figure out how to actually collect user consent for cookies.

I looked at various consent management platforms like Complianz, CookieBot, and CookieYes, but they’re pretty expensive, especially when you have several websites to manage. The pricing sometimes costs more than my domain renewals!

Does anyone know of free alternatives or methods to handle cookie consent properly? I want to stay compliant with privacy laws but without breaking the bank. Any recent guides or tutorials would be really helpful too.

Thanks in advance for any suggestions!

Hit this exact problem last year when we acquired three smaller sites and suddenly needed cookie compliance everywhere.

CookieYes saved my ass - their free tier handles up to 100 pages. I know you said it’s expensive, but the free version does basic GDPR compliance and works perfectly with Site Kit’s consent mode.

Setup’s easy. Drop the script in your header and it auto-detects Google Analytics through Tag Manager. Consent signals flow straight to GA4, which is what you actually need.

Tested it against our enterprise solution - honestly couldn’t spot any difference for basic stuff. Free tier gives you custom banners, proper script blocking, and all the consent management you need.

This video shows the full WordPress setup:

For multiple sites, just reuse the same config template. Test the consent flow in GA4’s real-time reports to make sure everything’s working.

I’d also check out GDPR Cookie Consent by WebToffee - I’ve used it on tons of client sites and it works great. The free version handles basic consent and plays nice with WP Consent API. Best part? It blocks scripts until users give consent, which you absolutely need for compliance. I’ve tested it with GA4 through Site Kit and the consent signals go through to Google’s servers just fine. Sure, the free version’s banner customization is pretty basic, but it does what you need. Just make sure you set up your cookie categories right so all your tracking scripts get managed properly.

go with the basic WP Cookie Consent plugin - it’s free and works great. I’v used it for years across multiple sites and it plays nice with Site Kit’s consent mode. Sure, the styling’s pretty basic, but u can throw in some custom CSS if you want it prettier. beats paying those insane monthly fees.

Skip WordPress plugins entirely - build something way more flexible with automation.

I set up cookie consent for a bunch of sites using Latenode. Instead of paying monthly fees or dealing with plugin limitations, I created a workflow that:

  • Shows a custom consent banner
  • Stores user preferences in localStorage
  • Dynamically loads GA4 scripts based on consent
  • Sends proper consent signals to Google Tag Manager

You control everything. No bloated plugins slowing down your sites, no monthly subscriptions, and it works across all your WordPress installations.

I use Latenode’s HTTP requests to communicate consent status directly with GTM, and you can customize the banner styling however you want. Takes maybe an hour to set up, then you just deploy it everywhere.

For multiple sites, this saves serious money compared to subscription tools. Plus you get better performance since you’re not loading heavy consent management scripts.

Check it out: https://latenode.com

I have faced a similar scenario managing several sites. A good solution is Cookie Notice & Compliance by dFactory, which is free and works seamlessly with the WP Consent API you’ve enabled via Site Kit. The setup is user-friendly and it effectively manages GDPR compliance along with Google Analytics consent mode. The customization options for the cookie banner are quite robust; you won’t need any coding knowledge. Just make sure to verify the integration with Tag Manager to avoid any potential tracking issues.