Skip to content

Commit

Permalink
Add tracking event for logins/signups that happen via OAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
amy-at-kickstarter committed Mar 7, 2024
1 parent 2c8286c commit 0dadd81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Library/OAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ public struct OAuth {
let accessEnvelope = AccessTokenEnvelope(accessToken: token, user: user)
AppEnvironment.login(accessEnvelope)

// This is an imperfect bit of logging, since it doesn't differentiate between logins and signups.
// But it makes up for the fact that we can't track any of this through the embedded web views.
AppEnvironment.current.ksrAnalytics.trackLoginSubmitButtonClicked()

onComplete(.loggedIn)

}.store(in: &self.cancellables)
Expand Down

0 comments on commit 0dadd81

Please sign in to comment.