diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index bf351870..8057d576 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -138,6 +138,13 @@ Metamaps.Loading.loader.setDensity(41); // default is 40 Metamaps.Loading.loader.setRange(0.9); // default is 1.3 Metamaps.Loading.loader.show(); // Hidden by default + + // set up uservoice with signed in user + <% if authenticated? && ENV['SSO_KEY'] %> + USERVOICE.load(Metamaps.Active.Mapper.name, Metamaps.Active.Mapper.id, "<%= user.email %>", "<%= current_sso_token %>"); + <% else %> + USERVOICE.load(); + <% end %> <%= render :partial => 'layouts/googleanalytics' if Rails.env.production? %>