mirror of
https://github.com/plausible/analytics.git
synced 2024-12-18 23:11:43 +03:00
12 lines
485 B
Elixir
12 lines
485 B
Elixir
<%= if Mix.env() == :prod && !@conn.assigns[:skip_plausible_tracking] do %>
|
|
<script>
|
|
(function (w,d,s,o,f,js,fjs) {
|
|
w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) };
|
|
js = d.createElement(s), fjs = d.getElementsByTagName(s)[0];
|
|
js.id = o; js.src = f; js.async = 1; fjs.parentNode.insertBefore(js, fjs);
|
|
}(window, document, 'script', 'plausible', 'https://plausible.io/js/p.js'));
|
|
|
|
plausible('page')
|
|
</script>\
|
|
<% end %>
|