Skip to content

Commit

Permalink
feat: Add lib cost study survey to production (#1165)
Browse files Browse the repository at this point in the history
* feat: Add lib cost study survey to production

* fix: syntax

* fix: erblint errors

* fix: if syntax
  • Loading branch information
pghorpade authored Sep 24, 2024
1 parent 42e8115 commit 82dd76f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/layouts/blacklight/base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','<%= ENV["GOOGLE_TAG_MGR_ID"] %>');</script>
<% end %>
<% if ENV["RAILS_HOST"] && ENV["RAILS_HOST"].include?("stage") %>
<% if ENV["RAILS_HOST"] && (ENV["RAILS_HOST"].include?("stage") || ENV["RAILS_HOST"].include?("test") || ENV["RAILS_HOST"].include?("dev") || ENV["RAILS_HOST"].include?("localhost")) %>
<script defer src="https://test-librarystudy.library.ucla.edu/gsurvey.js"></script>
<% else %>
<script defer src="https://librarystudy.library.ucla.edu/gsurvey.js"></script>
<% end %>
<title><%= render_page_title %></title>

Expand Down

0 comments on commit 82dd76f

Please sign in to comment.