Visitor data requests: access, export, and deletion
Answer a visitor's access or erasure request straight from Databuddy, for one website.
Find the visitor
Databuddy links the ID to that visitor's browsers and sessions. On a browser another identified profile also used, only this visitor's sessions are included, so one person's request doesn't remove someone else's data. Naming a shared browser directly covers its sessions that belong to no identified profile.
With the default anonymizeVisitorIds setting, each browser gets a new stored ID every day. Without an identified profile, a request reaches only the days whose stored ID you have. An identified profile reaches the days the browser was identified on, including that day's visits before identify(), but not anonymous visits from earlier days.
Browser identify() tags the visitor's later events with the profile ID, so a request reaches them. A browser ID you pass to server-side identify() is kept as sent, while its events are stored under the daily ID. The request then covers that profile, its traits and events tagged with it, but not the browser's untagged visits.
Export every page
Export returns a filename and the JSON document in data.
The event-time cutoff stays fixed, but late arrivals or erasures during export can change the rows between requests.
Check a deletion
Delete returns a requestId and the profiles and recordings removed, with status pending; analyticsRows is always empty, because a daily pass erases events. Keep the requestId: calling delete again creates a new request.
curl -X POST https://api.databuddy.cc/visitor-data/deletion-status \
-H "x-api-key: $DATABUDDY_API_KEY" \
-H "content-type: application/json" \
-d '{"websiteId": "your-website-id", "requestId": "the-request-id"}'Know what a request keeps
To keep less, delete visitors or groups on your own schedule through the API.
Erase an organization or other group
curl -X POST https://api.databuddy.cc/visitor-data/delete-group \
-H "x-api-key: $DATABUDDY_API_KEY" \
-H "content-type: application/json" \
-d '{"websiteId": "your-website-id", "groupType": "organization", "groupKey": "org_123"}'When one of your customer organizations is deleted, erase what Databuddy recorded for it, including events sent without a visitor ID. Send the group's key exactly as you sent it: events with group_organization: "org_123", or group() calls with that type and key, use organization and org_123. It needs the same keys as a visitor deletion.
An event carrying the key is erased whole, so one with both group_organization and group_workspace takes the workspace's activity too. A session that also held other events can drop out of overview session totals, while its remaining events still count elsewhere. The email_domain type is refused with 400, because those accounts come from stored people's emails and would come back; delete each member instead.
Delete returns a requestId, rows erased per table, and groups: 1 when a stored group was removed. POST /visitor-data/group-deletion-status reports the same statuses with the same seven-day window. The request drops group() calls recorded before it, erases events stamped up to an hour after, then keeps only its ID, website, group type, requester and timestamps. The audit log records who deleted group data, without the key.
While earlier deletions are still being applied, group deletes answer 429 with code RATE_LIMITED, a Retry-After header and retryAfter in the body, in seconds. Nothing is recorded, so resend once that time passes.
Related
How is this guide?