govuk-one-login / ipv-cri-common-express

Common frontend components for Credential Issuers
MIT License
2 stars 0 forks source link

[DAC-3526] - Common express updates to redact form answers from tracking by default #376

Closed di-aholme closed 4 months ago

di-aholme commented 5 months ago

…ing by default

Proposed changes

What changed

This allows users of common express to provide an analyticsDataSensitive value to control the analytics data sent by v2.0.0 of the @govuk-one-login/frontend-analytics package.

Why did it change

The breaking change in v2.0.0 of @govuk-one-login/frontend-analytics is that it defaults to a new, more cautious approach, to reporting analytics. This will happen by default if teams update their version of @govuk-one-login/frontend-analytics to v2.0.0.

To retain the current v1.x.x approach to reporting analytics teams need to set the isDataSensitive flag to false, which can be done by providing a analyticsDataSensitive value to the setGTM function in this updated version of common-express.

Users who are still using @govuk-one-login/frontend-analytics v1.x.x will see no change when updating to this version of common express.

Issue tracking

Checklists

Environment variables or secrets

Other considerations

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud