feat: 문의 source 에 UTM·유입 경로를 붙인다(.webforai.kr 공용 쿠키)

- src/lib/attribution.ts: webforai-landing attr.js 와 같은 규칙·같은 쿠키(wfa_attr), 30일 마지막 비직접 방문
- main.tsx 에서 기록, submitLead 가 source 꼬리로 전송(분석 이벤트 값은 그대로)
- tests/attribution.test.ts (npm test)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Haewon KamandClaude Opus 5.5 committed 2026-11-06 16:50:19 +09:00
1 parent 5ca51d10b6
commit fb14e530a1
5 files changed
+130 -2

No files matched your search

+2 -1
View File
@@ -10,7 +10,8 @@
"clean": "rm -rf dist",
"lint": "tsc --noEmit",
"db:sync": "tsx scripts/sync-db-local.ts",
"sync-registry": "tsx scripts/import-registry.ts"
"sync-registry": "tsx scripts/import-registry.ts",
"test": "node --experimental-strip-types --no-warnings --test tests/*.test.ts"
},
"dependencies": {
"@google/genai": "^1.29.0",