Skip to content

Commit

Permalink
Remove PII from custom events sent to FaceBook.
Browse files Browse the repository at this point in the history
  • Loading branch information
davepeck committed Feb 28, 2024
1 parent 77bc96e commit b9727f6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
9 changes: 0 additions & 9 deletions src/components/VoteAmericaAnalytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down
9 changes: 0 additions & 9 deletions src/utils/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b9727f6

Please sign in to comment.