Skip to content

Commit

Permalink
Moved matomo code and fetching env variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkiessl committed Aug 1, 2022
1 parent 5bebf05 commit 510d5ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %>
<%= render partial: 'shared/matomo_analytics' if ENV['HOSTNAME'].match(/^etda-ex-/).present? %>
</head>

<body>
Expand Down
1 change: 1 addition & 0 deletions app/views/shared/_header_navbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<%= render 'shared/user_util_links' %>
</div>
</div>
<%= render partial: 'shared/matomo_analytics' if ENV.fetch('HOSTNAME', 'dev').match(/^etda-ex-/).present? %>
</nav>

<%= content_tag :div, class: 'navbar-search navbar navbar-light bg-light', role: 'navigation', aria: { label: t('blacklight.search.header') } do %>
Expand Down

0 comments on commit 510d5ce

Please sign in to comment.