Skip to content

Commit

Permalink
Add **extra to some analytics events that are missing it
Browse files Browse the repository at this point in the history
  • Loading branch information
matthinz committed Mar 18, 2024
1 parent fd4486d commit fd41a4a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions app/services/analytics_events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,8 @@ def idv_address_submitted(
end

# User visited idv address page
def idv_address_visit
track_event('IdV: address visited')
def idv_address_visit(**extra)
track_event('IdV: address visited', **extra)
end

# @param [String] acuantCaptureMode
Expand Down Expand Up @@ -954,10 +954,11 @@ def idv_doc_auth_link_sent_visited(**extra)
track_event('IdV: doc auth link_sent visited', **extra)
end

def idv_doc_auth_randomizer_defaulted
def idv_doc_auth_randomizer_defaulted(**extra)
track_event(
'IdV: doc_auth random vendor error',
error: 'document_capture_session_uuid_key missing',
**extra,
)
end

Expand Down Expand Up @@ -2391,8 +2392,8 @@ def idv_in_person_usps_request_enroll_exception(
end

# User visits IdV
def idv_intro_visit
track_event('IdV: intro visited')
def idv_intro_visit(**extra)
track_event('IdV: intro visited', **extra)
end

# @param [String] enrollment_id
Expand Down Expand Up @@ -2497,8 +2498,8 @@ def idv_native_camera_forced(
end

# Tracks when user reaches verify errors due to being rejected due to fraud
def idv_not_verified_visited
track_event('IdV: Not verified visited')
def idv_not_verified_visited(**extra)
track_event('IdV: Not verified visited', **extra)
end

# Tracks if a user clicks the 'acknowledge' checkbox during personal
Expand Down

0 comments on commit fd41a4a

Please sign in to comment.