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 authored Sep 12, 2024
1 parent ea1d6e1 commit 42e8115
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 42e8115

Please sign in to comment.