Skip to content

Commit

Permalink
add analytics event for when users visits connected accounts page
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdembe committed Nov 25, 2024
1 parent d1f9c01 commit bfc0aa0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/accounts/connected_accounts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class ConnectedAccountsController < ApplicationController
layout 'account_side_nav'

def show
analytics.track_event(:connected_accounts_page_visited)
@presenter = AccountShowPresenter.new(
decrypted_pii: nil,
sp_session_request_url: sp_session_request_url_with_updated_params,
Expand Down
4 changes: 4 additions & 0 deletions app/services/analytics_events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@ def create_new_device_alert_job_emails_sent(count:, **extra)
track_event(:create_new_device_alert_job_emails_sent, count:, **extra)
end

def connected_accounts_page_visited
track_event(:connected_accounts_page_visited)
end

# @param [String] message the warning
# @param [Array<String>] unknown_alerts Names of alerts not recognized by our code
# @param [Hash] response_info Response payload
Expand Down

0 comments on commit bfc0aa0

Please sign in to comment.