-
Notifications
You must be signed in to change notification settings - Fork 166
Documents analytics #11 #6293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documents analytics #11 #6293
Changes from all commits
fc05eb8
d52849b
9b5e8f0
cb1c686
4556650
6bf3585
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -465,6 +465,134 @@ def idv_doc_auth_exception_visited(step_name:, remaining_attempts:, **extra) | |||||||||
| ) | ||||||||||
| end | ||||||||||
|
|
||||||||||
| # @param [Boolean] success | ||||||||||
| # @param [Hash] errors | ||||||||||
| # @param [Integer] attempts | ||||||||||
| # @param [Integer] remaining_attempts | ||||||||||
| # @param [String] user_id | ||||||||||
| # @param [String] flow_path | ||||||||||
| # The document capture image uploaded was locally validated during the IDV process | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. supernit... extra space
Suggested change
|
||||||||||
| def idv_doc_auth_submitted_image_upload_form( | ||||||||||
| success:, | ||||||||||
| errors:, | ||||||||||
| remaining_attempts:, flow_path:, attempts: nil, | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's break these on to separate lines for consistency
Suggested change
|
||||||||||
| user_id: nil, | ||||||||||
| **extra | ||||||||||
| ) | ||||||||||
| track_event( | ||||||||||
| 'IdV: doc auth image upload form submitted', | ||||||||||
| success: success, | ||||||||||
| errors: errors, | ||||||||||
| attempts: attempts, | ||||||||||
| remaining_attempts: remaining_attempts, | ||||||||||
| user_id: user_id, | ||||||||||
| flow_path: flow_path, | ||||||||||
| **extra, | ||||||||||
| ) | ||||||||||
| end | ||||||||||
|
|
||||||||||
| # @param [Boolean] success | ||||||||||
| # @param [Hash] errors | ||||||||||
| # @param [String] exception | ||||||||||
| # @param [Boolean] billed | ||||||||||
| # @param [String] doc_auth_result | ||||||||||
| # @param [String] state | ||||||||||
| # @param [String] state_id_type | ||||||||||
| # @param [Boolean] async | ||||||||||
| # @param [Integer] attempts | ||||||||||
| # @param [Integer] remaining_attempts | ||||||||||
| # @param [Hash] client_image_metrics | ||||||||||
| # @param [String] flow_path | ||||||||||
| # The document capture image was uploaded to vendor during the IDV process | ||||||||||
| def idv_doc_auth_submitted_image_upload_vendor( | ||||||||||
| success:, | ||||||||||
| errors:, | ||||||||||
| exception:, | ||||||||||
| state:, | ||||||||||
| state_id_type:, | ||||||||||
| async:, attempts:, | ||||||||||
| remaining_attempts:, | ||||||||||
| client_image_metrics:, | ||||||||||
| flow_path:, | ||||||||||
| billed: nil, | ||||||||||
| doc_auth_result: nil, | ||||||||||
| **extra | ||||||||||
| ) | ||||||||||
| track_event( | ||||||||||
| 'IdV: doc auth image upload vendor submitted', | ||||||||||
| success: success, | ||||||||||
| errors: errors, | ||||||||||
| exception: exception, | ||||||||||
| billed: billed, | ||||||||||
| doc_auth_result: doc_auth_result, | ||||||||||
| state: state, | ||||||||||
| state_id_type: state_id_type, | ||||||||||
| async: async, | ||||||||||
| attempts: attempts, | ||||||||||
| remaining_attempts: remaining_attempts, | ||||||||||
| client_image_metrics: client_image_metrics, | ||||||||||
| flow_path: flow_path, | ||||||||||
| **extra, | ||||||||||
| ) | ||||||||||
| end | ||||||||||
|
|
||||||||||
| # @param [Boolean] success | ||||||||||
| # @param [Hash] errors | ||||||||||
| # @param [String] user_id | ||||||||||
| # @param [Integer] remaining_attempts | ||||||||||
| # @param [Hash] pii_like_keypaths | ||||||||||
| # @param [String] flow_path | ||||||||||
| # The PII that came back from the document capture vendor was validated | ||||||||||
| def idv_doc_auth_submitted_pii_validation( | ||||||||||
| success:, | ||||||||||
| errors:, | ||||||||||
| remaining_attempts:, | ||||||||||
| pii_like_keypaths:, | ||||||||||
| flow_path:, | ||||||||||
| user_id: nil, | ||||||||||
| **extra | ||||||||||
| ) | ||||||||||
| track_event( | ||||||||||
| 'IdV: doc auth image upload vendor pii validation', | ||||||||||
| success: success, | ||||||||||
| errors: errors, | ||||||||||
| user_id: user_id, | ||||||||||
| remaining_attempts: remaining_attempts, | ||||||||||
| pii_like_keypaths: pii_like_keypaths, | ||||||||||
| flow_path: flow_path, | ||||||||||
| **extra, | ||||||||||
| ) | ||||||||||
| end | ||||||||||
|
|
||||||||||
| # @param [String] step_name | ||||||||||
| # @param [Integer] remaining_attempts | ||||||||||
| # The user was sent to a warning page during the IDV flow | ||||||||||
| def idv_doc_auth_warning_visited( | ||||||||||
| step_name:, | ||||||||||
| remaining_attempts:, | ||||||||||
| **extra | ||||||||||
| ) | ||||||||||
| track_event( | ||||||||||
|
||||||||||
| 'IdV: doc auth warning visited', | ||||||||||
| step_name: step_name, | ||||||||||
| remaining_attempts: remaining_attempts, | ||||||||||
| **extra, | ||||||||||
| ) | ||||||||||
| end | ||||||||||
|
|
||||||||||
| # @param [Boolean] success | ||||||||||
| # Tracks the last step of IDV, indicates the user successfully prooved | ||||||||||
| def idv_final( | ||||||||||
| success:, | ||||||||||
| **extra | ||||||||||
| ) | ||||||||||
| track_event( | ||||||||||
| 'IdV: final resolution', | ||||||||||
| success: success, | ||||||||||
| **extra, | ||||||||||
| ) | ||||||||||
| end | ||||||||||
|
|
||||||||||
| # User visited IDV personal key page | ||||||||||
| def idv_personal_key_visited | ||||||||||
| track_event('IdV: personal key visited') | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ class RegisterStepFromAnalyticsViewEvent | |
| ANALYTICS_EVENT_TO_DOC_AUTH_LOG_TOKEN = { | ||
| Analytics::IDV_PHONE_RECORD_VISIT => :verify_phone, | ||
| Analytics::IDV_REVIEW_VISIT => :encrypt, | ||
| Analytics::IDV_FINAL => :verified, | ||
| 'IdV: final resolution' => :verified, | ||
|
||
| Analytics::IDV_GPO_ADDRESS_VISITED => :usps_address, | ||
| }.freeze | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did we remove
flow_pathhere?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we need to keep it/bring it back otherwise we lose data