Skip to content

Commit

Permalink
Only insert plausible tag in production
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Nov 6, 2024
1 parent 71a3866 commit 73b21ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/views/application/_html_head.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
<%= yield :extra_meta_tags %>

<%= render "google_tag_manager" %>
<%# plausible.io analytics %>
<script defer data-domain="planningalerts.org.au" src="/js/script.outbound-links.js"></script>
<% if Rails.env.production? %>
<%# plausible.io analytics %>
<script defer data-domain="planningalerts.org.au" src="/js/script.outbound-links.js"></script>
<% end %>

<%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>
<link rel="preconnect" href="https://fonts.googleapis.com">
Expand Down

0 comments on commit 73b21ef

Please sign in to comment.