Compare traffic sources
analyze_source_qualityAnalyze traffic source quality using aggregate source/UTM metrics and attributed conversion events.
Use when the user asks which referrers, campaigns, UTM sources, mediums, or campaigns are working. Returns source-level pageviews, visitors, CTA clicks, form submits, converting visitors, conversion rate, and attribution coverage summary. It does NOT return raw event logs or form submission payloads. A click or form submit counts toward the referrer or UTM value on the page where it happened, and a visitor who both clicks and submits counts once. "(direct)" means no referrer and "(none)" means no UTM tag; attributionCoverageRate is the share of visitors that have one. Data covers the last 3 months and excludes known bots and vulnerability scanners, the same as get_analytics_summary. Dates are YYYY-MM-DD. When the page took orders in the period and the connection has orders:read, the result adds orders: the orders and revenue by the same source dimension (an order records its UTM source, medium, and campaign, and the referring site). Orders hold no visitor id, so they aren't joined to the visitor rows; revenue counts paid orders (cash on delivery once accepted). Dates are days in the workspace's time zone, UTC when the workspace has none set, and startDate and endDate are whole days in the zone used. Pass timeZone, an IANA name such as America/New_York, for days in another zone; it changes only this response, never the workspace's time zone. The result's timeZone field names the zone used, and timeZoneSource says where it came from (argument, workspace, or default). A row for today's date in that zone counts only the hours so far. When timeZonePending is set, the workspace is switching to that zone once its history is recomputed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum source rows to return. Defaults to 20, max 100. | |
| siteId | Yes | The ID of the page to analyze | |
| endDate | Yes | End date (YYYY-MM-DD) | |
| timeZone | No | IANA time zone name for the days in this response, such as America/New_York, Europe/Berlin, or Asia/Tokyo. Leave it out for the workspace's time zone (UTC when none is set). It affects only this response: the workspace's time zone stays as it is, and only the workspace's owner changes it, in the dashboard's Settings. Abbreviations such as EST and offsets such as +09:00 aren't accepted. | |
| dimension | No | Source dimension to group by. Defaults to referrer. | referrer |
| startDate | Yes | Start date (YYYY-MM-DD) |