From b9727f6f8c8cc6f4b1ad137ed041945cc7897b93 Mon Sep 17 00:00:00 2001 From: Dave Date: Wed, 28 Feb 2024 15:45:53 -0800 Subject: [PATCH] Remove PII from custom events sent to FaceBook. --- src/components/VoteAmericaAnalytics.tsx | 9 --------- src/utils/analytics.ts | 9 --------- 2 files changed, 18 deletions(-) diff --git a/src/components/VoteAmericaAnalytics.tsx b/src/components/VoteAmericaAnalytics.tsx index a9dc441..41a188f 100644 --- a/src/components/VoteAmericaAnalytics.tsx +++ b/src/components/VoteAmericaAnalytics.tsx @@ -145,9 +145,6 @@ const listener = (event: VoteAmericaEvent, intended: State) => { case "action-start": console.log("RegisterStartEvent", data); fireRegisterStartEvent({ - first_name: data.first_name, - last_name: data.last_name, - email: data.email, state: data.state, intended, zipcode: data.zipcode, @@ -157,9 +154,6 @@ const listener = (event: VoteAmericaEvent, intended: State) => { case "action-finish": console.log("RegisterFinishEvent", data); fireRegisterFinishEvent({ - first_name: data.first_name, - last_name: data.last_name, - email: data.email, state: data.state, intended, zipcode: data.zipcode, @@ -170,9 +164,6 @@ const listener = (event: VoteAmericaEvent, intended: State) => { case "action-follow-up": console.log("RegisterFollowUpEvent", data); fireRegisterFollowUpEvent({ - first_name: data.first_name, - last_name: data.last_name, - email: data.email, state: data.state, intended, zipcode: data.zipcode, diff --git a/src/utils/analytics.ts b/src/utils/analytics.ts index 842355f..b2554d6 100644 --- a/src/utils/analytics.ts +++ b/src/utils/analytics.ts @@ -98,15 +98,6 @@ export const fireClickRegisterEvent = (event: ClickRegisterEvent) => { /** Generic information about the registering user. */ export interface RegisterUser { - /** The user's first name. */ - first_name: string; - - /** The user's last name. */ - last_name: string; - - /** The user's email. */ - email: string; - /** The user's state of registration. */ state: State;