diff --git a/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeInstance.swift b/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeInstance.swift index 4ab9402e..2cb77eae 100644 --- a/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeInstance.swift +++ b/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeInstance.swift @@ -25,14 +25,14 @@ public extension Amplitude { 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()] + let eventProperties: [String: Any] = [AmplitudeEventPropertyKey.viewType.rawValue: userType.rawValue.lowercased()] AmplitudeInstance.shared.track(eventType: eventType, eventProperties: eventProperties, options: nil) } func addPushNotificationAuthorizationIdentity(isAuthorized: Bool) { let identify = Identify() - let key: AmplitudeUserPropertyKey = .statusOfPushNotification + let key: AmplitudeUserPropertyKey = .stateOfPushNotification identify.set(property: key.rawValue, value: isAuthorized) AmplitudeInstance.shared.identify(identify: identify) diff --git a/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeUserPropertyKey.swift b/SOPT-iOS/Projects/Core/Sources/Amplitude/AmplitudeUserPropertyKey.swift index a439dbbb..dc8edb3f 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 statusOfPushNotification = "state_of_push_notification" + case stateOfPushNotification = "state_of_push_notification" }