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
Add `script` alias to the filename
Uku Taht27abbc8ebbe0
diff --git a/lib/plausible_web/plugs/tracker.ex b/lib/plausible_web/plugs/tracker.exindex b80138e27c..8bd4a1b293 100644--- a/lib/plausible_web/plugs/tracker.ex+++ b/lib/plausible_web/plugs/tracker.ex@@ -2,9 +2,8 @@ defmodule PlausibleWeb.Tracker doimport Plug.Connuse Agent- custom_script_name = Application.get_env(:plausible, :custom_script_name)base_variants = ["hash", "outbound-links", "exclusions", "compat", "local"]- base_filenames = ["plausible", custom_script_name]+ base_filenames = ["plausible", "script"]# Generates Power Set of all variantsvariants =@@ -35,7 +34,7 @@ defmodule PlausibleWeb.Tracker doend)|> Enum.reject(fn x -> x == nil end)|> Enum.into(%{})- |> Map.put("plausible.js", ["analytics.js", "#{custom_script_name}.js"])+ |> Map.put("plausible.js", ["analytics.js", "script.js"])@templates files_available@aliases aliases_available