Site hours
get_site_hoursWhen a site's traffic comes, by the hour of the day and the day of the week in its own time zone, over a range. The answer's caveats are the rules that apply to its figures, such as visitors being visitor-days or today being partial: 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, which refuses the same things. hours gives each hour, 00 to 23, its pageviews, visits and visitors summed over the range's days, and share, its part of the pageviews counted by the hour, a fraction of 1. weekdays gives each day of the week, Monday first, its counts and days, how many of it the range holds. A range of one or two days adds series, each hour in turn up to the current one. totals are the range's counts, counted_by_hour what the hours add up to, and coverage its part of totals. The hours are counted by page, so a goal, entry or exit filter rules them 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. |