Conversion Analysis

You can use Keen to track entities (for example: users) that performed a certain activity in a given timeframe and performed a different activity in a subsequent timeframe.

For example, you can track what percentage of new people who visited your website (or installed your app) in the last 10 days have signed up.

You can use the Funnel API to query for the conversion rate, and use the Dataviz component to visualize the data.

You can look at a conversion rate as a single number, as a time series, or even as a cohort.

Single Number Conversion Rate

You can query for the conversion rate by querying the conversion rate for a timeframe, and charting it using a metric chart type.

In order to achieve this, you simply have to:

  1. Initialize Keen’s JS SDK.
  2. Create a KeenDataviz instance with a Metric chart type.
  3. Create and run a funnel KeenAnalysis query.
  4. Parse the responses and render the chart.

See the example below with all the steps marked!

Daily Conversion Rate Chart

You can chart out the daily conversion rate by querying the conversion rate for each day, and charting it using a series chart type (area, line, bar).

In order to achieve this, you simply have to:

  1. Initialize Keen’s JS SDK.
  2. Create a KeenDataviz instance with an Area chart type.
  3. Run client.query for each day.
  4. Parse the responses and render the chart.

See the example below with all the steps marked!

Conversion Cohorts Table

You can also look at the conversion rate at multiple timeframes for a specific cohort. This is especially useful for retention events or activation events.

In order to achieve this, you have to:

  1. Initialize Keen’s JS SDK.
  2. Create a Keen.Dataviz instance with a Table chart type.
  3. Create and run a funnel Keen.Query for each day in the cohort and for each timeframe you’ll be calculating the conversion rate on.
  4. Parse the responses and render the chart.

Below, you can find an example that calculates day 1, 7 and 30 conversion rates for a 10 day period (daily cohorts), with the steps highlighted.