How this site is made
Cookie consent banner, tested
How this site's cookie banner decides by clock zone, honours Global Privacy Control and loads nothing before a yes, with a test you can rerun.

Contents
A cookie consent banner is the notice a website shows to explain its cookies and similar technologies and to let visitors make the choices the rules require. ShepherdUX's banner loads no PostHog code before a yes under Berlin and London clocks, loads it at once under a New York clock, and stays out of the way of Global Privacy Control. Its Decline sits one click deeper than Got it, and the Ahrefs page counter loads regardless.
Load nothing before a yes, honour the browser's signal, and make no as easy to give as yes.
The question a banner asks
One thing on this site needs consent: PostHog, the visit counter, which uses a first-party cookie, a small record saved by the site itself, and browser storage to tell a return visit from a new one. The small-site search guide shows what that count is used for. The rest of what the browser holds (the day or night setting, recent searches, the answer to the banner) never leaves the machine.
The guidance of the Information Commissioner's Office (ICO) for the UK lists, as a mark of a good mechanism, that it "makes it as easy to refuse consent as it is to accept". The cookie banner taskforce of the European Data Protection Board (EDPB) found in January 2023 that most EU authorities treat a first layer with Accept and no Reject as an infringement. California works the other way: its Attorney General's CCPA page says businesses covered by the CCPA must honour Global Privacy Control as a request to stop the sale or sharing of personal information.
So one banner has to ask in Berlin, tell in Boston, and stay out of the way of a browser that has already answered. On a hosted builder or WordPress, a built-in setting or a plugin may draw the banner for you; the platform comparison covers what each platform takes on.

The same destination needs different arrival rules. Check the banner with different clock zones and a privacy signal.
Four versions in one afternoon
The banner went through four versions on 2 September 2026, in five commits, each a saved version in the site's code history.
| Time (Pakistan) | First layer | What it measured | Verdict |
|---|---|---|---|
| 17:20 | Allow analytics, Decline, Choose | yes and no equal; nothing loads before a yes | the regulators' layout; replaced the same afternoon |
| 17:33 | Got it, Choose | Got it acknowledged only; Choose was the only yes | a notice nobody could answer in one click |
| 17:47 | Got it, Choose | Got it became the yes; Decline moved under Choose | shipped |
| 19:28 to 19:56 | Got it, Choose | the answered notice folds away and sits on the bottom edge | shipped, still live |
The owner knowingly chose the one-button notice after hearing the regulators' reading. The notice says what is counted, that there is no account, name or advert, and where to change the answer. Decline all sits one click deep under Choose, in the footer of each page and on the privacy page. That is a trade, and the next section's numbers do not change it.
How this banner decides
A script, a small piece of code, decides whether the counter can run. It sits at the top of the page's code, before the counter's own code, so the counter cannot run before that decision.
It reads three things. The first is the answer, kept in the browser for six months. The second is the regime, read from the device's clock zone. The fifty states' zones get the notice regime, where the count runs from the first page with a way out beside it.
That is the site's routing choice, not a finding that every US visitor falls under one rule. Every other zone, an unreadable one included, gets the ask regime, where nothing runs until yes.
The third is the browser's signal. Global Privacy Control or the older Do Not Track, a browser request to avoid tracking, counts as an answer already given. No banner appears.
The clock zone is a guess about law, not a fact about it. A Berliner travelling with a phone set to New York time gets the notice regime. The site leans strict where it cannot read the zone, but a wrong clock still decides.
A refusal stops the PostHog code and clears what it stored. A second counter, Ahrefs, sends a record of each page visit and sets no cookie. It therefore has a row on the choices panel and no switch.

The main fire waits; the small light stays on. Check every counter separately, before and after a refusal.
What the six tests found
Under Berlin and London clocks, PostHog's code was requested 0 times before an answer, measured on this site on 15 November 2026. The test, consent-check.mjs, sits beside its results in the site's repository, where its code is stored. It runs six fresh browsers against the live site. The test replies to the counters' requests on the machine running it, so it sends nothing to either service. It counts whether each counter's code is requested.
| Scenario | Banner on load | PostHog fetches before an answer | After the answer | After a reload |
|---|---|---|---|---|
| Berlin clock, then Got it | yes | 0 | 1 | 1 |
| Berlin clock, Decline all under Choose | yes | 0 | 0 | 0 |
| London clock, no answer | yes | 0 | no answer given | not run |
| New York clock, then Decline all | yes | 1 | 0 | 0 |
| New York clock, Global Privacy Control | no | 0 | no answer needed | not run |
| Berlin clock, Got it, then withdrawn | yes | 0 | 1, then 0 | 0 |
The Ahrefs page counter was fetched once on load in all six scenarios, Global Privacy Control and Decline included, measured on this site on 15 November 2026. It sets no cookie, but a reader who has said no still sends it a page view.
What it cost, and what it is for
The banner took an afternoon, and the test took a morning. The Journal's PHP panel follows the same habit, check what a change does before trusting it: its 441 tests run before each deploy.
Analytics with cookie consent is part of the studio's one-page website, as the package list states. The test is the part worth copying. It answers the question a regulator, a client or a sceptical reader will ask: what loads before a yes?
If your readers are in the UK or the EU and you want the guidance on your side, put Decline beside Accept on the first layer. This site does not, by the owner's choice, and that choice carries the risk the taskforce describes. If you use PostHog, its data collection guide documents loading its code, starting opted out and opting in after consent; in the ask regime, this site goes a step further and does not download the code until consent.
Do I need a cookie consent banner?
You need one if you have visitors in the UK or the EU and your site stores or reads non-essential data on a visitor's device. An analytics cookie is one example. A site that stores nothing beyond what the page needs to work can do without one.
What is Global Privacy Control?
It is a browser signal that asks sites not to sell or share the visitor's data. It travels in the Sec-GPC header, a piece of information sent with a web request. Brave and DuckDuckGo send it by default, and Firefox offers it as a setting.
How do I test a cookie banner?
Open the site in a fresh browser profile, block or record requests to each analytics host, and note what loads before you answer. Repeat with each answer, after a reload, and with a different time zone and Global Privacy Control.