fix. 코드 정리 (format 적용, 불필요한 파일 제거)

This commit is contained in:
clkim
2026-01-05 13:58:35 +09:00
parent 1eb9ed5360
commit 743c3b2b3c
25 changed files with 534 additions and 1301 deletions

View File

@@ -1,7 +1,7 @@
import * as amplitude from '@amplitude/analytics-browser'
// Nuxt 플러그인 정의
export default defineNuxtPlugin((nuxtApp) => {
export default defineNuxtPlugin(nuxtApp => {
// const { memberNo } = useAnalytics() as { memberNo: string }
const memberNo = csrGetStoveMemberNo()
@@ -13,11 +13,11 @@ export default defineNuxtPlugin((nuxtApp) => {
pageViews: true, // 페이지 뷰 추적 활성화
sessions: false, // 세션 추적 비활성화
formInteractions: false, // 폼 상호작용 추적 비활성화
fileDownloads: false // 파일 다운로드 추적 비활성화
fileDownloads: false, // 파일 다운로드 추적 비활성화
},
autocapture: {
attribution: true
}
attribution: true,
},
})
// Identify 이벤트 생성 및 설정
@@ -27,7 +27,6 @@ export default defineNuxtPlugin((nuxtApp) => {
// Identify 이벤트 전송 및 사용자 ID 설정
amplitude.identify(identifyEvent)
amplitude.setUserId(`${memberNo}`)
;(window as any).amplitude = amplitude // amplitude 객체 전역으로 설정(Stove GNB에서 사용)
// 페이지가 숨겨질 때 이벤트 리스너 추가