Works with your stack
Cookie consent for StatCounter on WordPress
no cookie, still an identifier
The StatCounter plugin loads StatCounter’s counter on every page. It sets no cookie, but sends each page view with a visitor identifier kept in the browser’s local storage. Cookie Rocks Pro holds the counter until the visitor accepts statistics, then counts the page without a reload.
By StatCounter · statcounter.com · WordPress.org
Also in: Statistics on your own site
Is this your product? Tell us if anything here is out of date. Write to us
What the StatCounter plugin puts on your pages
- The counter
- counter.js from www.statcounter.com, with your project number: StatCounter.
- The page view
- Each page view goes to c.statcounter.com with a visitor identifier, the page address and screen size.
- Browser storage
- The identifier and the traffic source in local storage; the counter settings and the visit state in session storage.
What matters for consent with StatCounter
No cookie, still an identifier
StatCounter recognises a returning visitor through local storage. Under the strictest rules, that needs consent like a cookie.
Held until consent
Before the choice and after Reject all, nothing reaches StatCounter and nothing is stored.
No reload after Accept
After Accept all, the counter loads and the current page is counted.
What our tests found on StatCounter
Before the choice · StatCounterStatCounter waits for consent
The StatCounter plugin 2.2.0 loads www.statcounter.com/counter/counter.js on every page. Without a banner, before any choice, it sends the page view to c.statcounter.com/t.php with a visitor identifier (u1), keeps that identifier in localStorage (statcounter.com/localstorage/) with sc_medium_source, and writes statcounter_config, statcounter_session and statcounter_bounce in sessionStorage. No cookie is set. Cookie Rocks Pro holds the script until consent to statistics: nothing is sent or stored before the choice or after Reject all, and after Accept all the page view is counted without a reload.
Seen in our tests, 11 November 2026, StatCounter 2.2.0.
Analytics and ad pixels
Other plugins of the same kind.
Questions
Does StatCounter work without cookies?
Yes, but it keeps an identifier in local storage instead. Cookie Rocks treats that the same way as a cookie.
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 StatCounter users
Counts for the visitors who said yes.
statistics
Every feature of the complete plugin for 30 days, no card. StatCounter counts visitors who accept.
- 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

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