Skip to content

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

Show goals to anon vistitors

Uku Tahta1f61d1a8bcb
diff --git a/lib/plausible_web/controllers/stats_controller.ex b/lib/plausible_web/controllers/stats_controller.ex
index 28322573c6..9f0c9944d3 100644
--- a/lib/plausible_web/controllers/stats_controller.ex
+++ b/lib/plausible_web/controllers/stats_controller.ex
@@ -16,14 +16,12 @@ defmodule PlausibleWeb.StatsController do
Plausible.Tracking.event(conn, "Site Analytics: Open", %{demo: demo})
- has_goals = user && Plausible.Sites.has_goals?(site)
-
conn
|> assign(:skip_plausible_tracking, !demo)
|> put_session(site.domain <> "_offer_email_report", nil)
|> render("stats.html",
site: site,
- has_goals: has_goals,
+ has_goals: Plausible.Sites.has_goals?(site),
title: "Plausible · " <> site.domain,
offer_email_report: offer_email_report
)