Skip to content

Works with your stack

Cookie consent for header code plugins

pasted, then held

← Cookie Rocks for your stack

Header code plugins paste your snippets into every page. They load nothing on their own: what you paste decides what needs consent. A Google Analytics snippet pasted with any of them is held by Cookie Rocks until the visitor agrees.

Header code plugins

WPCode
A Google Analytics snippet pasted in the header is held until consent.
Header Footer Code Manager
A Google Analytics snippet pasted in the header is held until consent.
WP Headers and Footers
A Google Analytics snippet pasted in the header is held until consent.

What matters for consent with Code in the header

The snippet decides

These plugins only place your code. A tracker in that code needs consent, whichever plugin pastes it.

Google Analytics waits

A Google tag pasted in the header with any of the three is held by Cookie Rocks: nothing goes to Google before the choice, and its cookies appear after Accept all.

Paste as usual

You keep pasting the code you got from the provider. Cookie Rocks holds known trackers until consent.

What our tests found on Code in the header

  • Good to know · WPCode, Header Footer Code Manager, WP Headers and FootersCookie Rocks holds GA4 pasted with a header code plugin

    A GA4 snippet pasted in the site header with WPCode, Header Footer Code Manager or WP Headers and Footers is held by Cookie Rocks until consent: nothing goes to Google before the choice, and _ga and _ga_<ID> appear after Accept all.

    Seen in our tests, 17 October 2026, WPCode, Header Footer Code Manager, WP Headers and Footers 2.4.0, 1.1.46, 3.1.5.

Questions

Do I need to change my snippet?

No. Paste the provider’s code as it is. Cookie Rocks holds known trackers in it until the visitor agrees.

What happens after the 30-day trial?

The banner, your visitors’ choices and your proofs of consent keep working. Without a key, most settings lock, updates and support stop. Take a key at any time and everything opens again.

For sites with header snippets

Keep your snippets, add consent.

paste as usual

Every feature of the complete plugin for 30 days, no card. Your header code plugin keeps working as it does today.

  • During the trial: everything, including the full settings and the scans
  • After 30 days without a key: the banner, your visitors’ choices and your proofs of consent keep working
  • What waits for a key: most settings, updates and support

How the trial works, in detail

Get your trial key

Your e-mail and your site. Your key arrives as soon as you confirm your e-mail.

One trial per domain. Local and staging sites never use up your key.

We keep your e-mail address to send your key and help you with it, as explained in our privacy policy. No newsletter, nothing else.