From 10f7beb1e056c29f62934573611400d2fd023dbb Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Thu, 6 Feb 2020 15:20:33 +0200 Subject: [PATCH] Only include tracking module when mix env is prod --- lib/plausible_web/templates/layout/_tracking.html.eex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plausible_web/templates/layout/_tracking.html.eex b/lib/plausible_web/templates/layout/_tracking.html.eex index 03b588448..14b177d9e 100644 --- a/lib/plausible_web/templates/layout/_tracking.html.eex +++ b/lib/plausible_web/templates/layout/_tracking.html.eex @@ -1,4 +1,4 @@ -<%= if !@conn.assigns[:skip_plausible_tracking] do %> +<%= if Mix.env() == :prod && !@conn.assigns[:skip_plausible_tracking] do %> <% end %>