Skip to content

Commit

Permalink
Start tracking users in 20-10207 (#16456)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thrillberg committed Apr 23, 2024
1 parent 68ed41b commit 5312b97
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -3,6 +3,7 @@
module SimpleFormsApi
class VBA2010207
include Virtus.model(nullify_blank: true)
STATS_KEY = 'api.simple_forms_api.20_10207'

attribute :data

Expand Down Expand Up @@ -97,7 +98,11 @@ def submission_date_stamps
[]
end

def track_user_identity(confirmation_number); end
def track_user_identity(confirmation_number)
identity = "#{data['preparer_type']} #{data['third_party_type']}"
StatsD.increment("#{STATS_KEY}.#{identity}")
Rails.logger.info('Simple forms api - 20-10207 submission user identity', identity:, confirmation_number:)
end

private

Expand Down

0 comments on commit 5312b97

Please sign in to comment.