Conversion Rate by Dimension

Conversions and conversion rate for an event, grouped by a dimension.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

For each value of the chosen dimension, returns the number of conversion events (conversions, numerator), the number of base events (base, denominator — defaults to Page Viewed), and conversion_rate = conversions / base × 100.

  • conversion_rate is null when a bucket has zero base events.
  • A rate can exceed 100% when a bucket records more conversions than base events.
  • Results are ordered by conversions, highest first.
  • Pass user_id to scope to a single customer belonging to the site.

Use it for "which country/platform/channel converts best?"

Query Params
integer
required

The site ID to scope this request to.

string
required

The conversion event to attribute. Common values: "Subscription Created", "Registered", "Newsletter Email Submitted", "Invoice Paid". The valid set is per-site; an unrecognized value returns a 400 listing the events this site has recorded.

string

The base/traffic event used as the denominator. Defaults to "Page Viewed". The valid set is per-site; an unrecognized value returns a 400 listing the events this site has recorded.

string
enum
required

The dimension to group by.

Allowed:
integer
≥ 1

Scope the result to a single customer belonging to the site. Returns 404 if the customer is not on this site.

date

Start of the window in YYYY-MM-DD. Use with to. When omitted, a trailing default window is used. The from–to span is capped at the site’s activity retention window (90 days by default).

date

End of the window in YYYY-MM-DD. Must be on or after from and no later than today.

integer
1 to 90

Alternative to from/to: size of the trailing window in days (1–90). Bounded by the site’s activity retention window.

integer
1 to 100

Maximum number of dimension buckets to return (1–100, default 10).

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json