Compare commits

..
Author SHA1 Message Date
Haewon KamandClaude Fable 5 3ba8fc839d feat: /discovery CTA 'URL 입력으로 시작하기' — URL 입력 진단 신청 모달 + discovery_leads 저장
- 히어로·하단 CTA 버튼명 변경(무료 AEO/GEO 진단 받기 → URL 입력으로 시작하기), mailto 직행 제거
- DiscoveryLeadModal: URL(필수)·연락처(필수)·상호(선택) → Supabase discovery_leads insert
- RLS anon insert 전용(조회 불가), 저장 실패 시 o2oteam@o2o.kr mailto 폴백 (정직성 규약)
- 마이그레이션 20260831_discovery_leads.sql (적용은 supabase login 후 db push 필요)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgWoJZAvvzMxTpWeenZSia
2026-08-31 16:58:38 +09:00
Haewon KamandClaude Fable 5 f50426eaed fix: 뷰성형외과 재채점 4건 반영 (A5·B4·C6·D6) — 48/C → 49/C
- audit_aeo_geo.py 재채점에서 확인된 기존 수작업 실측의 샘플링 누락 보정
- A5 2→3 (page/portfolio-sitemap lastmod 최신 2026-08-31), B4 2→1 (시술 페이지 세 번째 주소 표기),
  C6 1→3 (article:modified_time·dateModified 2026-04-17 실재), D6 unverified→0 (Wikidata 검색 결과 없음)
- keyFindings '15개월간 갱신 신호 없음' → '갱신 신호는 살아 있다(블로그만 2024-05 정지)'로 정정
- 검증 분모 88→89 (검증 32/36), 등급·목표(C→B) 변화 없음

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgWoJZAvvzMxTpWeenZSia
2026-08-31 16:46:29 +09:00
Haewon KamandClaude Fable 5 06a29fdf7c feat: AI Discovery 자동 채점기 audit_aeo_geo.py (P0) — auto 22항목/55점 자동 판정
- 병원 URL 2개 입력 → 기준표 v1.0 auto 22항목 자동 채점 → discovery_<id>.ts 초안 생성
- semi/manual 항목은 unverified + 수집 증거 메모 (분모 제외 규칙 준수)
- 뷰성형외과 재채점 검증: auto 22항목 중 18항목 기존 실측 일치,
  불일치 4건(A5·B4·C6·D6)은 전부 기존 수작업 실측의 샘플링 누락 (핸드오버 문서에 기록)
- stdlib만 사용, curl 백엔드 (macOS 인증서 회피, crawler_audit.py 계승)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgWoJZAvvzMxTpWeenZSia
2026-08-31 16:37:40 +09:00
Haewon KamandClaude Fable 5 b4edbf5da7 docs: AI Discovery Build 2 핸드오버 (자동 채점기 P0, 태하 랜딩 미노출 확정)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WgWoJZAvvzMxTpWeenZSia
2026-08-31 16:25:29 +09:00
8 changed files with 1487 additions and 23 deletions

No files matched your search

