Conversion event

전환 이벤트

Mark a goal action as a conversion and measure its rate.

···
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);

A conversion event is an action chosen to represent a business goal. Sign-up and purchase can both be events, but selecting one changes the report.

Switch the goal in the demo to recalculate conversions and rates among the same 100 visitors. Separate stage goals help distinguish traffic quality from final outcomes.

State whether the denominator is visitors, users, or sessions. Duplicate event delivery can inflate the numerator.

When to use

Use it to define campaign goals or compare conversion rates across stages.

Open as page ↗