---
title: "Conversions, conversion rate and revenue of every goal in a period"
method: GET
path: "/projects/{project_id}/analytics/goals/stats"
tags: ["Conversions"]
---

# Conversions, conversion rate and revenue of every goal in a period

`GET /projects/{project_id}/analytics/goals/stats`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/analytics/goals/stats`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required

## Query parameters

- `start_date` string, date-time, required
- `end_date` string, date-time, required
- `environment_id` integer, nullable

## Response `200`

Conversion figures

- AnalyticsGoalStatsResponse: Response of `GET /projects/{project_id}/analytics/goals/stats`.
  - `goals` AnalyticsGoalStats[], required: Every goal of the project, in creation order, including the ones without conversions in the period.
    - `conversion_rate` number, double, required: `unique_conversions` as a percentage of the period's visitors.
    - `goal_id` integer, required
    - `kind` 'event' | 'page', required: What a goal matches.
    - `name` string, required
    - `revenue` AnalyticsGoalRevenue, nullable: Revenue a goal's conversions carried.
      - `average` number, double, required: `total` divided by the conversions that carried a number.
      - `currency` string, required
      - `total` number, double, required: Sum of the revenue property over conversions that carried a number.
    - `total_conversions` integer, required: Matching events, a visitor converting twice counting twice.
    - `unique_conversions` integer, required: Distinct visitors who converted.
  - `visitors` integer, required: Distinct non-crawler visitors with a page view in the period: the denominator of every conversion rate, as on the overview.

## Other responses

- `400`: Invalid period
- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-11-20** `1a920722ba7e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/analytics/goals/stats/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
