전환 이벤트

Conversion event

사업 목표에 맞는 행동을 전환으로 지정해 비율을 계산합니다.

···
html
<div class="cv"><div class="label">100 VISITORS <span>GOAL <b id="goal">SIGN-UP</b></span></div><div class="track"><div class="fill" id="fill"></div><div class="mark" id="mark"></div></div><div class="number"><b id="rate">24%</b><span id="count">24 CONVERSIONS</span></div><div class="switch"><button data-goal="SIGN-UP" class="active">SIGN-UP</button><button data-goal="PURCHASE">PURCHASE</button></div></div>
css
.cv{width:min(84%,530px);font:850 clamp(10px,max(2vmin,1vw),15px)/1.2 sans-serif}.label,.number,.switch{display:flex;justify-content:space-between;align-items:center;gap:8px}.label{color:var(--muted);letter-spacing:.07em}.label b{color:var(--fg)}.track{height:clamp(24px,7vmin,55px);background:var(--surface);border:1px solid var(--line);position:relative;margin:clamp(12px,3vmin,25px) 0}.fill{height:100%;width:24%;background:var(--accent);transition:width .55s}.mark{position:absolute;left:24%;top:-5px;bottom:-5px;width:2px;background:var(--fg);transition:left .55s}.number b{font-size:clamp(36px,10vmin,76px);color:var(--accent);letter-spacing:-.07em}.number span{font-size:clamp(10px,max(2vmin,1vw),15px)}.switch{margin-top:clamp(9px,2vmin,18px)}button{flex:1;padding:clamp(6px,1.7vmin,12px);border:1px solid var(--line);background:var(--surface);color:var(--fg);font:inherit;cursor:pointer}.active{background:var(--fg);color:var(--bg)}
js
const buttons=[...document.querySelectorAll('button')];function show(x){const count=x==='SIGN-UP'?24:7;document.querySelector('#goal').textContent=x;document.querySelector('#rate').textContent=count+'%';document.querySelector('#count').textContent=count+' CONVERSIONS';document.querySelector('#fill').style.width=count+'%';document.querySelector('#mark').style.left=count+'%';buttons.forEach(b=>b.classList.toggle('active',b.dataset.goal===x))}buttons.forEach(b=>b.onclick=()=>{clearInterval(timer);show(b.dataset.goal)});let x='SIGN-UP';const timer=setInterval(()=>{x=x==='SIGN-UP'?'PURCHASE':'SIGN-UP';show(x)},1600);

전환 이벤트는 여러 사용자 행동 중 사업 목표를 대표하도록 지정한 행동입니다. 가입과 구매는 둘 다 이벤트지만 어느 것을 전환으로 보느냐에 따라 보고서가 달라집니다.

데모에서 목표를 가입에서 구매로 바꾸면 같은 100명 중 전환 수와 비율이 다시 계산됩니다. 단계마다 별도 목표를 두면 유입 품질과 최종 성과를 구분할 수 있습니다.

전환율의 분모가 방문, 사용자, 세션 중 무엇인지 명시하세요. 이벤트를 중복 발송하면 분자가 부풀 수 있습니다.

언제 쓰나

캠페인 목표를 정하거나 단계별 전환율을 비교할 때 씁니다.

페이지로 열기 ↗