feat. 일반 템플릿 로그 추가
This commit is contained in:
@@ -3,6 +3,7 @@ interface Props {
|
||||
title: string
|
||||
description: string | number
|
||||
imgPath: string | null
|
||||
analyticsSarea: string
|
||||
linkTarget?: '_blank' | '_self'
|
||||
url?: string
|
||||
alt?: string
|
||||
@@ -10,8 +11,9 @@ interface Props {
|
||||
}
|
||||
|
||||
const props = defineProps<Props>()
|
||||
|
||||
const { locale } = useI18n()
|
||||
const { sendLog, useAnalyticsLogDataDirect } = useAnalytics()
|
||||
const { sendLog, useAnalyticsData } = useAnalytics()
|
||||
|
||||
const isNoImage = computed(() => {
|
||||
return !props.imgPath || props.imgPath === null
|
||||
@@ -21,14 +23,12 @@ const isShowOverlay = computed(() => {
|
||||
})
|
||||
|
||||
const handleLinkClick = (title: string) => {
|
||||
const trackingData = {
|
||||
tracking: {
|
||||
click_item: title,
|
||||
action_type: 'click',
|
||||
click_sarea: '',
|
||||
},
|
||||
const analytics = {
|
||||
click_item: title,
|
||||
action_type: 'click',
|
||||
click_sarea: props.analyticsSarea,
|
||||
}
|
||||
sendLog(locale.value, useAnalyticsLogDataDirect(trackingData, 1))
|
||||
sendLog(locale.value, useAnalyticsData(analytics))
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user