Skip to content

Works with your stack

Cookie consent for StatCounter on WordPress

no cookie, still an identifier

← Cookie Rocks for your stack

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.

Meta Pixel for WordPressThe Meta pixel, plus Meta cookies sent from your server.tested 5.2.2Adds: Meta PixelMeta for WooCommercePixel and server events, with a hold switch for consent.tested 3.7.9Pixel CaffeineThe Meta pixel on every page, with no consent setting.tested 2.3.3Adds: Meta PixelTikTok for BusinessThe TikTok pixel held, server events to decide.tested 1.4.3Adds: TikTok PixelMicrosoft ClarityClarity on every page, with no consent signal.tested 0.10.38HotjarHotjar held until the visitor agrees.tested 1.0.16HubSpotHubSpot’s loader on every page, consent only in HubSpot.tested 11.3.82JetpackStats, comments, videos and images from WordPress.com.tested 16.4Ad pixel pluginsMeta and TikTok pixels, and what your server sends.MatomoStatistics from your own site, consent through Matomo’s API.tested 5.13.1Koko AnalyticsStatistics on your own site, with a cookie by default.tested 2.5.3Independent AnalyticsNo cookie, but returning visitors are still recognised.tested 2.16.3Burst StatisticsWaits for statistics consent when WP Consent API is there.tested 3.7.5SlimStat AnalyticsNo consent check by default; one setting changes that.tested 6.1.2Adds: Slimstat AnalyticsStatistics on your own siteStatistics plugins that count on your own server.Pixel ManagerUp to ten shop pixels from one script, held until the visitor agrees.tested 1.74.3Plausible AnalyticsStatistics with no cookie, from plausible.io or your own site.tested 2.6.4Fathom AnalyticsStatistics with no cookie, from cdn.usefathom.com.Nelio A/B TestingA/B tests with one cookie, only while a test runs.Pirsch AnalyticsCookieless counting: the script waits for consent, the server mode counts everyone.StatifyPage views counted in your own database, no cookie.UmamiCookieless analytics that wait for consent.Agile CRMSession cookies of the tracking script, removed until consent.CallRail Phone Call TrackingSwaps your phone number to tell which source brought a call.PixelYourSiteMeta and Google tags, plus first-party cookies of its own.tested 11.4.5Adds: Google Tag Manager, Google Analytics / Google Ads (gtag.js), Meta PixelWP StatisticsVisitor counts on your own server, without cookies.tested 14.16.19

Every plugin and theme we test →

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

How the trial works, in detail

Cookie Rocks

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.