mirror of
https://github.com/plausible/analytics.git
synced 2024-10-27 10:52:00 +03:00
Show goals to anon vistitors
This commit is contained in:
parent
8888c86820
commit
a1f61d1a8b
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user