+125
View File
@@ -0,0 +1,125 @@
# AI Discovery · Build 2 Handover (자동 채점 파이프라인)
2026-08-31 랜딩(/discovery) 프로덕션 배포까지 끝난 상태에서, 다음 세션이 이어받을 빌드 범위를 담는다.
직전 인수인계는 `docs/AI_DISCOVERY_FRONTEND_HANDOVER.md`(랜딩 구현, 완료됨).
---
## 0. 다음 세션 실행 프롬프트 (복붙용)
```
docs/AI_DISCOVERY_BUILD2_HANDOVER.md 를 읽고 AI Discovery 자동 채점기를 구현해줘.
- P0: scripts/audit_aeo_geo.py — 병원 URL 입력 → 기준표 auto 22항목(55점) 자동 채점
→ src/data/discovery_<id>.ts 초안 생성 (semi/manual은 'unverified' + 수집된 증거 메모)
- 참조 구현: ~/Claude/Agentic Marketing/ADO2/009. AEO-GEO/06_skill-snapshot/scripts/crawler_audit.py
- 검증: 뷰성형외과를 재채점해 auto 항목 판정이 discovery_viewclinic.ts 기존 실측과 일치해야 한다
- 완료 기준: 새 업체 URL 1개를 30분 안에 /discovery/:id 리포트로 올릴 수 있다
끝나면 git push + vercel --prod 까지.
```
---
## 1. 현재 상태 (2026-08-31)
| 항목 | 상태 |
|---|---|
| 랜딩 `/discovery` | 프로덕션 배포 완료 (https://infinith-demo.vercel.app/discovery) |
| 리포트 `/discovery/:id` | viewclinic 48점/C, taeha 68점/B |
| 데이터 파생 | 랜딩·리포트의 모든 수치는 `scoreDiscovery` 계산값. `nextGradeTarget`·`scorePctColor` 헬퍼 포함 |
| lint | `npm run lint`(tsc) 0 에러. 단, 실제 검사는 AEO-GEO-Audit 워크트리에서만 가능 (main 워크트리는 node_modules에 tsc 없음) |
| 영업 자료 | POC 제안서 `docs/reports/Viewclinic_POC_Proposal.pptx/.pdf` (10장) |
## 2. 확정 결정 (2026-08-31 haewon)
1. **태하 케이스는 랜딩 샘플로 노출하지 않는다.** 랜딩 샘플은 뷰성형외과 단일 유지.
`/discovery/taeha` 라우트와 데이터는 삭제하지 않고 유지한다 (영업 시 직접 링크로만 사용).
2. 리포트 PDF는 항상 PPTX 덱을 만든 뒤 soffice 변환으로 뽑는다 (HTML 인쇄 방식 금지, 기존 결정 유지).
## 3. 빌드 우선순위
### P0 · 자동 채점기 `scripts/audit_aeo_geo.py`
지금 병목은 진단 1건당 수작업 실측이다. 기준표 36항목의 자동화 가능성은 이미 rubric에 태깅되어 있다:
| method | 항목 수 | 배점 합 | 처리 방식 |
|---|---|---|---|
| auto | 22 | 55점 | 스크립트가 판정까지 |
| semi | 5 | 17점 | 스크립트가 증거 수집, 판정은 사람 (C1 정의문·C4 수치·C7 E-E-A-T·D3 오픈웹·D5 플레이스) |
| manual | 9 | 28점 | 'unverified' 유지 (A6·C8·D1·D2·D4·E1~E4) |
- 입력: 메인 URL + 대표 시술/서비스 페이지 URL 1개 (뷰성형외과 실측과 동일 조건: JS 미실행 HTML 기준)
- 항목별 체크 로직은 `src/data/aeoGeoRubric.ts`의 `howToCheck` 필드에 이미 구현 스펙으로 적혀 있다
- 출력: `src/data/discovery_<id>.ts` 초안. `evidence`는 실측 문자열로 채운다 (판정 근거 없는 항목을 0점 처리하지 말 것, 분모 제외 규칙 유지)
- 운영 플로우: 스크립트 초안 → 사람이 semi/manual 보정 → `discoveryResults.ts`에 1줄 추가 → 리포트 페이지 자동 생성
- 형태는 로컬 Python 스크립트로 시작한다. Edge Function(`discover-aeo-geo`)化는 셀프서브 전환이 결정된 뒤에 한다.
- 업체 선정 방법(기존 확정): 분야 키워드로 네이버 검색 → 파워링크 1위 광고주. 광고 리다이렉트는 직접 못 따라가므로 상호로 재검색해 도메인 확인.
### P1 · 계약 후 미검증 해소 runbook
뷰성형외과(또는 첫 계약 업체) 계약 시 실행할 체크리스트를 문서화한다:
E1 서버로그 AI 봇 추출, E2 GA4 AI 채널그룹, E3 GSC, A6 Bing Webmaster, D6 Wikidata 조회.
미검증 5개가 해소되면 분모가 88 → 100으로 바뀌므로 총점이 변한다는 사실을 리포트에 명시한다.
### P1 · 덱 스크린샷 자동 갱신
랜딩 변경 → 캡처 → 크롭(히어로 0~1384px, 리포트 밴드는 #F4F6FB 행 범위 감지) → `build_viewclinic_poc_deck.py` 리빌드를 스크립트 하나로 묶는다.
### P2 · 기준선 스팟체크 러너 (E4)
질의 10개 × 5회 반복, 언급률 + 신뢰구간으로만 기록한다.
답변엔진 소비자 UI 자동 조회는 약관 위반이므로 금지 (API 또는 수동 기록).
## 4. 오너 결정 대기 (빌드 전 haewon 확인)
- 카테고리 가중치 확정 (현행 A20/B20/C25/D20/E10/F5)
- 랜딩 CTA 형태: 현행 mailto(o2oteam@o2o.kr) 유지 vs 신청 폼(Supabase 테이블) 전환.
계약 기반 영업 모델(PART III 피봇)과의 정합을 보고 결정한다.
- 다음 진단 대상 업종·키워드
## 5. P0 자동 채점기 — 구현 완료 (2026-08-31)
`scripts/audit_aeo_geo.py` 구현·검증 완료. 표준 라이브러리만 사용(의존성 없음), fetch는 curl 백엔드(macOS 인증서 문제 회피).
### 사용법
```bash
python3 scripts/audit_aeo_geo.py <메인URL> <대표시술페이지URL> \
--id <라우트id> --name <상호> --industry "<업종 (지역)>"
# 옵션: --out <경로> --json <경로> --skip-ts --force
```
→ `src/data/discovery_<id>.ts` 초안 생성. auto 22항목은 판정까지, semi 5항목(C1·C4·C7·D3·D5)은
`'unverified'` + 수집 증거 메모, manual 9항목은 `'unverified'` + 확인 방법 메모.
판정 근거를 못 얻은 auto 항목(예: meta generator 없음)은 0점이 아니라 unverified로 남긴다 (분모 제외 규칙 준수).
### 검증 결과 (뷰성형외과 재채점, 2026-08-31)
auto 22항목 중 **18항목 기존 실측(2026-08-28)과 일치**. 불일치 4건은 전부 스크립트가 아니라 기존 수작업의 한계였다:
| 항목 | 기존 | 스크립트 | 원인 |
|---|---|---|---|
| A5 | 2 | 3 | 기존 실측은 post-sitemap만 봄(lastmod 2024-05). page/portfolio-sitemap에는 진짜 per-page 갱신일(2026-08) 존재 |
| B4 | 2 | 1 | 시술 페이지에 세 번째 주소 표기("서울시 강남구 봉은사로 107, 뷰성형외과빌딩(논현동…") 실재 — 기존 실측 누락 |
| C6 | 1 | 3 | 시술 페이지에 article:modified_time·dateModified(2026-04-17) 실재 — 기존 실측은 메인만 확인 |
| D6 | unverified | 0 | Wikidata API 조회 자동화됨 (기존은 미실시) |
2026-08-31 haewon 결정으로 위 4건을 `discovery_viewclinic.ts`에 반영했다: 48점/C (42.1/88, 검증 31/36)
→ **49점/C (44.0/89, 검증 32/36)**. 등급·목표(C→B) 변화 없음. keyFindings의 "15개월간 갱신 신호 없음"은
"갱신 신호는 살아 있다(단 블로그는 2024-05 정지)"로 정정.
### 새 업체 30분 온보딩 플로우
1. 업체 선정(네이버 파워링크 1위 광고주 → 상호 재검색으로 도메인 확인) — 5분
2. `audit_aeo_geo.py` 실행 → 초안 생성 — 3분
3. semi 5항목 판정 확정(초안의 증거 메모 참고) + manual 중 공개 페이지 실측 가능한 D1·D2·D4 확인 — 15분
4. keyFindings 3~5개 + actions P0~P2 작성, `discoveryResults.ts`에 1줄 추가 — 5분
5. `npm run lint`(AEO-GEO-Audit 워크트리) → git push → `vercel --prod` — 2분
## 6. 하지 않을 것 (정직성 규약, 변경 없음)
- llms.txt 제작·판매
- "스키마 넣으면 인용된다" 약속, 순위·노출 보장 문구
- 단발 조회 보고
- 답변엔진 소비자 UI 자동 조회
- 네이버 블로그 증량 (AI 크롤러 차단 확인, 글로벌 AEO 기여 0)
File diff suppressed because it is too large. Load diff
+8 -5
View File
@@ -6,9 +6,11 @@ import { buildDiscoveryMailto, DISCOVERY_CONTACT_EMAIL } from './discoveryContac
interface DiscoveryCtaProps { interface DiscoveryCtaProps {
criteriaCount: number; criteriaCount: number;
/** CTA 클릭 → URL 입력 신청 모달 열기 */
onStart: () => void;
} }
export default function DiscoveryCta({ criteriaCount }: DiscoveryCtaProps) { export default function DiscoveryCta({ criteriaCount, onStart }: DiscoveryCtaProps) {
return ( return (
<section className="bg-[#0A1128] px-6 py-24"> <section className="bg-[#0A1128] px-6 py-24">
<motion.div <motion.div
@@ -25,12 +27,13 @@ export default function DiscoveryCta({ criteriaCount }: DiscoveryCtaProps) {
진단은 무료입니다. {criteriaCount}개 항목 실측 리포트를 받아보고 결정하세요. 진단은 무료입니다. {criteriaCount}개 항목 실측 리포트를 받아보고 결정하세요.
</p> </p>
<div className="flex flex-col sm:flex-row items-center gap-3.5"> <div className="flex flex-col sm:flex-row items-center gap-3.5">
<a <button
href={buildDiscoveryMailto('무료 진단 신청')} type="button"
onClick={onStart}
className="inline-flex items-center h-[52px] px-[30px] bg-white rounded-full text-base font-bold text-primary-900 hover:bg-slate-100 transition-colors" className="inline-flex items-center h-[52px] px-[30px] bg-white rounded-full text-base font-bold text-primary-900 hover:bg-slate-100 transition-colors"
> >
무료 AEO / GEO 진단 받기 URL 입력으로 시작하기
</a> </button>
<a <a
href={buildDiscoveryMailto('무료 진단 신청')} href={buildDiscoveryMailto('무료 진단 신청')}
className="text-[15px] text-slate-500 hover:text-slate-300 transition-colors" className="text-[15px] text-slate-500 hover:text-slate-300 transition-colors"
+8 -5
View File
@@ -9,7 +9,6 @@ import { ArrowRight } from 'lucide-react';
import type { OverallScore } from '../../types/discovery'; import type { OverallScore } from '../../types/discovery';
import AbmrLoop from './AbmrLoop'; import AbmrLoop from './AbmrLoop';
import AiAnswerMock from './AiAnswerMock'; import AiAnswerMock from './AiAnswerMock';
import { buildDiscoveryMailto } from './discoveryContact';
interface DiscoveryHeroProps { interface DiscoveryHeroProps {
overall: OverallScore; overall: OverallScore;
@@ -17,6 +16,8 @@ interface DiscoveryHeroProps {
clinicName: string; clinicName: string;
sampleReportPath: string; sampleReportPath: string;
criteriaCount: number; criteriaCount: number;
/** CTA 클릭 → URL 입력 신청 모달 열기 */
onStart: () => void;
} }
export default function DiscoveryHero({ export default function DiscoveryHero({
@@ -25,6 +26,7 @@ export default function DiscoveryHero({
clinicName, clinicName,
sampleReportPath, sampleReportPath,
criteriaCount, criteriaCount,
onStart,
}: DiscoveryHeroProps) { }: DiscoveryHeroProps) {
return ( return (
<section className="relative overflow-hidden bg-[radial-gradient(ellipse_at_top,#e0e7ff_0%,#faf5ff_45%,#fdf2f8_100%)]"> <section className="relative overflow-hidden bg-[radial-gradient(ellipse_at_top,#e0e7ff_0%,#faf5ff_45%,#fdf2f8_100%)]">
@@ -81,13 +83,14 @@ export default function DiscoveryHero({
transition={{ duration: 0.6, delay: 0.3 }} transition={{ duration: 0.6, delay: 0.3 }}
className="flex flex-col sm:flex-row items-center gap-4 mb-18" className="flex flex-col sm:flex-row items-center gap-4 mb-18"
> >
<a <button
href={buildDiscoveryMailto('무료 진단 신청')} type="button"
onClick={onStart}
className="inline-flex items-center justify-center gap-2 px-10 py-4 text-lg font-medium text-white rounded-full shadow-xl bg-gradient-to-r from-[#4F1DA1] to-[#021341] hover:opacity-90 transition-opacity" className="inline-flex items-center justify-center gap-2 px-10 py-4 text-lg font-medium text-white rounded-full shadow-xl bg-gradient-to-r from-[#4F1DA1] to-[#021341] hover:opacity-90 transition-opacity"
> >
무료 AEO / GEO 진단 받기 URL 입력으로 시작하기
<ArrowRight className="w-5 h-5" /> <ArrowRight className="w-5 h-5" />
</a> </button>
<Link <Link
to={sampleReportPath} to={sampleReportPath}
className="inline-flex items-center justify-center px-10 py-4 text-lg font-medium text-primary-900 bg-white/80 border border-slate-200 rounded-full hover:bg-white transition-colors" className="inline-flex items-center justify-center px-10 py-4 text-lg font-medium text-primary-900 bg-white/80 border border-slate-200 rounded-full hover:bg-white transition-colors"
@@ -0,0 +1,219 @@
/**
* "URL 입력으로 시작하기" 진단 신청 모달.
*
* - 병원 URL(필수) + 회신 연락처(필수) + 상호(선택) → Supabase discovery_leads insert
* - RLS는 anon insert만 허용 (조회는 service_role 전용)
* - 저장 실패 시 성공한 척하지 않고 mailto 폴백을 보여준다 (정직성 규약)
*/
import { useEffect, useState } from 'react';
import { AnimatePresence, motion } from 'motion/react';
import { ArrowRight } from 'lucide-react';
import { supabase } from '../../lib/supabase';
import { DISCOVERY_CONTACT_EMAIL } from './discoveryContact';
interface DiscoveryLeadModalProps {
open: boolean;
onClose: () => void;
}
type SubmitState = 'idle' | 'submitting' | 'done' | 'error';
/** 스킴이 없으면 https://를 붙이고, 호스트에 점이 있어야 유효로 본다 */
const normalizeUrl = (raw: string): string | null => {
const trimmed = raw.trim();
if (!trimmed) return null;
const withScheme = /^https?:\/\//i.test(trimmed) ? trimmed : `https://${trimmed}`;
try {
const u = new URL(withScheme);
if (!u.hostname.includes('.')) return null;
return u.toString();
} catch {
return null;
}
};
export default function DiscoveryLeadModal({ open, onClose }: DiscoveryLeadModalProps) {
const [url, setUrl] = useState('');
const [clinicName, setClinicName] = useState('');
const [contact, setContact] = useState('');
const [state, setState] = useState<SubmitState>('idle');
const [fieldError, setFieldError] = useState<string | null>(null);
useEffect(() => {
if (!open) return;
const onKey = (e: KeyboardEvent) => {
if (e.key === 'Escape') onClose();
};
window.addEventListener('keydown', onKey);
return () => window.removeEventListener('keydown', onKey);
}, [open, onClose]);
// @types/react 미설치 프로젝트 방침이라 React.FormEvent 대신 구조적 타입 사용
const handleSubmit = async (e: { preventDefault: () => void }) => {
e.preventDefault();
const normalized = normalizeUrl(url);
if (!normalized) {
setFieldError('URL 형식을 확인해 주세요. 예: viewclinic.com');
return;
}
if (!contact.trim()) {
setFieldError('진단 결과를 받을 이메일 또는 전화번호를 입력해 주세요.');
return;
}
setFieldError(null);
setState('submitting');
const { error } = await supabase.from('discovery_leads').insert({
url: normalized,
clinic_name: clinicName.trim() || null,
contact: contact.trim(),
source: 'discovery_landing',
});
setState(error ? 'error' : 'done');
};
const fallbackMailto = () => {
const body = `병원/업체 URL: ${url}\n상호: ${clinicName || '-'}\n회신 연락처: ${contact}`;
return `mailto:${DISCOVERY_CONTACT_EMAIL}?subject=${encodeURIComponent(
'[INFINITH AI Discovery] 무료 진단 신청',
)}&body=${encodeURIComponent(body)}`;
};
return (
<AnimatePresence>
{open && (
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
className="fixed inset-0 z-50 flex items-center justify-center px-6 bg-[#0A1128]/60 backdrop-blur-sm"
onClick={onClose}
data-no-print
>
<motion.div
initial={{ opacity: 0, y: 24, scale: 0.98 }}
animate={{ opacity: 1, y: 0, scale: 1 }}
exit={{ opacity: 0, y: 24, scale: 0.98 }}
transition={{ duration: 0.25 }}
className="relative w-full max-w-md bg-white rounded-2xl shadow-2xl p-8"
onClick={(e) => e.stopPropagation()}
role="dialog"
aria-modal="true"
aria-label="무료 AEO/GEO 진단 신청"
>
{/* 닫기 (커스텀 filled SVG — 라인 아이콘 금지 규칙) */}
<button
type="button"
onClick={onClose}
aria-label="닫기"
className="absolute top-4 right-4 w-8 h-8 flex items-center justify-center rounded-full bg-slate-100 hover:bg-slate-200 transition-colors"
>
<svg width="12" height="12" viewBox="0 0 12 12" aria-hidden="true">
<path
d="M2.3 0.9 6 4.6 9.7 0.9a1 1 0 0 1 1.4 1.4L7.4 6l3.7 3.7a1 1 0 0 1-1.4 1.4L6 7.4 2.3 11.1a1 1 0 0 1-1.4-1.4L4.6 6 0.9 2.3A1 1 0 0 1 2.3 0.9Z"
fill="#0A1128"
/>
</svg>
</button>
{state === 'done' ? (
<div className="flex flex-col items-center text-center py-4">
<div className="w-14 h-14 rounded-full bg-[#F3F0FF] flex items-center justify-center mb-5">
<svg width="24" height="24" viewBox="0 0 24 24" aria-hidden="true">
<path
d="M9.6 16.2 4.8 11.4a1.2 1.2 0 0 1 1.7-1.7l3.1 3.1 7.9-7.9a1.2 1.2 0 0 1 1.7 1.7l-8.8 8.8a1.2 1.2 0 0 1-1.7 0Z"
fill="#6C5CE7"
/>
</svg>
</div>
<h3 className="text-lg font-bold text-primary-900 mb-2">신청이 접수되었습니다</h3>
<p className="text-sm leading-relaxed text-slate-600 mb-6">
입력하신 URL을 실측 진단한 뒤, 남겨주신 연락처로 리포트를 안내드립니다.
<br />
문의: {DISCOVERY_CONTACT_EMAIL}
</p>
<button
type="button"
onClick={onClose}
className="inline-flex items-center h-11 px-8 bg-gradient-to-r from-[#4F1DA1] to-[#021341] rounded-full text-sm font-bold text-white hover:opacity-90 transition-opacity"
>
확인
</button>
</div>
) : (
<form onSubmit={handleSubmit}>
<h3 className="text-xl font-bold text-primary-900 mb-1.5">URL 입력으로 시작하기</h3>
<p className="text-sm leading-relaxed text-slate-600 mb-6">
병원 홈페이지 URL만 입력하면 AI 검색 인용 가능성을 실측 진단합니다. 진단은
무료입니다.
</p>
<label className="block text-xs font-semibold text-slate-500 mb-1.5">
병원/업체 홈페이지 URL <span className="text-[#7C3A4B]">*</span>
</label>
<input
type="text"
value={url}
onChange={(e) => setUrl(e.target.value)}
placeholder="viewclinic.com"
autoFocus
className="w-full h-12 px-4 mb-4 rounded-xl border border-slate-200 bg-[linear-gradient(to_right,#fff3eb,#e4cfff,#f5f9ff)] text-[15px] text-primary-900 placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-[#6C5CE7]/40"
/>
<label className="block text-xs font-semibold text-slate-500 mb-1.5">
상호 <span className="text-slate-400 font-normal">(선택)</span>
</label>
<input
type="text"
value={clinicName}
onChange={(e) => setClinicName(e.target.value)}
placeholder="뷰성형외과"
className="w-full h-12 px-4 mb-4 rounded-xl border border-slate-200 bg-white text-[15px] text-primary-900 placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-[#6C5CE7]/40"
/>
<label className="block text-xs font-semibold text-slate-500 mb-1.5">
진단 결과 받을 이메일/전화 <span className="text-[#7C3A4B]">*</span>
</label>
<input
type="text"
value={contact}
onChange={(e) => setContact(e.target.value)}
placeholder="marketing@clinic.com"
className="w-full h-12 px-4 mb-4 rounded-xl border border-slate-200 bg-white text-[15px] text-primary-900 placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-[#6C5CE7]/40"
/>
{fieldError && (
<p className="text-[13px] text-[#7C3A4B] bg-[#FFF0F0] border border-[#F5D5DC] rounded-lg px-3.5 py-2.5 mb-4">
{fieldError}
</p>
)}
{state === 'error' && (
<p className="text-[13px] leading-relaxed text-[#7C5C3A] bg-[#FFF6ED] border border-[#F5E0C5] rounded-lg px-3.5 py-2.5 mb-4">
저장에 실패했습니다. 아래 이메일로 직접 신청해 주세요.
<br />
<a href={fallbackMailto()} className="font-semibold underline">
{DISCOVERY_CONTACT_EMAIL}로 신청 메일 보내기
</a>
</p>
)}
<button
type="submit"
disabled={state === 'submitting'}
className="w-full inline-flex items-center justify-center gap-2 h-[52px] bg-gradient-to-r from-[#4F1DA1] to-[#021341] rounded-full text-base font-bold text-white hover:opacity-90 transition-opacity disabled:opacity-60"
>
{state === 'submitting' ? '접수 중…' : '무료 진단 신청'}
{state !== 'submitting' && <ArrowRight className="w-5 h-5" />}
</button>
<p className="text-xs text-slate-400 text-center mt-4">
입력 정보는 진단 회신 용도로만 사용합니다.
</p>
</form>
)}
</motion.div>
</motion.div>
)}
</AnimatePresence>
);
}
+14 -11
View File
@@ -1,6 +1,8 @@
/** /**
* 뷰성형외과 (viewclinic.com) AEO/GEO 진단 결과 * 뷰성형외과 (viewclinic.com) AEO/GEO 진단 결과
* 실측일: 2026-08-28 · 도구: crawler_audit.py + curl + HTML 파서 * 실측일: 2026-08-28 · 도구: crawler_audit.py + curl + HTML 파서
* 2026-08-31 audit_aeo_geo.py 재채점 반영: A5(2→3)·B4(2→1)·C6(1→3)·D6(unverified→0)
* — 기존 수작업 실측의 샘플링 누락 보정 (post-sitemap만 확인, 시술 페이지 meta 미확인 등)
* 미검증 항목은 'unverified'. 오너 접근(GA4·GSC·Bing) 또는 수동 확인이 필요하다. * 미검증 항목은 'unverified'. 오너 접근(GA4·GSC·Bing) 또는 수동 확인이 필요하다.
*/ */
import type { DiscoveryResult } from '../types/discovery'; import type { DiscoveryResult } from '../types/discovery';
@@ -10,13 +12,14 @@ export const DISCOVERY_VIEWCLINIC: DiscoveryResult = {
clinicName: '뷰성형외과', clinicName: '뷰성형외과',
url: 'https://www.viewclinic.com', url: 'https://www.viewclinic.com',
industry: '성형외과 (강남 신논현)', industry: '성형외과 (강남 신논현)',
auditedAt: '2026-08-28', auditedAt: '2026-08-31',
rubricVersion: '1.0', rubricVersion: '1.0',
conditions: [ conditions: [
'실측 대상: 메인 페이지 + /breast/main/ (가슴성형) 2개 URL, JS 미실행 HTML 기준', '실측 대상: 메인 페이지 + /breast/main/ (가슴성형) 2개 URL, JS 미실행 HTML 기준',
'크롤러 접근성: robots.txt 파싱 + 12개 AI 봇 UA 실제 GET 요청', '크롤러 접근성: robots.txt 파싱 + 12개 AI 봇 UA 실제 GET 요청',
'강남언니·Google 비즈니스 프로필은 공개 페이지를 실측(2026-08-28). GBP 소유권 클레임 여부·인사이트와 측정 인프라(GA4·GSC·Bing·서버로그)는 오너 접근 필요 → 미검증 처리, 분모 제외', '강남언니·Google 비즈니스 프로필은 공개 페이지를 실측(2026-08-28). GBP 소유권 클레임 여부·인사이트와 측정 인프라(GA4·GSC·Bing·서버로그)는 오너 접근 필요 → 미검증 처리, 분모 제외',
'답변엔진 언급률은 측정하지 않았다 (단발 조회는 무효, 반복 측정은 별도 기준선 단계에서 수행)', '답변엔진 언급률은 측정하지 않았다 (단발 조회는 무효, 반복 측정은 별도 기준선 단계에서 수행)',
'2026-08-31 자동 채점기(audit_aeo_geo.py) 재채점으로 A5·B4·C6·D6 4항목 보정 (전체 sitemap·시술 페이지 meta·Wikidata까지 실측 범위 확장)',
], ],
results: [ results: [
// A. 접근성 // A. 접근성
@@ -24,7 +27,7 @@ export const DISCOVERY_VIEWCLINIC: DiscoveryResult = {
{ criterionId: 'A2', level: 3, evidence: 'Server: nginx 직접 응답, Cloudflare 헤더 없음, AI UA 챌린지 없음' }, { criterionId: 'A2', level: 3, evidence: 'Server: nginx 직접 응답, Cloudflare 헤더 없음, AI UA 챌린지 없음' },
{ criterionId: 'A3', level: 3, evidence: 'WordPress 서버 렌더링. JS 미실행 HTML에서 본문 텍스트 10,757자 추출' }, { criterionId: 'A3', level: 3, evidence: 'WordPress 서버 렌더링. JS 미실행 HTML에서 본문 텍스트 10,757자 추출' },
{ criterionId: 'A4', level: 3, evidence: 'http://viewclinic.com → 301 → https://www.viewclinic.com/ 정본 수렴' }, { criterionId: 'A4', level: 3, evidence: 'http://viewclinic.com → 301 → https://www.viewclinic.com/ 정본 수렴' },
{ criterionId: 'A5', level: 2, evidence: 'robots.txt에 sitemap 선언, 200 응답, AIOSEO 3.7.1 동적 생성. 페이지 249개 + kboard 11개. 단 post lastmod 최신이 2024-05-31' }, { criterionId: 'A5', level: 3, evidence: 'robots.txt에 sitemap 선언, 200 응답, AIOSEO 3.7.1 동적 생성, URL 3,636개. page/portfolio-sitemap lastmod 최신 2026-08-31 (단 post-sitemap은 2024-05-31에 멈춤)' },
{ criterionId: 'A6', level: 'unverified', evidence: 'Bing Webmaster Tools 등록 여부는 오너 계정 접근 필요' }, { criterionId: 'A6', level: 'unverified', evidence: 'Bing Webmaster Tools 등록 여부는 오너 계정 접근 필요' },
{ criterionId: 'A7', level: 2, evidence: 'TTFB 0.135s (양호) / 초기 HTML 838KB (비대). 시술 페이지 862KB' }, { criterionId: 'A7', level: 2, evidence: 'TTFB 0.135s (양호) / 초기 HTML 838KB (비대). 시술 페이지 862KB' },
@@ -32,7 +35,7 @@ export const DISCOVERY_VIEWCLINIC: DiscoveryResult = {
{ criterionId: 'B1', level: 1, evidence: 'JSON-LD 2블록 중 ItemList 블록이 문법 오류(쉼표 누락, line 11)로 파싱 실패 → 시술 목록 구조화 데이터 전체 무효', source: 'Expecting \',\' delimiter: line 11 column 7' }, { criterionId: 'B1', level: 1, evidence: 'JSON-LD 2블록 중 ItemList 블록이 문법 오류(쉼표 누락, line 11)로 파싱 실패 → 시술 목록 구조화 데이터 전체 무효', source: 'Expecting \',\' delimiter: line 11 column 7' },
{ criterionId: 'B2', level: 1, evidence: 'Organization + WebSite + WebPage만 존재. MedicalClinic/LocalBusiness 없음 → 주소·전화·진료시간이 구조화되어 있지 않음' }, { criterionId: 'B2', level: 1, evidence: 'Organization + WebSite + WebPage만 존재. MedicalClinic/LocalBusiness 없음 → 주소·전화·진료시간이 구조화되어 있지 않음' },
{ criterionId: 'B3', level: 0, evidence: 'Physician 스키마 없음. 의료진 정보는 HTML 텍스트·이미지로만 존재' }, { criterionId: 'B3', level: 0, evidence: 'Physician 스키마 없음. 의료진 정보는 HTML 텍스트·이미지로만 존재' },
{ criterionId: 'B4', level: 2, evidence: '주소 2가지 표기 혼재: "서울 강남구 봉은사로 107 뷰성형외과 빌딩" / "서울특별시 강남구 봉은사로 107, 뷰성형외과빌딩". 전화 02-539-1177 + 휴대폰 2개 혼재' }, { criterionId: 'B4', level: 1, evidence: '주소 3가지 표기 혼재: "서울 강남구 봉은사로 107 뷰성형외과 빌딩" / "서울특별시 강남구 봉은사로 107, 뷰성형외과빌딩" / 시술 페이지 "서울시 강남구 봉은사로 107, 뷰성형외과빌딩(논현동…". 전화 02-539-1177·02-539-1132 + 휴대폰 혼재' },
{ criterionId: 'B5', level: 0, evidence: 'Organization.sameAs: [] (빈 배열). 푸터에 YouTube·Instagram·Facebook·네이버블로그 링크가 있으나 스키마에 미연결' }, { criterionId: 'B5', level: 0, evidence: 'Organization.sameAs: [] (빈 배열). 푸터에 YouTube·Instagram·Facebook·네이버블로그 링크가 있으나 스키마에 미연결' },
{ criterionId: 'B6', level: 2, evidence: 'rel=canonical self-referencing 존재' }, { criterionId: 'B6', level: 2, evidence: 'rel=canonical self-referencing 존재' },
{ criterionId: 'B7', level: 0, evidence: '영문 사이트가 별도 도메인(viewplasticsurgery.com, en-US)으로 존재하나 두 사이트 어디에도 hreflang 없음. 다국어 페이지가 있는데 미연결' }, { criterionId: 'B7', level: 0, evidence: '영문 사이트가 별도 도메인(viewplasticsurgery.com, en-US)으로 존재하나 두 사이트 어디에도 hreflang 없음. 다국어 페이지가 있는데 미연결' },
@@ -43,7 +46,7 @@ export const DISCOVERY_VIEWCLINIC: DiscoveryResult = {
{ criterionId: 'C3', level: 0, evidence: 'H1 5개: "VIEW SELFIE / VIEW EVENT / VIEW SHORTS / VIEW FILM / VIEW SPECIALITY". 전부 영문 라벨. H2는 같은 문구가 2회씩 중복(모바일/PC 분기). 시술 페이지 H1 없음' }, { criterionId: 'C3', level: 0, evidence: 'H1 5개: "VIEW SELFIE / VIEW EVENT / VIEW SHORTS / VIEW FILM / VIEW SPECIALITY". 전부 영문 라벨. H2는 같은 문구가 2회씩 중복(모바일/PC 분기). 시술 페이지 H1 없음' },
{ criterionId: 'C4', level: 1, evidence: '메타 설명에 "가슴보형물사용량1위" 등 주장형 문구. 가슴성형 페이지에 가격/비용 단어 8회이나 표기된 가격대·수술시간·회복기간 표 없음' }, { criterionId: 'C4', level: 1, evidence: '메타 설명에 "가슴보형물사용량1위" 등 주장형 문구. 가슴성형 페이지에 가격/비용 단어 8회이나 표기된 가격대·수술시간·회복기간 표 없음' },
{ criterionId: 'C5', level: 0, evidence: 'HTML <table> 없음. 비교 정보는 이미지로 추정' }, { criterionId: 'C5', level: 0, evidence: 'HTML <table> 없음. 비교 정보는 이미지로 추정' },
{ criterionId: 'C6', level: 1, evidence: 'article:modified_time·dateModified 없음. post-sitemap 최신 lastmod 2024-05-31 (15개월 전). 단 H3 콘텐츠(유튜브 제목)는 최근 갱신 흔적' }, { criterionId: 'C6', level: 3, evidence: '시술 페이지에 article:modified_time·dateModified 2026-04-17 존재, page/portfolio-sitemap lastmod 최신 2026-08-31. 단 블로그 포스트(post-sitemap)는 2024-05-31에 멈춤' },
{ criterionId: 'C7', level: 2, evidence: '원장·전문의·의료진 언급 17회, 모티바 글로벌 KOL·보건복지부장관표창·갈더마 방문 등 권위 신호 존재. 단 구조화 안 됨' }, { criterionId: 'C7', level: 2, evidence: '원장·전문의·의료진 언급 17회, 모티바 글로벌 KOL·보건복지부장관표창·갈더마 방문 등 권위 신호 존재. 단 구조화 안 됨' },
{ criterionId: 'C8', level: 1, evidence: 'H2 "철저한 정밀 검진 / ONE_STOP 시스템 / 1:1 전담 마취시스템". 단독으로 떼면 어느 병원의 무엇인지 알 수 없음' }, { criterionId: 'C8', level: 1, evidence: 'H2 "철저한 정밀 검진 / ONE_STOP 시스템 / 1:1 전담 마취시스템". 단독으로 떼면 어느 병원의 무엇인지 알 수 없음' },
@@ -53,7 +56,7 @@ export const DISCOVERY_VIEWCLINIC: DiscoveryResult = {
{ criterionId: 'D3', level: 2, evidence: '자체 YouTube 채널 활발(VIEW SHORTS/FILM, 최신 영상 제목 다수). 티스토리·언론 언급은 미집계' }, { criterionId: 'D3', level: 2, evidence: '자체 YouTube 채널 활발(VIEW SHORTS/FILM, 최신 영상 제목 다수). 티스토리·언론 언급은 미집계' },
{ criterionId: 'D4', level: 1, evidence: '주소 표기 3종 혼재: 홈페이지 "서울 강남구 봉은사로 107 뷰성형외과 빌딩" / 강남언니 "서울 강남구 봉은사로 107 (논현동)" / GBP "서울특별시 강남구 봉은사로 107". GBP 전화 누락, 웹사이트 도메인 불일치' }, { criterionId: 'D4', level: 1, evidence: '주소 표기 3종 혼재: 홈페이지 "서울 강남구 봉은사로 107 뷰성형외과 빌딩" / 강남언니 "서울 강남구 봉은사로 107 (논현동)" / GBP "서울특별시 강남구 봉은사로 107". GBP 전화 누락, 웹사이트 도메인 불일치' },
{ criterionId: 'D5', level: 2, evidence: '네이버 플레이스 존재(리뷰 776건, 2026-04 INFINITH 리포트 기준). 홈페이지 링크 연결 여부 미확인 → 보수적으로 2' }, { criterionId: 'D5', level: 2, evidence: '네이버 플레이스 존재(리뷰 776건, 2026-04 INFINITH 리포트 기준). 홈페이지 링크 연결 여부 미확인 → 보수적으로 2' },
{ criterionId: 'D6', level: 'unverified', evidence: 'Wikidata 조회 미실시' }, { criterionId: 'D6', level: 0, evidence: 'Wikidata에서 "뷰성형외과" 검색 결과 없음 (wbsearchentities ko, 2026-08-31)' },
// E. 측정 // E. 측정
{ criterionId: 'E1', level: 'unverified', evidence: '서버 로그 접근 필요 (nginx 직접 호스팅, Cloudflare AI Crawl Control 미사용)' }, { criterionId: 'E1', level: 'unverified', evidence: '서버 로그 접근 필요 (nginx 직접 호스팅, Cloudflare AI Crawl Control 미사용)' },
@@ -75,7 +78,7 @@ export const DISCOVERY_VIEWCLINIC: DiscoveryResult = {
}, },
{ {
title: '읽어도 "누구인지" 확정할 수 없다', title: '읽어도 "누구인지" 확정할 수 없다',
detail: 'MedicalClinic 스키마가 없고 Organization.sameAs가 비어 있으며, 시술 목록 JSON-LD는 쉼표 하나가 빠져 통째로 무효다. 주소 표기도 사이트 안에서 2가지. AI는 "뷰성형외과"라는 이름과 흩어진 사실을 하나의 엔티티로 묶을 근거를 얻지 못한다.', detail: 'MedicalClinic 스키마가 없고 Organization.sameAs가 비어 있으며, 시술 목록 JSON-LD는 쉼표 하나가 빠져 통째로 무효다. 주소 표기도 사이트 안에서 3가지(메인 2종 + 시술 페이지 1종). AI는 "뷰성형외과"라는 이름과 흩어진 사실을 하나의 엔티티로 묶을 근거를 얻지 못한다.',
severity: 'critical', severity: 'critical',
}, },
{ {
@@ -84,9 +87,9 @@ export const DISCOVERY_VIEWCLINIC: DiscoveryResult = {
severity: 'critical', severity: 'critical',
}, },
{ {
title: '15개월간 갱신 신호 없음', title: '갱신 신호는 살아 있다. 단 블로그 포스트는 2024-05에 멈췄다',
detail: 'post-sitemap의 최신 lastmod가 2024-05-31이고 dateModified 마크업이 없다. 유튜브는 활발하지만 그 신선도가 사이트로 전달되지 않는다. 오래된 사이트는 brand 질의에서 "영업 중인가?" 오정보 위험을 만든다.', detail: '재채점에서 시술 페이지의 article:modified_time(2026-04-17)과 page/portfolio-sitemap의 최신 lastmod(2026-08-31)를 확인했다. 사이트 자체는 계속 갱신되고 있어 "영업 중인가?" 오정보 위험은 낮다. 다만 블로그 포스트(post-sitemap)는 2024-05-31 이후 멈춰 있어, 신규 텍스트 콘텐츠 공급이 유튜브에 치우쳐 있다.',
severity: 'warning', severity: 'good',
}, },
{ {
title: '강남언니는 강하다. GBP는 전화번호가 없고 웹사이트가 다르다', title: '강남언니는 강하다. GBP는 전화번호가 없고 웹사이트가 다르다',
@@ -139,8 +142,8 @@ export const DISCOVERY_VIEWCLINIC: DiscoveryResult = {
}, },
{ {
priority: 'P2', priority: 'P2',
title: '신선도 신호 + 오픈웹 시딩', title: '블로그 재가동 + 오픈웹 시딩',
detail: 'dateModified 마크업 활성화, 유튜브 영상을 사이트 글로 전사(트랜스크립트 요약)해 매월 갱신. 티스토리·언론 기고로 naver.com 외 언급 도메인 확보. 네이버 블로그는 AI에 안 보이므로 글로벌 AEO 용도로는 쓰지 않는다.', detail: '2024-05에 멈춘 블로그(post-sitemap)를 재가동해 유튜브 영상을 사이트 글로 전사(트랜스크립트 요약)하고 매월 갱신. 티스토리·언론 기고로 naver.com 외 언급 도메인 확보. 네이버 블로그는 AI에 안 보이므로 글로벌 AEO 용도로는 쓰지 않는다.',
criterionIds: ['C6', 'D3'], criterionIds: ['C6', 'D3'],
effort: '지속', effort: '지속',
}, },
+6 -2
View File
@@ -6,7 +6,7 @@
* scoreDiscovery(AEO_GEO_RUBRIC, DISCOVERY_VIEWCLINIC) 계산값에서 파생한다. * scoreDiscovery(AEO_GEO_RUBRIC, DISCOVERY_VIEWCLINIC) 계산값에서 파생한다.
* 재진단으로 데이터가 바뀌면 랜딩 수치도 함께 바뀐다 (JSX 하드코딩 금지). * 재진단으로 데이터가 바뀌면 랜딩 수치도 함께 바뀐다 (JSX 하드코딩 금지).
*/ */
import { useMemo } from 'react'; import { useMemo, useState } from 'react';
import { AEO_GEO_RUBRIC } from '../data/aeoGeoRubric'; import { AEO_GEO_RUBRIC } from '../data/aeoGeoRubric';
import { DISCOVERY_VIEWCLINIC } from '../data/discovery_viewclinic'; import { DISCOVERY_VIEWCLINIC } from '../data/discovery_viewclinic';
import { scoreDiscovery, nextGradeTarget } from '../lib/discoveryScore'; import { scoreDiscovery, nextGradeTarget } from '../lib/discoveryScore';
@@ -17,8 +17,10 @@ import SampleReport from '../components/discovery/SampleReport';
import Roadmap from '../components/discovery/Roadmap'; import Roadmap from '../components/discovery/Roadmap';
import HonestyStrip from '../components/discovery/HonestyStrip'; import HonestyStrip from '../components/discovery/HonestyStrip';
import DiscoveryCta from '../components/discovery/DiscoveryCta'; import DiscoveryCta from '../components/discovery/DiscoveryCta';
import DiscoveryLeadModal from '../components/discovery/DiscoveryLeadModal';
export default function DiscoveryLandingPage() { export default function DiscoveryLandingPage() {
const [leadOpen, setLeadOpen] = useState(false);
const result = DISCOVERY_VIEWCLINIC; const result = DISCOVERY_VIEWCLINIC;
const overall = useMemo(() => scoreDiscovery(AEO_GEO_RUBRIC, result), [result]); const overall = useMemo(() => scoreDiscovery(AEO_GEO_RUBRIC, result), [result]);
const target = nextGradeTarget(overall.score); const target = nextGradeTarget(overall.score);
@@ -36,6 +38,7 @@ export default function DiscoveryLandingPage() {
clinicName={result.clinicName} clinicName={result.clinicName}
sampleReportPath={`/discovery/${result.id}`} sampleReportPath={`/discovery/${result.id}`}
criteriaCount={criteriaCount} criteriaCount={criteriaCount}
onStart={() => setLeadOpen(true)}
/> />
<WhyNow /> <WhyNow />
<HowItWorks criteriaCount={criteriaCount} categoryCount={categoryCount} /> <HowItWorks criteriaCount={criteriaCount} categoryCount={categoryCount} />
@@ -47,7 +50,8 @@ export default function DiscoveryLandingPage() {
unverifiedCount={unverifiedCount} unverifiedCount={unverifiedCount}
/> />
<HonestyStrip /> <HonestyStrip />
<DiscoveryCta criteriaCount={criteriaCount} /> <DiscoveryCta criteriaCount={criteriaCount} onStart={() => setLeadOpen(true)} />
<DiscoveryLeadModal open={leadOpen} onClose={() => setLeadOpen(false)} />
</div> </div>
); );
} }
@@ -0,0 +1,24 @@
-- AI Discovery 랜딩 "URL 입력으로 시작하기" 신청 저장 테이블
-- 익명(anon) 방문자가 insert만 할 수 있고, 읽기·수정·삭제는 service_role 전용.
create table if not exists public.discovery_leads (
id uuid primary key default gen_random_uuid(),
url text not null,
clinic_name text,
contact text not null,
source text not null default 'discovery_landing',
status text not null default 'new', -- new | contacted | audited | closed
created_at timestamptz not null default now()
);
alter table public.discovery_leads enable row level security;
-- 방문자 신청: insert만 허용 (select 정책이 없으므로 anon은 조회 불가)
create policy "anon can insert discovery leads"
on public.discovery_leads
for insert
to anon
with check (true);
comment on table public.discovery_leads is
'AI Discovery 랜딩 진단 신청. /discovery CTA(URL 입력으로 시작하기)에서 저장.';