Wiki: Search Referrers by Domain/Websites / Privacy Sensitive Analytics



To identify the full URL used by a referrer domain (where available), run the following Flux

import "strings"

// Set this to the referrer domain to search for
domain = "github"


from(bucket: "telegraf/autogen")
  |> range(start: -7d)
  |> filter(fn: (r) => r._measurement == "pf_analytics_test")
  |> filter(fn: (r) => r._field == "referrer")
  |> filter(fn: (r) => strings.containsStr(v: r._value, substr: domain))
  |> group()
  |> drop(columns: ["_field", "_measurement", "host"])