Skip to content

Amirbey/fix missing attributes in frontend events#9535

Merged
amirbey merged 15 commits intomainfrom
amirbey/fix-missing-attributes-in-frontend-events
Nov 3, 2023
Merged

Amirbey/fix missing attributes in frontend events#9535
amirbey merged 15 commits intomainfrom
amirbey/fix-missing-attributes-in-frontend-events

Conversation

@amirbey
Copy link
Contributor

@amirbey amirbey commented Nov 3, 2023

🛠 Summary of changes

Re-add attributes for analytics events.

Comment on lines 774 to 840
'Frontend: IdV: user clicked sp link on ready to verify page',
'IdV: user clicked sp link on ready to verify page',
)
end

def idv_clicked_what_to_bring_link_on_ready_to_verify_page(**_extra)
track_event(
'Frontend: IdV: user clicked what to bring link on ready to verify page',
'IdV: user clicked what to bring link on ready to verify page',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just want to flag that these renames will now fail build as of #9539. Renaming an event is a good opportunity to adopt the new naming scheme.

These should be :idv_clicked_sp_link_on_ready_to_verify_page and :idv_clicked_what_to_bring_link_on_ready_to_verify_page now if we're okay to do a rename.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks Andrew .. removed this unused method as we discussed 👍🏿

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one was translated incorrectly by me to begin with and should not have included the Frontend prefix?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mitchellhenke I think we didn't need the method you added, it was already wired up to an existing analytics method that doesn't have the prefix. The method you added was effectively dead code.

'IdV: user clicked what to bring link on ready to verify page' => :idv_in_person_ready_to_verify_what_to_bring_link_clicked,

# The user clicked the what to bring link on the "ready to verify" page
def idv_in_person_ready_to_verify_what_to_bring_link_clicked(**extra)
track_event(
'IdV: user clicked what to bring link on ready to verify page',
**extra,
)
end

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahhhh, thanks

@amirbey amirbey marked this pull request as ready for review November 3, 2023 21:33
@amirbey amirbey merged commit 82a9a2c into main Nov 3, 2023
@amirbey amirbey deleted the amirbey/fix-missing-attributes-in-frontend-events branch November 3, 2023 22:03
@matthinz matthinz mentioned this pull request Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants