Site engagement
get_site_engagementHow a site's pages were read over a range, as the dashboard's Engagement section has it, one reading a pageview, beside the period before. The answer's caveats are the rules that apply to its figures, such as some figures being counted only from a later day: read them before reporting any figure, and pass on those that change what it means. Name the site, range and filters as for get_site_summary. time_on_page is how long pages were on screen: median_seconds, which a tab left open moves least and is the one to report, average_seconds, and the readings in each of six bands. scroll_depth is how far down they were read: average_percent; read_to_end, the readings that reached 90% of the page, and scrolled, those that scrolled at all, each with its share, a fraction of 1; first_screen_percent, where the first window ended for the middle reading; and depths, the readings in each tenth. previous is the period before's, and change how far each moved, times as whole percentages and the rest in points. For each page's own, break get_site_breakdown down by time_on_page or scroll_depth; for bounce rate and visit duration, use get_site_summary. Reading is counted by page, so a goal, entry or exit filter rules it out, answered with available: false, why and what to try.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | With from: the last day, as YYYY-MM-DD, not after today. | |
| days | No | The last this many days, ending today unless ending says yesterday. | |
| from | No | With to: the first day, as YYYY-MM-DD. | |
| range | No | A preset, as get_site_summary's range says what each covers. | |
| domain | Yes | A domain from list_sites, or any public site's. | |
| ending | No | With days: the last day, today by default. | |
| filters | No | Each narrows every figure to what has exactly that value, case and all, so google is not Google; all must hold. |