---
title: "Export Application analytics aggregated by campaign"
method: GET
path: "/v1/applications/{applicationId}/campaign_analytics/export"
tags: ["Campaigns"]
---

# Export Application analytics aggregated by campaign

`GET /v1/applications/{applicationId}/campaign_analytics/export`

## Request

- Base URL: `https://yourbaseurl.talon.one`
- URL: `https://yourbaseurl.talon.one/v1/applications/{applicationId}/campaign_analytics/export`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/talon/apis/management-api/docs/v1/applications/:applicationId/campaign_analytics/export/get.ts> (a function with typed inputs; its response is checked against the schema)

> [!note] Management API endpoints are **not** meant to be used in real-time integrations that directly serve your end users. Rate limit: 3 requests per second.

Download a CSV file containing analytics data aggregated by campaign for the
campaigns of an Application.

> [!tip] If the exported CSV file is too large to view, you can
> [split it into multiple files](https://www.google.com/search?q=split+CSV+into+multiple+files).

The CSV file contains the following columns:

- `campaign_id`: The ID of the campaign. This column also contains labels
  for the [total and influenced values](https://docs.talon.one/docs/product/campaigns/analytics/application-dashboard#display-the-analytics-data).
- `start_date`: The start of the aggregation time frame in UTC.
- `end_date`: The end of the aggregation time frame in UTC.
- `revenue`: The total, pre-discount value of all items purchased in a customer session.
- `sessions`: The number of all closed sessions.
- `average_session_value`: The average customer session value, calculated by dividing the revenue value by the number of sessions.
- `average_items_per_session`: The number of items from sessions divided by the number of sessions.
- `coupons`: The number of times a coupon was successfully redeemed in sessions.
- `discounts`: The total value of discounts given for cart items in sessions.

## Path parameters

- `applicationId` integer, required

## Query parameters

- `campaignIds` string[]
- `rangeStart` string, date-time, required
- `rangeEnd` string, date-time, required

## Response `200`

OK

---

[API](https://skmtc.dev/talon/apis/management-api.md) - [All operations](https://skmtc.dev/talon/apis/management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talon/apis/management-api/revisions/7ef1b9504c3a?raw)
