Sha256: 066a83ef46d6da0f80ef9d104e675930d41a47dcd33955c56687e46324565f46
Contents?: true
Size: 406 Bytes
Versions: 3
Compression:
Stored size: 406 Bytes
Contents
# frozen_string_literal: true module PlausibleApi module Stats class Aggregate < Base def initialize(options = {}) super({period: "30d", metrics: "visitors,visits,pageviews,views_per_visit,bounce_rate,visit_duration,events"} .merge(options)) end def request_path_base "/api/v1/stats/aggregate?site_id=$SITE_ID" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
plausible_api-0.4.2 | lib/plausible_api/stats/aggregate.rb |
plausible_api-0.4.1 | lib/plausible_api/stats/aggregate.rb |
plausible_api-0.4 | lib/plausible_api/stats/aggregate.rb |