feat: visual03 로그 추가
This commit is contained in:
@@ -11,7 +11,22 @@ interface Props {
|
||||
pageVerTmplSeq: string
|
||||
}
|
||||
|
||||
const {locale} = useI18n()
|
||||
|
||||
const props = defineProps<Props>()
|
||||
|
||||
const { sendLog, useAnalyticsLogDataDirect } = useAnalytics()
|
||||
const onArrowClick = (direction, targetIndex) => {
|
||||
|
||||
// tracking 데이터 복사 및 click_item 수정
|
||||
const modifiedTracking = {
|
||||
...props.components.arrow.groups[targetIndex].tracking,
|
||||
click_item: props.components.arrow.groups[targetIndex].tracking.click_item + `_slide${targetIndex}`
|
||||
}
|
||||
|
||||
sendLog(locale.value, useAnalyticsLogDataDirect(new Proxy(modifiedTracking, {}), Number(props.pageVerTmplSeq)))
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -21,6 +36,7 @@ const props = defineProps<Props>()
|
||||
:arrows="true"
|
||||
:pagination="true"
|
||||
class="h-full"
|
||||
@arrow-click="onArrowClick"
|
||||
>
|
||||
<SplideSlide
|
||||
v-for="(item, index) in props.components.group_sets"
|
||||
|
||||
Reference in New Issue
Block a user