Repository navigation
docs: send the buyer's email on every lead - #290
Merged
Merged
Conversation
… sale with the right partner Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
api-reference/track-lead): theemailfield now says to send the buyer's email on every lead, what Affitor keeps (a one-way hash and a masked form, only when the customer has none yet), and why: a Stripe Checkout payment without a click id is matched to the customer by its checkout email. A provisional browser lead does not save it.signup(customerKey, email),trackLead({ email }),emailon the wire), with the same reason.No new endpoint, field or behaviour: the
emailfield already exists. The server-to-server sale endpoint is not changed here.Sources (read at the current release)
src/api/affiliate-lead-event/services/affiliate-lead-event.ts:189-200(hash + mask, saved only when the customer has none); provisional browser lead stores only the lead event hash, no customer write (:105-127).src/utils/privacy-helpers.ts:16-44(sha256 of the lowercased, trimmed address;j***@example.com).src/api/webhook-distributor/services/client-reference.ts:47-54(account customer by email hash first), chain step 2webhook-distributor.ts:1311-1351.@affitor/sdk2.1.4,dist/server.d.ts:45(trackLeademail?),dist/index.d.ts:22(signup(customerKey, email)).Checks
tracking-contractcheck passes on this head (48 statements, 27 pins).