{
  "id": 14972685,
  "title": "How to Measure Your Website's Conversion Rate Properly (Views, Starts, Submits) with ~30 Lines of JavaScript",
  "url": "https://urgent.news/2026/10/16/how-to-measure-your-websites-conversion-rate-properly-views-starts",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-16T14:35:32.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/easyfunnel/how-to-measure-your-websites-conversion-rate-properly-views-starts-submits-with-30-lines-of-3ioi"
  },
  "original_language": "en",
  "account": "Many conversion rate metrics on dashboards are inaccurate because they use the wrong denominator. The denominator should be the number of unique visitors to the page containing the goal, not all sessions or pageviews. The conversion rate formula is conversions ÷ visitors × 100. The most important part is defining exactly what counts as a conversion, such as a submitted form, completed checkout, or booked call. Visitors are usually counted as unique visitors to the specific page hosting the goal, not the whole site. To troubleshoot conversion problems, split the conversion funnel into three distinct events: form_view when the form enters the viewport, form_start when the user first interacts with any field, and form_submit when the form is successfully submitted and validated. This breakdown reveals whether the problem is that people never see the form, start it but quit, or fail to complete it. Use JavaScript to track these events on the form element. Compute three separate rates: visibility (form_view ÷ page visitors), start rate (form_start ÷ form_view), and completion rate (form_submit ÷ form_start). Compare these rates to see where the drop-off occurs. Validate the calculated rates against actual data and estimate the potential improvement from a redesign effort. Be wary of bot traffic or internal team activity inflating visitor numbers. For single-page applications, trigger visitor events on route changes. Compare data over similar time periods, such as weekdays versus weekdays. Remember that small sites may require weeks of data before noticing meaningful changes. Only modify one aspect at a time to accurately attribute changes to the conversion rate. By following this structured approach, you can accurately measure and improve your website's conversion rate.",
  "summary": "Most \"conversion rate\" numbers on dashboards are wrong in one boring way: the denominator. People divide signups by all sessions, by pageviews , or by \"visitors\" from one tool and conversions from another. Then they wonder why the rate jumps around. This post covers how to define the funnel, instrument it with plain JavaScript, and compute a rate you can trust. 1. Pick one goal and one…",
  "key_points": [
    "Conversion rate formula: conversions ÷ visitors × 100",
    "Define conversion actions: form submission, checkout completion, call booking",
    "Track three events: formview, formstart, formsubmit using JavaScript"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}