site_metrics (nightly)

Fetch metrics at a site level (typically a floor), where a metric is a measurement or insight with a single result.

metric_name should be set to one of the metrics outlined in Metrics and Features

metric_value is the result.

// query
query Site_metrics(
  $limit: Int,
  $offset: Int,
  $order_by: [site_metrics_order_by!],
  $where: site_metrics_bool_exp
) {
  site_metrics(
    limit: $limit,
    offset: $offset,
    order_by: $order_by,
    where: $where
  ) {
    date_time_end
    date_time_start
    granularity
    group_id
    id
    metric_name
    metric_value
    site_id
  }
}

Last updated