Skip to contents

For details, consult the https://plausible.io/docs/stats-api.

Usage

pa2_get(
  date_range = "30d",
  metrics = "visits",
  dimensions = NULL,
  filters = NULL,
  order_by = NULL,
  include = NULL,
  pagination = NULL,
  site_id = NULL
)

Arguments

filters

Optional, defaults to NULL. If given, it must be given in the form "visit:browser==Firefox;visit:country==FR", or as a named vector (see examples). Use ";" to separate multiple filtering criteria. For details, see the https://plausible.io/docs/stats-api#filters- for reference.

Value

A named list, with three elements: results, meta, and query.

Examples

if (FALSE) { # \dontrun{
pa2_get(
    date_range = "30d",
    metrics = "visits",
)
} # }