Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

290 B
Raw Blame
defmodule PlausibleWeb.DebugView do
  use PlausibleWeb, :view

  def controller_name(phoenix_controller_name) do
    phoenix_controller_name
    |> String.to_existing_atom()
    |> Module.split()
    |> Enum.drop_while(&String.starts_with?(&1, "Plausible"))
    |> Enum.join(".")
  end
end