Skip to content

Comments

Send browserId to /consent-signup endpoint in IDAPI#28613

Open
ioannakok wants to merge 1 commit intomainfrom
send-browser-id-to-idapi
Open

Send browserId to /consent-signup endpoint in IDAPI#28613
ioannakok wants to merge 1 commit intomainfrom
send-browser-id-to-idapi

Conversation

@ioannakok
Copy link
Contributor

@ioannakok ioannakok commented Feb 17, 2026

What does this change?

This PR passes the browserId from DCR to IDAPI when the user subscribes to a single newsletter. This flow does not require email confirmation and gets triggered in:

Why?

Supporter Revenue have made a request to send them the user id, the newsletter id, the browser id and the timestamp when a user subscribes to a newsletter. Browser id is the only info we currently don't have.

Screenshots

BrowserId is undefined in CODE so we will have to merge this to see whether we actually send it.

Before After
image image

Checklist

This is the endpoint that gets hit when a user subscribes to newsletter without email confirmation
@ioannakok ioannakok force-pushed the send-browser-id-to-idapi branch from a484bc3 to 8aa753d Compare February 17, 2026 15:30
@ioannakok ioannakok added the feature Departmental tracking: work on a new feature label Feb 17, 2026
@ioannakok ioannakok changed the title Send browserId to /consent-signup in IDAPI Send browserId to /consent-signup endpoint in IDAPI Feb 18, 2026
@ioannakok ioannakok marked this pull request as ready for review February 18, 2026 13:11
@ioannakok ioannakok requested a review from a team as a code owner February 18, 2026 13:11
s"Post request received to /email/ - " +
s"ref: ${form.ref}, " +
s"refViewId: ${form.refViewId}, " +
s"browserId: ${form.browserId}, " +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is a unique identifier would it be better to not log it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good point! I'm going to ask Emily tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants