feat: 슬라이드 화살표 클릭 로그 추가 및 관련 로직 개선

This commit is contained in:
“hyeonggkim”
2025-10-20 20:08:10 +09:00
parent 9f6056ef77
commit a36489c264
9 changed files with 139 additions and 91 deletions

View File

@@ -10,12 +10,28 @@ interface Props {
}
const props = defineProps<Props>()
const {locale} = useI18n()
const { sendLog, useAnalyticsLogDataDirect } = useAnalytics()
const handleLinkClick = (title) => {
const trackingData = {
tracking: {
click_item: title,
action_type: 'click',
click_sarea: ''
}
}
sendLog(locale.value, useAnalyticsLogDataDirect(trackingData, 1))
}
</script>
<template>
<div
v-if="props.title || props.description"
:class="`card-news ${props.class || ''}`"
@click="handleLinkClick(props.title)"
>
<img
:src="props.imgPath"