From aee6f105c231703540551d7f189419ee799ac229 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Thu, 28 Sep 2023 12:08:58 +0300 Subject: [PATCH] Fix dogfooding (#3377) * Track funnels and custom props settings * Send dogfood script events to ingest.plausible.io * Mix format --- lib/plausible_web/controllers/site_controller.ex | 2 -- lib/plausible_web/templates/layout/_tracking.html.heex | 7 ++++++- lib/plausible_web/views/layout_view.ex | 10 ++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/lib/plausible_web/controllers/site_controller.ex b/lib/plausible_web/controllers/site_controller.ex index 7f077c24d..ac994ab0c 100644 --- a/lib/plausible_web/controllers/site_controller.ex +++ b/lib/plausible_web/controllers/site_controller.ex @@ -230,7 +230,6 @@ defmodule PlausibleWeb.SiteController do site = conn.assigns[:site] |> Repo.preload(:custom_domain) conn - |> assign(:skip_plausible_tracking, true) |> render("settings_funnels.html", site: site, dogfood_page_path: "/:dashboard/settings/funnels", @@ -243,7 +242,6 @@ defmodule PlausibleWeb.SiteController do site = conn.assigns[:site] |> Repo.preload(:custom_domain) conn - |> assign(:skip_plausible_tracking, true) |> render("settings_props.html", site: site, dogfood_page_path: "/:dashboard/settings/properties", diff --git a/lib/plausible_web/templates/layout/_tracking.html.heex b/lib/plausible_web/templates/layout/_tracking.html.heex index 5181af6cf..9e3cc9b1c 100644 --- a/lib/plausible_web/templates/layout/_tracking.html.heex +++ b/lib/plausible_web/templates/layout/_tracking.html.heex @@ -1,5 +1,10 @@ <%= if !Application.get_env(:plausible, :is_selfhost) && !@conn.assigns[:skip_plausible_tracking] do %> -