feat. 공통 로그 변경, 고정 템플릿 로그 추가
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user