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
CE-friendly tracker_url support (#5643)
Karl-Aksel Puulmann6a6a195812b6
diff --git a/lib/plausible_web/live/installationv2/instructions.ex b/lib/plausible_web/live/installationv2/instructions.exindex b12d0f7371..9407c517b9 100644--- a/lib/plausible_web/live/installationv2/instructions.ex+++ b/lib/plausible_web/live/installationv2/instructions.ex@@ -245,6 +245,6 @@ defmodule PlausibleWeb.Live.InstallationV2.Instructions doenddefp tracker_url(tracker_script_configuration) do- "https://plausible.io/js/#{tracker_script_configuration.id}.js"+ "#{PlausibleWeb.Endpoint.url()}/js/#{tracker_script_configuration.id}.js"endenddiff --git a/test/plausible_web/live/installationv2_test.exs b/test/plausible_web/live/installationv2_test.exsindex a168feb0a5..97f3a22adf 100644--- a/test/plausible_web/live/installationv2_test.exs+++ b/test/plausible_web/live/installationv2_test.exs@@ -85,7 +85,7 @@ defmodule PlausibleWeb.Live.InstallationV2Test dohtml = render(lv)config = Plausible.Repo.get_by!(TrackerScriptConfiguration, site_id: site.id)assert html =~ "Privacy-friendly analytics by Plausible"- assert html =~ "https://plausible.io/js/#{config.id}.js"+ assert html =~ "/js/#{config.id}.js"assert html =~ "defer=!0"end