Atlas + Lucida + Cookie Munch: which path does what

One signed_up source and one erasure path when a product runs Atlas, Lucida and Cookie Munch: how Lucida dedupes signed_up, the webhook source's on_delete setting and where to read the authoritative erasure path.

Embed
Preview of the card
<a href="https://lucidace.com/help/atlas-lucida-cookiemunch"><img src="https://lucidace.com/help/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/2f4b888b-c4e6-488b-81bd-6e838fb12d2e/pages/432b763c-239b-44ae-b58e-7be394fccab4/social-card.svg?v=3e7ae33eec8b" alt="Atlas + Lucida + Cookie Munch: which path does what" width="600" height="315"></a>

A product on Atlas and Lucida can produce signed_up three ways and erase a person two ways. Lucida collapses the duplicates, but one path each is cleaner.

  • One signed_up source. Use the Atlas webhook source with {"preset":"atlas","events":{"user.created":"signed_up"}}, or Atlas forwarding, or your own server capture. Any one is enough.

  • One erasure path. With Cookie Munch linked, let its rights executor erase. Leave the webhook source on "on_delete":"ignore" (the default once Cookie Munch is linked). Without Cookie Munch, the webhook source erases on user.deleted ("on_delete":"erase", the default then).

How signed_up is deduped

Lucida stores events once per event uuid. For signed_up, when the sender gives no uuid, Lucida derives it as a UUIDv5 of <project id>:signed_up:<distinct_id> in Lucida's fixed business namespace 6f1c4a52-9d3e-5b07-8a21-4c7e90b3d5f1 (the same as other business-keyed events). The Atlas webhook source and a server capture without a uuid therefore produce the same uuid for the same person, and the second is stored over the first, not counted again.

  • Your own uuid opts out. An event that arrives with its own uuid keeps it, so it will not collapse with the others. Leave the uuid off signed_up if you want the dedupe.

  • The distinct id must be the same on every path (the Atlas sub). Different ids are different people.

  • The Atlas webhook source always uses the derived uuid for the event you name in events. Its $identify keeps its delivery-based uuid.

Erasure: on_delete

On the Atlas webhook source's mapping, on_delete says what user.deleted does:

Value

Effect

erase

Queues the person's erasure (events, recordings, forwarding to destinations)

ignore

Acknowledges the delivery and does nothing

unset

ignore when the project is linked to a Cookie Munch site, else erase

POST /v1/projects/{project_id}/webhook-sources
{"name":"Atlas","mapping":{"preset":"atlas","on_delete":"ignore","events":{"user.created":"signed_up"}},"auth":{"mode":"atlas"}}

Add "secret":"<the Atlas endpoint signing secret>" to auth. The 201 returns token (shown once) and path: set the Atlas webhook endpoint's URL to https://capture.lucidace.com + path. Do not point Atlas at /v1/batch or /capture with the public key: those check capture_allowed_origins, server deliveries carry no Origin, and every event is dropped as origin_not_allowed. A working delivery answers 202 {"status":1,"events":1}.

on_delete works with the atlas preset only. Without a link or an explicit value, a deletion still erases, as before.

See which path is authoritative

GET /v1/projects/{project_id}/cookiemunch answers erasure_path:

Value

Meaning

cookiemunch

The linked Cookie Munch executor erases; no webhook source does

webhook_source

An Atlas webhook source erases; no Cookie Munch link

both

Both erase, so one Atlas deletion makes two erasure records: set the source to on_delete: "ignore"

none

Neither is set up

More: Atlas, Cookie Munch.

Updated