diff --git a/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeInstance.swift b/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeInstance.swift index b594d3ae3..9e2f79b05 100644 --- a/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeInstance.swift +++ b/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeInstance.swift @@ -29,7 +29,7 @@ public extension Amplitude { AmplitudeInstance.shared.track(eventType: eventType, eventProperties: eventProperties, options: nil) } - func trackWithUserType(event: AmplitudeEventType) { + func trackWithUserType(event: AmplitudeEventType, otherProperties: [String: Any]? = nil) { let eventType: String = event.rawValue let userType = UserDefaultKeyList.Auth.getUserType() let eventProperties: [String: Any] = ["view_type": userType.rawValue.lowercased()] @@ -39,7 +39,7 @@ public extension Amplitude { func addPushNotificationAuthorizationIdentity(isAuthorized: Bool) { let identify = Identify() - let key: AmplitudeUserPropertyKey = .notificationAuthorized + let key: AmplitudeUserPropertyKey = .statusOfPushNotification identify.set(property: key.rawValue, value: isAuthorized) identify.unset(property: "testProperty") diff --git a/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeUserPropertyKey.swift b/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeUserPropertyKey.swift index d294373f1..1abce01bf 100644 --- a/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeUserPropertyKey.swift +++ b/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeUserPropertyKey.swift @@ -9,5 +9,5 @@ import Foundation public enum AmplitudeUserPropertyKey: String { - case notificationAuthorized = "notification_authorized" + case statusOfPushNotification = "status_of_push_notification" }