Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class ReadyToVerifyController < ApplicationController
def show
@is_enhanced_ipp = resolved_authn_context_result.enhanced_ipp?
analytics.idv_in_person_ready_to_verify_visit(**opt_in_analytics_properties)
attempts_api_tracker.idv_ipp_ready_to_verify_visit
@presenter = ReadyToVerifyPresenter.new(
enrollment: enrollment,
)
Expand Down
5 changes: 5 additions & 0 deletions app/services/attempts_api/tracker_events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ def email_and_password_auth(success:)
)
end

# A user becomes able to visit the post office for in-person proofing
def idv_ipp_ready_to_verify_visit
track_event('idv-ipp-ready-to-verify-visit')
end

# @param [Boolean] success True if the entered code matched the sent code
# @param [Hash<Symbol,Array<Symbol>>] failure_reason if code did not match
# A user that requested to verify their address by mail entered the code contained in the letter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: |
When the user submits the security code that they received on their phone to verify their phone or address during identity proofing.
When the user becomes able to visit the post office for in-person proofing.
allOf:
- $ref: '../shared/EventProperties.yml'
- type: object
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
end

it 'logs analytics' do
stub_attempts_tracker
expect(@attempts_api_tracker).to receive(:idv_ipp_ready_to_verify_visit)

response

expect(@analytics).to have_logged_event('IdV: in person ready to verify visited')
Expand Down