I wrote a privacy policy once, before launch. It was a template with the operator's name and effective date filled in.
A few days after launch, I went back and checked the policy again — but this time starting from the code, not the document. I counted what the site actually stores by reading the source, then compared that against the policy.
The two didn't match, in both directions.
Things that should have been disclosed but weren't
Two values stored in the browser
The site was writing two keys to localStorage.
| Key | Purpose |
|---|---|
dts-theme |
Remembers light/dark preference |
dts-feedback-<post-slug> |
Prevents duplicate voting |
Not a single line about this in the policy. There was a cookies clause, but localStorage isn't a cookie, so it slipped past it entirely.
This isn't the kind of data that requires consent — it never leaves the device, and both uses are functional, so they're exempt. Even so, what gets stored still needs to be disclosed. Only then can users actually go clear it themselves.
The IP address being read
The feedback voting feature reads the visitor's IP to prevent duplicate votes. It doesn't store the raw value — it only keeps a hash, combined with the post slug and date.
The handling was clean, but handling is still handling. The policy had no mention of this fact, nor of the vendor holding that data.
Things claimed as happening that weren't
The other side was more embarrassing. The third-party processor table looked like this.
| Processor | Purpose of processing |
|---|---|
| Google LLC (AdSense) | Ad serving and performance measurement |
| Google LLC (Analytics) | Visit statistics analysis |
Present-tense claims. "We process." But checking the config, both the measurement ID and the publisher ID were empty. The code is written so that if there's no ID, the script tag itself never renders.
None of it was actually happening. Same story for "IP address, cookies" listed under collected items.
There's a common assumption that over-disclosure is less of a problem than under-disclosure, but a disclosure that doesn't match reality carries its own risk regardless. And a false statement is false either way — this kind of thing could easily turn into "why does your policy say you use something you don't" during an ad review.
Writing the policy ended up fixing the code
For the retention period section, I opened the code to check how long the duplicate-prevention hash gets kept. There was no deletion code at all.
It's a value that never needs to be compared again after a day passes, yet it was being kept forever. Data with no remaining use was just sitting there indefinitely.
I added one line to the existing write operation to delete anything older than 2 days. Then I wrote "2 days" into the policy.
The document ended up fixing the code — the reverse of the usual order. Normally you build the code first and then make the document match it. But when you get stuck on "how do I even phrase this," it usually means the code itself is the part that's hard to explain.
What changed
| Section | Change |
|---|---|
| 1. Collected items | One line became three — voting hash, browser storage, automatic collection (if introduced) |
| 4. Third-party processors | Added Cloudflare (already in use at the infrastructure level but missing from the table), marked both Google entries as "upon introduction" and noted they're currently unused |
| 5. Retention period | Hash kept for 2 days; browser-stored values stay on-device |
| 6. User rights | Added guidance that users can delete browser-stored data themselves via browser settings |
There was also an effective-date issue. The policy itself requires "7 days' advance notice" before changes take effect, so putting this revision into effect the same day would violate its own rule.
I added a carve-out clause.
Corrections that clarify existing processing more accurately, without expanding the scope of collection or use, take effect immediately upon notice.
This revision doesn't expand collection — it narrows it and states it more accurately — so it falls under this clause.
Why I didn't add a cookie consent banner
This came up during the same review: should the banner that most sites have be added now?
Decided against it, because the site uses zero cookies. A banner announcing the use of something that isn't actually used would be inaccurate, and it would just block the landing view and drive people away for no reason.
But it's temporary. The moment an analytics tool gets added, cookies appear. Ads are stricter still — for European and UK traffic, Google requires a certified consent management platform. A hand-built banner doesn't qualify.
So here's the order I settled on.
- Now — no banner
- When an analytics tool gets added — bring in a certified CMP right away
- Apply for ads
If I build something custom at step 2, I'd just have to rebuild it at step 3. That's doing the work twice.
Takeaway
Treat a privacy policy as a "legal document" and it's just filling in a template, done. Reverse-verifying it against the code surfaces a different picture.
All three issues found here were only visible by reading the code: the localStorage key names, the function that reads the IP, the table with no deletion logic. None of them would have turned up from rereading the document alone.



