Skip to content

Event analytics summary (by day / by type / by device)

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 / byType / byDevice breakdowns plus _meta. The _count sub-objects use a key that repeats the dimension name (byType → _count.eventName, byDevice → _count.deviceType); these are fixed literal keys, not dynamic. _meta.scope and _meta.scopeLabel are hardcoded constants (“EVENT” / “事件”). Internal events are excluded.

Media typeapplication/json
object
byDay
required
Array<object>
object
date
required

YYYY-MM-DD (UTC)

string format: date
count
required

Weighted AE event count for the day bucket

number
byType
required

Top 15 event names by count.

Array<object>
object
eventName
required
string
_count
required
object
eventName
required
number
byDevice
required

Top 10 device types by count.

Array<object>
object
deviceType
required
string
_count
required
object
deviceType
required
number
_meta
required
object
queryDurationMs
required
integer
scope
required
string
Allowed value: EVENT
scopeLabel
required
string
Allowed value: 事件