|
|
|
|
@ -16,7 +16,6 @@ defmodule Plausible.Ingestion.Request do
|
|
|
|
|
field :hostname, :string
|
|
|
|
|
field :referrer, :string
|
|
|
|
|
field :domains, {:array, :string}
|
|
|
|
|
field :screen_width, :string
|
|
|
|
|
field :hash_mode, :string
|
|
|
|
|
field :pathname, :string
|
|
|
|
|
field :props, :map
|
|
|
|
|
@ -89,7 +88,6 @@ defmodule Plausible.Ingestion.Request do
|
|
|
|
|
changeset,
|
|
|
|
|
event_name: request_body["n"] || request_body["name"],
|
|
|
|
|
referrer: request_body["r"] || request_body["referrer"],
|
|
|
|
|
screen_width: request_body["w"] || request_body["screen_width"],
|
|
|
|
|
hash_mode: request_body["h"] || request_body["hashMode"],
|
|
|
|
|
props: parse_props(request_body)
|
|
|
|
|
)
|
|
|
|
|
|