feat. 공통 로그 변경, 고정 템플릿 로그 추가

This commit is contained in:
clkim
2025-12-15 15:25:32 +09:00
parent 966c66fe7b
commit f955b76e62
39 changed files with 670 additions and 795 deletions

View File

@@ -13,7 +13,13 @@ interface Props {
const props = defineProps<Props>()
const { locale } = useI18n()
const { sendLog, useAnalyticsData } = useAnalytics()
const { sendLog } = useAnalytics()
const analytics = {
action_type: 'click',
click_item: props.title,
click_sarea: props.analyticsSarea,
}
const isNoImage = computed(() => {
return !props.imgPath || props.imgPath === null
@@ -21,15 +27,6 @@ const isNoImage = computed(() => {
const isShowOverlay = computed(() => {
return props.title || props.description
})
const handleLinkClick = (title: string) => {
const analytics = {
click_item: title,
action_type: 'click',
click_sarea: props.analyticsSarea,
}
sendLog(locale.value, useAnalyticsData(analytics))
}
</script>
<template>
@@ -64,7 +61,7 @@ const handleLinkClick = (title: string) => {
:to="props.url"
:target="props.linkTarget || '_self'"
class="card-link"
@click="handleLinkClick(props.title)"
@click="sendLog(locale, analytics)"
/>
</div>
</template>