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] #239 - Coahing, Detail Diary Amplitude 연결 #240

Merged
merged 13 commits into from
Dec 12, 2024

Conversation

cchanmi
Copy link
Member

@cchanmi cchanmi commented Dec 10, 2024

작업한 내용

  • 코칭 버튼 클릭
  • 닫기 버튼 클릭
  • 코칭 로딩 뷰 진입시
  • 코칭 뷰 진입시
  • 코칭 내용 스와이프시
  • 일기 상세 진입시
  • 일기 상세 수정 버튼 클릭시
  • 일기 상세 수정 완료 버튼 클릭시

총 9개 amplitude 작업 진행했습니다! 고생했습니다.

enum coaching {
    case coaching_try_click(Bool)
    case coaching_exit_click(Bool)
    case coaching_load_view
    case coaching_result_view
    case coaching_feedback_view(Int)
    
    var event: BaseEvent {
        switch self {
        case .coaching_try_click(let isActive):
            return BaseEvent(eventType: "coaching_try_click", eventProperties: ["active": isActive])
        case .coaching_exit_click(let isActive):
            return BaseEvent(eventType: "coaching_exit_click", eventProperties: ["active": isActive])
        case .coaching_load_view:
            return BaseEvent(eventType: "coaching_load_view", eventProperties: nil)
        case .coaching_result_view:
            return BaseEvent(eventType: "coaching_result_view", eventProperties: nil)
        case .coaching_feedback_view(let index):
            return BaseEvent(eventType: "badge_bottom_sheet_view", eventProperties: ["Index": index])
        }
    }
}


enum diaryDetail {
    case toggle_click(String)
    case mydiary_click
    case mydiary_view(Bool)
    case mydiary_edit(Bool)
    case mydiary_edit_complete_click(Bool)
    
    var event: BaseEvent {
        switch self {
        case .toggle_click(let toggle):
            return BaseEvent(eventType: "toggle_click", eventProperties: ["toggle": toggle])
        case .mydiary_click:
            return BaseEvent(eventType: "mydiary_click", eventProperties: nil)
        case .mydiary_view(let hasCoaching):
            return BaseEvent(eventType: "mydiary_view", eventProperties: ["has_coaching": hasCoaching])
        case .mydiary_edit(let hasCoaching):
            return BaseEvent(eventType: "mydiary_edit", eventProperties: ["has_coaching": hasCoaching])
        case .mydiary_edit_complete_click(let hasCoaching):
            return BaseEvent(eventType: "mydiary_edit_complete_click", eventProperties: ["has_coaching": hasCoaching])
        }
    }
}

관련 이슈

@cchanmi cchanmi self-assigned this Dec 10, 2024
@cchanmi cchanmi merged commit 537cc7c into develop Dec 12, 2024
1 check passed
Copy link
Contributor

@joonBaek12 joonBaek12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

세팅해주신 덕분에 편하게 작업했습니다. 고생하셨습니다~!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 일기 코칭 Amplitude 연결
2 participants