analytics/lib/plausible_web/templates/layout/_tracking.html.eex

5 lines
298 B
Elixir
Raw Normal View History

<%= if Mix.env() == :prod && !@conn.assigns[:skip_plausible_tracking] do %>
2020-02-06 16:18:37 +03:00
<script async defer src="https://plausible.io/js/plausible.js"></script>
2020-02-05 17:08:34 +03:00
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
2019-09-02 14:29:19 +03:00
<% end %>