splithub_analytics
Query pageview, event, goal and revenue analytics per property or site-wide, with ranges, filters, compare and segment. Group results by source, page, country, device or variant.
Instructions
Analytics properties (pageviews or app screens, and custom events, no variants). A property is kind site or app; in an app a screen is a page (url /ScreenName) and platform / app_version are dimensions for by and filters. Without property: every property with visitors, visits, pageviews and bounce for the last 30 days. With property: totals (visitors, newVisitors, sessions = visits, pageviews, events, bounces, duration in ms; bounce rate = bounces / sessions), goals (conversions = unique visitors who reached it in the range, completions = how many times, revenue), topPages and topSources (value "(none)" = direct). With by: rows grouped by a visit dimension, page, event or goal; goal adds that goal's conversions per row; variant (needs experiment) splits visits by the variant each visitor saw, trait (needs key) by an identify() trait. Range: days (last N days) or from / to (YYYY-MM-DD, project time zone). filters narrow the visits, e.g. { country: "DE,FR", source: "(none)" }. Self-hosted projects get raw counts only (analysis.available false): report them as they are and say full reports come with SplitHub Cloud. compare adds previous (the compared range, with its dates in previous.range) for change against it: 'previous' (the same-length range right before), 'year' (the same days a year earlier) or 'YYYY-MM-DD..YYYY-MM-DD'. segment applies a saved segment (splithub_segments) by name or id. These are counts, not experiments: no verdicts, never call a winner from them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | ||
| to | No | ||
| key | No | by trait: the trait name, e.g. plan | |
| days | No | ||
| from | No | ||
| goal | No | with by: also count this goal per row | |
| limit | No | ||
| compare | No | also read another period: 'previous' (right before), 'year' (a year earlier) or 'YYYY-MM-DD..YYYY-MM-DD' | |
| filters | No | dimension → comma-separated values | |
| segment | No | saved segment name or id | |
| property | No | property id; omit to list every property | |
| experiment | No | by variant: the experiment key |