feat: handleSendLog 함수 추가 및 analyticsLogValue 처리 방식 개선
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user