Skip to content

Commit

Permalink
only send analytics in production
Browse files Browse the repository at this point in the history
  • Loading branch information
dereke committed Mar 21, 2021
1 parent 6b3a667 commit 8d47acb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/layouts/_base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ set_meta_tags og: {
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload', defer: true %>
<%= yield :page_head %>

<script async defer data-domain="carbonneutralmap.org.uk" src="https://plausible.io/js/plausible.js"></script>
<% if ENV['RAILS_ENV'] == 'production' %>
<script async defer data-domain="carbonneutralmap.org.uk" src="https://plausible.io/js/plausible.js"></script>
<% end %>
</head>

<body>
Expand Down

0 comments on commit 8d47acb

Please sign in to comment.