Independent build, Synthetic data, 2026
Geofencing and visit analytics, privacy first
A multi-client web app: draw a fence anywhere in the Greater Toronto Area and see visit counts, dwell time and the home-area mix of its visitors, without a single number below the privacy threshold. Runs on a synthetic device panel.
Open the live app- Project
- Geofence Studio: visit analytics for agencies
- Where
- Synthetic data
- Year
- 2026
- Stack
- React, TypeScript, Vite, MapLibre GL, terra-draw, h3-js, Turf, Web Workers, IndexedDB, Vitest, Playwright, AWS S3 + CloudFront
The question
Can an agency give each of its clients a self-serve geofencing and audience tool, with useful visit metrics, and still never show a number small enough to identify anyone?
What we did
- Built a realistic panel. A seeded synthetic panel of 60,000 devices and 5,616,555 pings over 30 days, with homes, commutes, shopping, event nights and airport trips, generated in parallel Web Workers and cached in the browser.
- Turned pings into visits. Pings inside a fence are sessionized with a 45-minute gap rule; visits, dwell, repeat visits, busy hours and pass-through share follow from that.
- Placed visitors on the map, safely. Home areas come from night-time pings at H3 resolution 7; small cells roll up to their parent before anything is hidden.
- Put k-anonymity on every number. Counts, chart cells, hexes and audience sizes under k devices are suppressed (default 50, adjustable 10 to 200), and the map and charts update as k moves.
- Separated clients. An agency workspace and three fictional client workspaces; every analytics query is scoped to the workspace, not just filtered in the UI.
- Closed the loop to media. Audiences built from fence visits, payload previews for The Trade Desk, Google Ads, Meta and CSV, and campaign lift reports against a holdout (simulated and labelled).
- Made it fast and tested. Preset views precomputed at build time, analytics off the main thread, a phone layout with a bottom sheet, 34 unit tests and a Playwright suite on desktop and phone.






Numbers
- 60,000 synthetic devices
- 5,616,555 pings
- 30 days
- 10 preset fences for 3 fictional clients
- H3 resolution 7
- k ≥ 50 by default (10–200)
- 4 activation destinations
- 34 unit tests
Known limits
All device data is synthetic; volumes describe a device panel, not population counts. Activation shows payloads and sends nothing. Delivery and lift figures are simulated per audience and labelled as such. A production version would run the same steps on licensed, consented mobility data behind an API and PostGIS, as drawn on the "How it works" page.
Need something like this?
Tell us what the work should support. A 30-minute call is enough to say what we would do first, how long it takes and what it costs.
