December 02, 2025 · privacy, security, events

Privacy-first analytics: hashing PII at the edge

You can have realtime analytics and respect user privacy. Hashing, dropping, and region-pinning — all at the edge, all on by default.

There’s a myth that rich analytics requires hoarding personal data. It doesn’t — and the teams that believed the myth now have a compliance backlog and a trust problem. Privacy-first analytics isn’t a constraint on insight; it’s a better way to build.

The principle: collect the minimum

Before an event leaves your user’s device, ask: does this need to be a raw value? Most of the time, the answer is no.

  • Emails, phone numbers, names — hash them at the edge, or drop them entirely.
  • Free-text input — don’t track it. You don’t need keystrokes to understand behavior.
  • IDs — pseudonymize before they hit the wire.

At Vireo, PII hashing is on by default. You opt into raw values, not out of them — the reverse of the industry default, on purpose.

What hashing gets you

Hash-based IDs give you everything you need — a stable identifier to follow a user through a funnel — while making the raw value useless to anyone who shouldn’t have it:

  • Cross-device identity without a database of real identities.
  • Funnels and cohorts that work, unbroken.
  • A much shorter data-retention conversation with your legal team.

Region pinning and retention

Two more levers, both set sensibly by default:

  • Region pinning. Choose where your events live — EU, US, or a custom region — and they stay there. No “data may be processed in locations we choose” language.
  • Retention controls. Set windows per event type. Session context can live for 30 days; aggregate metrics can stay forever. Your call, your clock.

The pitch that writes itself

“Your data is used only for your product, hashed at the edge, pinned to a region you choose, and exportable anytime.” That’s not a compliance page — it’s a competitive advantage, and it’s the only analytics story we know that gets better the more you tell it.

If you’re evaluating tools, ask each one: what happens to a user’s email address the moment I track it? The right answer takes one sentence.

Share this article:
Noor Haddad

Noor Haddad

Developer Advocate at Vireo

Related posts

Event naming conventions that survive contact with a team

A few rules for naming events that keep your analytics readable for years — and why 'page_viewed' beats 'pv' every single time.

Choosing an event schema when you have no data team

No data engineers, no problem. Start with a tiny event vocabulary, let structure emerge from usage, and keep it readable. Here's the playbook.