Query CTA performance
query_cta_performanceCTA-level click analytics with daily time series.
Each row has date, CTA text, link, type (explicit for data-cta elements, link, or button), clicks, and unique clickers. Use when the user asks which buttons or links people click, or whether a CTA change worked; get_page_structure shows where each CTA sits on the page. Scans count toward the monthly analytics scan quota and overage billing where applicable. Dates must be valid calendar dates in YYYY-MM-DD format, and startDate must be on or before endDate. 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. Optionally filter by exact CTA text or by a regular expression for the CTA href.
Combine with query_timeseries for traffic context (clicks ÷ visitors = CTR).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return. Defaults to 100, max 500. | |
| siteId | Yes | The ID of the page | |
| ctaText | No | Filter by exact CTA button text | |
| 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. | |
| startDate | Yes | Start date (YYYY-MM-DD) | |
| ctaHrefPattern | No | Filter by CTA link pattern as a valid regular expression (e.g. 'https://shop\\.example\\.com/.*') |