Skip to content

Commit

Permalink
Track email confirmation post signup
Browse files Browse the repository at this point in the history
  • Loading branch information
nid90 committed Dec 5, 2023
1 parent b9a2411 commit 94e4885
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/authentication/confirmations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ def show

if resource.errors.empty?
set_flash_message!(:notice, :confirmed)
SiteAnalytics.track(resource, resource.organizations.first, DeviceDetector.new(request.user_agent), "Email Confirmation")
elsif resource.confirmed?
set_flash_message!(:notice, :already_confirmed)
else
Expand Down

0 comments on commit 94e4885

Please sign in to comment.