Skip to content

Commit

Permalink
Support for Plausible
Browse files Browse the repository at this point in the history
  • Loading branch information
lmrodriguezr committed Jan 9, 2024
1 parent 82269fa commit 364443f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
'jquery-ui.min.css'
) %>
<% if Rails.configuration.try(:plausible) %>
<script defer data-domain="disc-genomics.uibk.ac.at"
src="<%= Rails.configuration.plausible %>/js/script.js"></script>
<% end %>

<link rel="apple-touch-icon" sizes="180x180"
href="<%= File.join(root_path, 'apple-touch-icon.png') %>">
<link rel="icon" type="image/png" sizes="32x32"
Expand Down
1 change: 1 addition & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,5 @@
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session
config.bypass_external_apis = false
config.matomo = '//disc-genomics.uibk.ac.at/analytics/'
config.plausible = 'http://disc-genomics.uibk.ac.at:8000'
end

0 comments on commit 364443f

Please sign in to comment.