Skip to content

Visit/session analytics summary (by day / source / device / landing)

projectId
required
string
startDate
string format: date

Inclusive window start (YYYY-MM-DD). Parsed with parseDateRangeParams; when either startDate or endDate is missing/invalid the route falls back to a rolling default window (30 days for events/visits/attribution, 7 days for growth).

endDate
string format: date

Inclusive window end (YYYY-MM-DD). See startDate for fallback behavior.

ByDay / bySource / byDevice / topLanding plus _meta. Same fixed _count.<dimension> literal-key pattern as analyticsEventsSummary. bySource labels come from visit_attributions.channelSource (falling back to utmSource, then the literal “direct”); byDevice falls back to “UNKNOWN”; topLanding falls back to “(unknown)”. _meta here has no queryDurationMs — only scope/scopeLabel constants.

Media typeapplication/json
object
byDay
required

Gap-filled daily series across the requested range.

Array<object>
object
date
required

YYYY-MM-DD (UTC)

string format: date
count
required
integer
bySource
required

Top 10 channel sources.

Array<object>
object
utmSource
required
string
_count
required
object
utmSource
required
integer
byDevice
required

Top 10 device types.

Array<object>
object
deviceType
required
string
_count
required
object
deviceType
required
integer
topLanding
required

Top 10 landing URLs.

Array<object>
object
landingUrl
required
string
_count
required
object
landingUrl
required
integer
_meta
required
object
scope
required
string
Allowed value: SESSION
scopeLabel
required
string
Allowed value: 访问 / 会话