Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] #408 - Amplitude 설치 #462

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
feat: amplitude - 알림 센터 내 알림 숏컷을 탭할 때
  • Loading branch information
seungchan2 committed Dec 12, 2024
commit 9e817d7058963fa04c2194a30c7b53a9f7e0c41d
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public enum AmplitudeEventType: String {
case clickHotboard = "click_hotboard"
case clickShortcutButton = "click_link.btn"
case clickReadAllButton = "click_allread.btn"
case clickNotificationItem = "click_notification_item"

// 콕 찌르기 클릭 이벤트
case clickPoke = "click_poke"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ extension NotificationListViewModel {
owner.onNotificationTap?(notification.notificationId)
owner.read(index: index)
output.notificationList.send(self.notifications)
AmplitudeInstance.shared.track(eventType: .clickNotificationItem,
eventProperties: [
"notification_id": notification.notificationId,
"send_timestamp": notification.createdAt,
"contents": notification.content ?? "",
"admin_category": notification.category ?? "",
"title": notification.title
])
}.store(in: cancelBag)

input.readAllButtonTapped
Expand Down