Skip to content

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

Add GTM installation option, when no GTM detected (#4850)

hq1333238f08563
diff --git a/lib/plausible_web/live/installation.ex b/lib/plausible_web/live/installation.ex
index b70e225741..e05ee34ad4 100644
--- a/lib/plausible_web/live/installation.ex
+++ b/lib/plausible_web/live/installation.ex
@@ -217,7 +217,10 @@ defmodule PlausibleWeb.Live.Installation do
if you prefer WordPress installation method.
</:footer>
- <:footer :if={@initial_installation_type == "GTM" and @installation_type == "manual"}>
+ <:footer :if={
+ (@initial_installation_type == "GTM" and @installation_type == "manual") or
+ (@initial_installation_type == "manual" and @installation_type == "manual")
+ }>
<.styled_link href={} phx-click="switch-installation-type" phx-value-method="GTM">
Click here
</.styled_link>