diff --git a/CHANGELOG.md b/CHANGELOG.md index 8586258b3..b80c851d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file. - Disable analytics tracking when running Cypress tests - CSV reports can be downloaded via shared links plausible/analytics#884 - Fixes weekly/monthly email report delivery over SMTP plausible/analytics#889 +- Disable self-tracking with self hosting plausible/analytics#907 ## [1.2] - 2021-01-26 diff --git a/lib/plausible_web/templates/layout/_tracking.html.eex b/lib/plausible_web/templates/layout/_tracking.html.eex index 9b068c724..e371d1c99 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 !Application.get_env(:plausible, :is_selfhost) && !@conn.assigns[:skip_plausible_tracking] do %> <% end %>