Skip to content

Commit

Permalink
feat: Add survey tracking snippet (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
pghorpade committed Sep 23, 2024
1 parent 057633f commit 8cb52e8
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,7 +23,9 @@
'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") %>
<script defer src="https://test-librarystudy.library.ucla.edu/gsurvey.js"></script>
<% end %>
<title><%= render_page_title %></title>

<%= opensearch_description_tag application_name, opensearch_catalog_url(format: 'xml') %>
Expand Down

0 comments on commit 8cb52e8

Please sign in to comment.