Skip to content

Get visits by campaign medium over time

GET
/cms/analytics/daily-traffic/campaign-medium-trend
date_from
string format: date

Start date (YYYY-MM-DD). Defaults to 30 days ago.

date_to
string format: date

End date (YYYY-MM-DD). Defaults to date_from, or yesterday.

segment
integer
0

Index into the configured traffic segments

platform
integer
0

0=All product types, 1=Web, 2=Mobile

unit
string
default: day
Allowed values: day week month

Aggregation granularity

Visits-by-campaign-medium trend, one trace per medium

Invalid date range or segment index

Admin authorization required

Insufficient permissions