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

5 lines
328 B
Elixir
Raw Normal View History

<%= if !Application.get_env(:plausible, :is_selfhost) && !@conn.assigns[:skip_plausible_tracking] do %>
2021-04-21 16:58:05 +03:00
<script async defer src="<%="#{plausible_url()}/js/script.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>
<% end %>