Disable self-tracking with self hosting (#907)

* Disable self-tracking with self hosting

* Update CHANGELOG.md
pull/866/head
Tatsuyuki Ishi 6 years ago committed by GitHub
parent 86f098327c
commit d39fbc48c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

@ -1,4 +1,4 @@
<%= if !@conn.assigns[:skip_plausible_tracking] do %>
<%= if !Application.get_env(:plausible, :is_selfhost) && !@conn.assigns[:skip_plausible_tracking] do %>
<script async defer src="<%="#{plausible_url()}/js/plausible.js"%>"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
<% end %>

Loading…
Cancel
Save