Skip to content

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

Bring back trigger showing first dashboard launch banner (#6168)

Adrian Gruntkowski22a1fee42add
diff --git a/lib/plausible_web/components/first_dashboard_launch_banner.ex b/lib/plausible_web/components/first_dashboard_launch_banner.ex
index fe6f067e35..7646368a6f 100644
--- a/lib/plausible_web/components/first_dashboard_launch_banner.ex
+++ b/lib/plausible_web/components/first_dashboard_launch_banner.ex
@@ -29,8 +29,8 @@ defmodule PlausibleWeb.Components.FirstDashboardLaunchBanner do
x-init={x_init(@site)}
>
<.styled_link
+ class="plausible-event-name=Weekly+Email+Note+Click"
href={Routes.site_path(PlausibleWeb.Endpoint, :settings_email_reports, @site.domain)}
- onclick="plausible('Weekly Email Note Click')"
>
Get weekly traffic summaries by email →
</.styled_link>
diff --git a/lib/plausible_web/live/installation.ex b/lib/plausible_web/live/installation.ex
index 3a45d165ef..52aec7fa4c 100644
--- a/lib/plausible_web/live/installation.ex
+++ b/lib/plausible_web/live/installation.ex
@@ -84,6 +84,7 @@ defmodule PlausibleWeb.Live.Installation do
{:ok,
assign(socket,
site: site,
+ site_created?: params["site_created"] == "true",
flow: flow
)}
end
@@ -105,6 +106,7 @@ defmodule PlausibleWeb.Live.Installation do
def render(assigns) do
~H"""
<div>
+ <PlausibleWeb.Components.FirstDashboardLaunchBanner.set :if={@site_created?} site={@site} />
<PlausibleWeb.Components.FlowProgress.render flow={@flow} current_step="Install Plausible" />
<.focus_box>