Skip to content

Commit

Permalink
Redact email addresses as [email]
Browse files Browse the repository at this point in the history
- where you enter your email address (https://www.gov.uk/email/manage/authenticate) we have GA4 tracking
- the tracking currently defaults to not collecting any data from the form, so inputs are listed as [redacted]
- we want to make the redaction more specific so it says [email]
- to do this, set an attribute on the form so that values of inputs are collected, but when this occurs we apply our PII stripping code, which means that any email address entered into this field is returned as [email] instead
  • Loading branch information
andysellick committed Oct 19, 2023
1 parent 6187ce9 commit 1658596
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/subscriber_authentication/sign_in.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
novalidate: "novalidate",
data: {
module: "ga4-form-tracker",
ga4_form_include_text: "",
ga4_form: ga4_data
}) do %>
<%= render 'govuk_publishing_components/components/input', {
Expand Down

0 comments on commit 1658596

Please sign in to comment.