Attribution report (organic/paid, first/last touch)
Also reachable by the internal remote-MCP server as get_attribution_report: the handler uses requireProjectRoleOrMcpScope(VIEWER, ‘mcp:attribution_read’). MCP access is mediated by a separate internal worker (x-worker-token), not by a directly-presented customer API key, so ApiKeyAuth is NOT advertised here.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”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).
Inclusive window end (YYYY-MM-DD). See startDate for fallback behavior.
Attribution model (default “first”).
Attribution lookback window in days.
Responses
Section titled “Responses”Attribution breakdown (dynamic shape). organic/paid touch entries are {source, count}; campaign entries add platform (the utmSource half of the “campaign::source” composite key, null when empty). Each list is capped at 10 entries, sorted by count DESC. _meta.model and _meta.window are pass-through echoes of the model / window query params and are NOT used to change the computation — window is Number(...) so it can be NaN, which JSON.stringify serializes as null. organic.* sources are classifier channel labels (e.g. “organic:google”) or the literal “直接访问”; paid.* sources are human labels from PAID_CLICK_ID_LABELS (Google Ads, Meta, 百度…) falling back to the raw click-ID key.
object
object
object
object
object
object
object
object
object
Utm_campaign, or the literal “unknown”
Utm_source of the touch; null when empty
object
Utm_campaign, or the literal “unknown”
Utm_source of the touch; null when empty
object
Echo of the model query param; defaults to “first”. Not applied to the computation.
Echo of the window query param coerced with Number(); defaults to 30. Serializes as null if the param is non-numeric (NaN).
Number of visit AE rows fetched for the range