Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Function nextShare

    • The share of views from from that went to each route, in route order; empty when none came from it. With first, only a first view of the route counts toward its share, over every view from from. A catalogue entry saves only a first view, so that share is the one to rank entries by: the share over all views counts returning visits and, in a replay of 989,818 public visitors, ran 1.5 to 7 times the observed chance of a first view in the bins that decide an entry (measurements/nav-replay).

      Parameters

      • views: readonly TimedView[]
      • from: string
      • options: { first?: boolean } = {}

      Returns Record<string, number>