Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
defmodule PlausibleWeb.Plugins.API.Schemas.Goal.Pageview do
@moduledoc """
OpenAPI schema for Pageview Goal object
"""
use PlausibleWeb, :open_api_schema
alias Schemas.Goal.CustomProps
OpenApiSpex.schema(%{
description: "Pageview Goal object",
title: "Goal.Pageview",
type: :object,
allOf: [
Schemas.Goal.Type,
%Schema{
type: :object,
required: [:goal],
properties: %{
goal: %Schema{
type: :object,
required: [:id, :display_name, :path],
properties: %{
id: %Schema{type: :integer, description: "Goal ID", readOnly: true},
display_name: %Schema{type: :string, description: "Display name", readOnly: true},
path: %Schema{type: :string, description: "Page Path"},
custom_props: CustomProps.response_schema()
}
}
}
}
]
})
end