Revert changes to tracking module

pull/16/head
Uku Taht 7 years ago
parent 0b96ed3b6c
commit 0ef068b36e

@ -1,10 +1,10 @@
<%= if !@conn.assigns[:skip_plausible_tracking] do %>
<%= 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', 'http://localhost:8000/js/p.js'));
}(window, document, 'script', 'plausible', 'https://plausible.io/js/p.js'));
plausible('page')
</script>\

Loading…
Cancel
Save