---
updatedAt: 2025-06-17T21:42:43.000Z
agentTools:
  projectIndex: https://support.kissmetrics.io/llms.txt
---

# How do I calculate average number of times an event happens before a conversion event?

## How do I calculate average number of times an event happens before a conversion event?

You can calculate the average number of times (not duration) someone performs an event before performing a second event by setting up a metric called, “Average Number of Times an Event Happens Before Conversion Event.”

> 🚧 For example, you can see:
>
> * How many times on average someone visits your website before they subscribe to your newsletter
> * The number of PDFs on average someone downloads before they sign up for a free trial
> * How many times on average someone uses feature A before they purchase

## How it’s calculated

First, this metric finds the total average number of times an event happens before a conversion event happened. Then, we’ll divide by the number of times the conversion event happened in the date range.

![779](https://files.readme.io/77a955e-average-calc.png "average-calc.png")

For someone to be counted, they need to have done the conversion event in the date range.

## Example

On average, how many times does someone view the product details page before purchasing in the month of January?

In this instance:

1 = Viewed product details\
2 = Purchased

<Table align={["left","left","left","left","left","left","left","left","left"]}>
  <thead>
    <tr>
      <th>

      </th>

      <th>
        12/29
      </th>

      <th>
        12/30
      </th>

      <th>
        12/31
      </th>

      <th>
        1/1
      </th>

      <th>
        1/2
      </th>

      <th>
        1/3
      </th>

      <th>
        1/4
      </th>

      <th>
        1/5
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        Andy
      </td>

      <td>
        1
      </td>

      <td>
        1
      </td>

      <td>
        2
      </td>

      <td>
        1
      </td>

      <td>
        2
      </td>

      <td>
        1
      </td>

      <td>
        1
      </td>

      <td>
        2
      </td>
    </tr>

    <tr>
      <td>
        Keara
      </td>

      <td>
        2
      </td>

      <td>
        1
      </td>

      <td>
        1
      </td>

      <td>
        1
      </td>

      <td>
        1
      </td>

      <td>
        2
      </td>

      <td>
        1
      </td>

      <td>
        2
      </td>
    </tr>

    <tr>
      <td>
        Ryan
      </td>

      <td>

      </td>

      <td>

      </td>

      <td>
        1
      </td>

      <td>
        1
      </td>

      <td>
        1
      </td>

      <td>
        2
      </td>

      <td>

      </td>

      <td>

      </td>
    </tr>
  </tbody>
</Table>

Total average: 2.2 times

Let’s dive deeper to see how we got that average.

Andy’s average: 3/2 = 1.5

If a conversion event happens outside the date range, we’ll stop counting any events before that conversion event. Because Andy purchased on 12/31, we stop counting any times he viewed product details before that.

And because he purchased 2 times in January, the denominator is 2.

Keara’s average: 5/2 = 2.5

Keara viewed product details 5 times and purchased 2 times in January.

Ryan’s average: 3/1 = 3

Ryan viewed product details 3 times and purchased 1 time in January.

## How to set up Average Number of Times an Event Happens Before Conversion Event

* **Step 1:** [Log into Kissmetrics](http://app.kissmetrics.io/) and select “Add new metric”

![1380](https://files.readme.io/75a8895-metrics_demo1.png "metrics_demo1.png")

* **Step 2:** Select “Average Number of Times an Event Happens Before Conversion Event” and “Continue with this metric”

* **Step 3:** Name your metric. (Suggestion: Average Number of Times \*\***\_\_** Before \*\*\_\_\*\*\*\*)

* **Step 4:** Select your first event. (example: Viewed product page)

* **Step 5:** Select your conversion event. (example: Purchased)

*Optional*: Choose a property and property value to filter this metric’s results (example: property=country, property value=Canada)

* **Step 6:** Click “Save metric” and view it in your [dashboard](https://app.kissmetrics.io/metrics).

## What other metrics can I track?

Here’s a full list of [Metrics](https://support.kissmetrics.io/docs/metrics-1) you can place in your dashboard.