feat: handleSendLog 함수 추가 및 analyticsLogValue 처리 방식 개선

This commit is contained in:
“hyeonggkim”
2026-01-26 19:56:28 +09:00
parent 618b260bbe
commit a15cfc036f

View File

@@ -24,6 +24,16 @@
}
}
// handleSendLog 함수 정의
const handleSendLog = (item: string) => {
const analytics = {
action_type: 'click',
click_item: item,
click_sarea: 'CUSTOM',
}
sendLog(locale.value, analytics)
}
const coerceToString = (value: unknown): string => {
if (typeof value === 'string') return value
if (typeof value === 'number') return String(value)
@@ -472,7 +482,7 @@
// 2) analytics
if (analyticsLogValue) {
console.log("🚀 ~ handleCustomAction ~ analyticsLogValue:", analyticsLogValue)
sendLog(locale.value, analyticsLogValue)
handleSendLog(analyticsLogValue)
}
}