feat: 새 기능 GA4 이벤트 — 창 열기·좋아요·댓글·신고·차단·약관 동의·이야기 글쓰기·히어로 오늘/내일·쇼츠·단풍 지도·내 각·토스 인트로·설치 띠 닫기
This commit is contained in:
1 parent
1489030c5f
commit
728b24a0c9
13 files changed
+110
-18
No files matched your search
@@ -1,3 +1,6 @@
|
||||
import type { PinnedKey } from '../b/pinnedLike'
|
||||
import type { SheetState } from '../b/sheetContext'
|
||||
|
||||
/** GA4로 보내는 이벤트와 값. 목록은 docs/이벤트_추적.md */
|
||||
type Events = {
|
||||
view_gak: { index_id: number; gak_name: string; score: number; rank: number }
|
||||
@@ -11,8 +14,26 @@ type Events = {
|
||||
install_choice: { outcome: 'accepted' | 'dismissed' }
|
||||
install_done: Record<string, never>
|
||||
app_launch: { mode: 'standalone' }
|
||||
sheet_open: { sheet: SheetType }
|
||||
like: { content_type: 'post' | 'comment' | 'talk' | PinnedKey; item_id: number }
|
||||
comment: { post_id: number }
|
||||
report: { content_type: 'comment' | 'talk'; reason: number }
|
||||
block: { content_type: 'comment' | 'talk' }
|
||||
terms_agree: Record<string, never>
|
||||
talk_post: { topic: number; with_image: boolean }
|
||||
hero_day_switch: { day: 'today' | 'tomorrow' }
|
||||
shorts_open: { video_id: string }
|
||||
shorts_view: { video_id: string; index: number }
|
||||
shorts_sound: { on: boolean }
|
||||
foliage_open: Record<string, never>
|
||||
foliage_spot: { spot_name: string; from: 'page' | 'card' }
|
||||
my_gak_save: { gak_name: string }
|
||||
toss_intro_start: Record<string, never>
|
||||
install_banner_close: Record<string, never>
|
||||
}
|
||||
|
||||
type SheetType = Exclude<SheetState, null>['type']
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
gtag?: (command: 'event', name: string, params: Record<string, unknown>) => void
|
||||
|
||||
Reference in new issue
Block a user