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

5 lines
298 B
Elixir

<%= if Mix.env() == :prod && !@conn.assigns[:skip_plausible_tracking] do %>
<script async defer src="https://plausible.io/js/plausible.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
<% end %>