Skip to content

Add browserId in email submission form#15377

Merged
ioannakok merged 1 commit intomainfrom
send-browser-id-in-email-submission-form
Mar 3, 2026
Merged

Add browserId in email submission form#15377
ioannakok merged 1 commit intomainfrom
send-browser-id-in-email-submission-form

Conversation

@ioannakok
Copy link
Contributor

@ioannakok ioannakok commented Feb 17, 2026

What does this change?

Sends browserId when user subscribes to one newsletter. This flow does not require email confirmation and can be 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 don't have. See related PRs in identity and frontend:

Screenshots

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

Before After
image image
image image

@github-actions
Copy link

github-actions bot commented Feb 17, 2026

@ioannakok ioannakok added the feature Departmental tracking: work on a new feature label Feb 17, 2026
@ioannakok ioannakok force-pushed the send-browser-id-in-email-submission-form branch from b374633 to 98d49dd Compare February 18, 2026 10:16
@github-actions
Copy link

github-actions bot commented Feb 18, 2026

@ioannakok ioannakok added the run_chromatic Runs chromatic when label is applied label Feb 18, 2026
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Feb 18, 2026
@ioannakok ioannakok marked this pull request as ready for review February 18, 2026 13:11
@github-actions
Copy link

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@ioannakok ioannakok force-pushed the send-browser-id-in-email-submission-form branch from 98d49dd to e445b3d Compare March 3, 2026 09:30
@ioannakok ioannakok added the run_chromatic Runs chromatic when label is applied label Mar 3, 2026
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Mar 3, 2026
@ioannakok ioannakok merged commit d3c0aea into main Mar 3, 2026
33 checks passed
@ioannakok ioannakok deleted the send-browser-id-in-email-submission-form branch March 3, 2026 12:11
@@ -0,0 +1,16 @@
import { getCookie, isString } from '@guardian/libs';
import { useEffect, useState } from 'react';

Copy link
Member

Choose a reason for hiding this comment

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

Small thing - I'm not sure if 'metrics.ts' is an easily understandable name for the file that this function lives in.

Perhaps useBrowserId.ts as per other hooks?

Copy link
Member

Choose a reason for hiding this comment

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

This was a post-merge comment. Not to worry, I can do this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will raise a PR immediately!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here it is: #15465

Copy link
Member

Choose a reason for hiding this comment

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

Thanks!

@gu-prout
Copy link

gu-prout bot commented Mar 3, 2026

Seen on PROD (merged by @ioannakok 8 minutes and 55 seconds ago) Please check your changes!

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 Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants