diff --git a/packages/app-rfi/src/components/steps/questions/Country.js b/packages/app-rfi/src/components/steps/questions/Country.js index 5e93c06c9b..640176ad5d 100644 --- a/packages/app-rfi/src/components/steps/questions/Country.js +++ b/packages/app-rfi/src/components/steps/questions/Country.js @@ -4,6 +4,7 @@ import { gaEventPropTypes, trackGAEvent } from "../../../../../../shared"; import { fetchCountries } from "../../../core/utils/fetchCountries"; import { useRfiContext } from "../../../core/utils/rfiContext"; import { RfiSelect } from "../../controls"; +import { PII_VALUE } from "../../../core/utils/constants"; // Options function getCountryOptions(resultsArrayOfObjects) { @@ -56,7 +57,7 @@ export const Country = ({ gaData }) => { ...gaData, event: "select", type: label, - text: e.target.selectedOptions[0].innerText, + text: PII_VALUE, }) } /> diff --git a/packages/app-rfi/src/components/steps/questions/EmailAddress.js b/packages/app-rfi/src/components/steps/questions/EmailAddress.js index bf51c856ec..b70569f949 100644 --- a/packages/app-rfi/src/components/steps/questions/EmailAddress.js +++ b/packages/app-rfi/src/components/steps/questions/EmailAddress.js @@ -2,6 +2,7 @@ import React from "react"; import { gaEventPropTypes, trackGAEvent } from "../../../../../../shared"; import { RfiEmailInput } from "../../controls"; +import { PII_VALUE } from "../../../core/utils/constants"; /** * @param {{ gaData: import("../../../../../../shared/services/googleAnalytics").GAEventObject}} props @@ -21,7 +22,7 @@ export const EmailAddress = ({ gaData }) => { trackGAEvent({ ...gaData, type: label, - text: e.target.value, + text: PII_VALUE, }) } /> diff --git a/packages/app-rfi/src/components/steps/questions/FirstName.js b/packages/app-rfi/src/components/steps/questions/FirstName.js index 92e2029de2..cb5c7e7d0f 100644 --- a/packages/app-rfi/src/components/steps/questions/FirstName.js +++ b/packages/app-rfi/src/components/steps/questions/FirstName.js @@ -2,6 +2,7 @@ import React from "react"; import { gaEventPropTypes, trackGAEvent } from "../../../../../../shared"; import { RfiTextInput } from "../../controls"; +import { PII_VALUE } from "../../../core/utils/constants"; /** * @param {{ gaData: import("../../../../../../shared/services/googleAnalytics").GAEventObject}} props @@ -21,7 +22,7 @@ export const FirstName = ({ gaData }) => { trackGAEvent({ ...gaData, type: label, - text: e.target.value, + text: PII_VALUE, }) } /> diff --git a/packages/app-rfi/src/components/steps/questions/LastName.js b/packages/app-rfi/src/components/steps/questions/LastName.js index 68375bddc9..b40c0ec931 100644 --- a/packages/app-rfi/src/components/steps/questions/LastName.js +++ b/packages/app-rfi/src/components/steps/questions/LastName.js @@ -2,6 +2,7 @@ import React from "react"; import { gaEventPropTypes, trackGAEvent } from "../../../../../../shared"; import { RfiTextInput } from "../../controls"; +import { PII_VALUE } from "../../../core/utils/constants"; /** * @param {{ gaData: import("../../../../../../shared/services/googleAnalytics").GAEventObject}} props @@ -21,7 +22,7 @@ export const LastName = ({ gaData }) => { trackGAEvent({ ...gaData, type: label, - text: e.target.value, + text: PII_VALUE, }) } /> diff --git a/packages/app-rfi/src/components/steps/questions/Phone.js b/packages/app-rfi/src/components/steps/questions/Phone.js index 138950c9fe..a9ca95f51f 100644 --- a/packages/app-rfi/src/components/steps/questions/Phone.js +++ b/packages/app-rfi/src/components/steps/questions/Phone.js @@ -2,6 +2,7 @@ import React from "react"; import { gaEventPropTypes, trackGAEvent } from "../../../../../../shared"; import { RfiPhone } from "../../controls"; +import { PII_VALUE } from "../../../core/utils/constants"; /** * @param {{ gaData: import("../../../../../../shared/services/googleAnalytics").GAEventObject}} props @@ -21,7 +22,7 @@ export const Phone = ({ gaData }) => { trackGAEvent({ ...gaData, type: label, - text: e.target.value, + text: PII_VALUE, }) } /> diff --git a/packages/app-rfi/src/components/steps/questions/ZipCode.js b/packages/app-rfi/src/components/steps/questions/ZipCode.js index 3083b7fd00..e941b8afbc 100644 --- a/packages/app-rfi/src/components/steps/questions/ZipCode.js +++ b/packages/app-rfi/src/components/steps/questions/ZipCode.js @@ -1,7 +1,7 @@ import React, { useEffect } from "react"; import { gaEventPropTypes, trackGAEvent } from "../../../../../../shared"; -import { KEY } from "../../../core/utils/constants"; +import { KEY, PII_VALUE } from "../../../core/utils/constants"; import { useRfiContext } from "../../../core/utils/rfiContext"; import { RfiTextInput } from "../../controls"; @@ -42,7 +42,7 @@ export const ZipCode = ({ gaData }) => { trackGAEvent({ ...gaData, type: label, - text: e.target.value, + text: PII_VALUE, }) } /> diff --git a/packages/app-rfi/src/core/utils/constants.js b/packages/app-rfi/src/core/utils/constants.js index 3700ab7ddc..bc008a13c7 100644 --- a/packages/app-rfi/src/core/utils/constants.js +++ b/packages/app-rfi/src/core/utils/constants.js @@ -89,3 +89,7 @@ export const DATA_SOURCE = { ASU_ONLINE: "https://cms.asuonline.asu.edu/lead-submissions-v3.5/programs", COUNTRIES_STATES: "https://api.myasuplat-dpl.asu.edu/api/codeset/countries", }; + +// Personally Identifiable Information (PII) +// UDS-1943 : Fields containing PII should not send the PII to data layer +export const PII_VALUE = "REDACTED";